Compiling lightzone for Linux on Power

Posting rules: It shouldn't need saying, but... play nice. Please keep your discussions civil. You can disagree, just don't be disagreeable. And, of course, all of the usual stuff like no spamming. Tex adds: I'll be rigorously enforcing this as we go along. We're probably going to be a small community in a little lifeboat, so we can't have members at each others' throats. This is for the sake of the project as a whole. So when you post, pretend you're speaking in person with your very wealthy auntie who has always treated you wonderfully and currently lists you prominently in her will. I won't be tossing anyone out of the forums because we are all in this together (except spammers: immediate membership cancelation), but I'll delete suspect posts right away.

2 posts / 0 new
Last post
Compiling lightzone for Linux on Power


I'm trying to compile lightzone on an IBM Power7 Server running Fedora 22.

However I get error messages as the gcc platform flags are set to 'pentium4' instead of powerpc or ppc64.

I found out that these parameters are set in the file ~/rpmbuild/BUILD/lightzone-4.1.4/lightcrafts/mk/

Any changes there will be overwritten when running rpmbuild.

Using the command "rpmbuild --target ppc64 --rebuild lightzone-4.1.4-63.1.src.rpm" doesn't help either (same error message).

My platform information is:

[cb@fedora ~]$ uname -m
[cb@fedora ~]$ uname

Here's the error message:


     [exec] -----> Entering dcraw
     [exec] gcc -MM -DAUTO_DEP -DNODEPS -DLIGHTZONE -Dfgetc=getc_unlocked   dcraw_lz.c | sed "s!^\([^ :]*\):!\1 .dcraw_lz.d : !" | sed 's/\(\w\):/\/cygdrive\/\L\1/g' > .dcraw_lz.d; [ -s .dcraw_lz.d ]  || rm -fr .dcraw_lz.d
     [exec] gcc -c -g -march=pentium4 -mtune=generic -march=pentium4 -msse2 -fPIC -O3 -fno-trapping-math -fomit-frame-pointer -msse2 -mfpmath=sse -fopenmp  -DNODEPS -DLIGHTZONE -Dfgetc=getc_unlocked   dcraw_lz.c
     [exec] ../../../lightcrafts/mk/ recipe for target 'dcraw_lz.o' failed
     [exec] ../mk/ recipe for target 'all' failed
     [exec] gcc: error: unrecognized argument in option '-mtune=generic'
     [exec] gcc: note: valid arguments to '-mtune=' are: 401 403 405 405fp 440 440fp 464 464fp 476 476fp 505 601 602 603 603e 604 604e 620 630 740 7400 7450 750 801 821 823 8540 8548 860 970 G3 G4 G5 a2 cell e300c2 e300c3 e500mc e500mc64 e5500 e6500 ec603e native power3 power4 power5 power5+ power6 power6x power7 power8 powerpc powerpc64 powerpc64le rs64 titan
     [exec] gcc: error: unrecognized command line option '-march=pentium4'
     [exec] gcc: error: unrecognized command line option '-march=pentium4'
     [exec] gcc: error: unrecognized command line option '-msse2'
     [exec] gcc: error: unrecognized command line option '-msse2'
     [exec] gcc: error: unrecognized command line option '-mfpmath=sse'
     [exec] make[1]: *** [dcraw_lz.o] Error 1
     [exec] make: *** [all] Error 1

Does anybody have an idea how to change this?


Try "linux-ppc" branch on my

Try "linux-ppc" branch on my github repository instead of the "master" branch.


I checked it compiles in fedora 23 server on a qemu-ppc64 emulator, though I couldn't check its GUI works because X is too slow on the emulator.