xaos-project / XaoS

Real-time interactive fractal zoomer
https://xaos-project.github.io/
GNU General Public License v2.0
522 stars 60 forks source link

compilation error with default option : `lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64 output #43

Closed jblang closed 11 years ago

jblang commented 11 years ago

From kerdez...@gmail.com on April 08, 2010 14:00:22


Compiler options: CC : gcc CFLAGS : -O3 -malign-double -fstrict-aliasing -ffast-math -DSFFE_USING -DSFFE_CMPLX_ASM -I/home/ker2x/xaos/xaos/trunk/src/include LDLAGS : LIBS : -lz -lm -lXext -lX11

X_LIBS :

[...]

gcc -O3 -malign-double -fstrict-aliasing -ffast-math -DSFFE_USING -DSFFE_CMPLX_ASM -I/home/ker2x/xaos/xaos/trunk/src/include -o /home/ker2x/xaos/xaos/trunk/bin/xaos lib/libui.a lib/libui-hlp.a lib/libengine.a lib/libutil.a lib/libfilter.a lib/libuix11.a lib/libsffe.a -lz -lm -lXext -lX11 /usr/bin/ld: i386 architecture of input file `lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64 output collect2: ld returned 1 exit status

Attachment: configure-make.txt

Original issue: http://code.google.com/p/gnuxaos/issues/detail?id=44

jblang commented 11 years ago

From bahat...@gmail.com on May 09, 2011 22:03:00

Yes, I also having similar problem when compiling XaoS SVN-521. The problem is, nasm is compiling the cmplx.asm and create 32 bit version of object file.

nasm -f elf asm/cmplx.asm cmplx.o

The cmplx.asm is in 32 bit assembly and cannot be compiled in 64 bit, which is needed for x86_64 arch.

Example : /src/sffe$ nasm -f elf64 asm/cmplx.asm -o asm/cmplx.o asm/cmplx.asm:48: error: instruction not supported in 64-bit mode asm/cmplx.asm:63: error: instruction not supported in 64-bit mode asm/cmplx.asm:76: error: instruction not supported in 64-bit mode asm/cmplx.asm:94: error: instruction not supported in 64-bit mode asm/cmplx.asm:112: error: instruction not supported in 64-bit mode asm/cmplx.asm:136: error: instruction not supported in 64-bit mode asm/cmplx.asm:156: error: instruction not supported in 64-bit mode asm/cmplx.asm:186: error: instruction not supported in 64-bit mode asm/cmplx.asm:214: error: instruction not supported in 64-bit mode asm/cmplx.asm:253: error: instruction not supported in 64-bit mode asm/cmplx.asm:287: error: instruction not supported in 64-bit mode asm/cmplx.asm:322: error: instruction not supported in 64-bit mode asm/cmplx.asm:360: error: instruction not supported in 64-bit mode asm/cmplx.asm:401: error: instruction not supported in 64-bit mode asm/cmplx.asm:434: error: instruction not supported in 64-bit mode asm/cmplx.asm:472: error: instruction not supported in 64-bit mode asm/cmplx.asm:511: error: instruction not supported in 64-bit mode asm/cmplx.asm:553: error: instruction not supported in 64-bit mode asm/cmplx.asm:614: error: instruction not supported in 64-bit mode asm/cmplx.asm:666: error: instruction not supported in 64-bit mode asm/cmplx.asm:726: error: instruction not supported in 64-bit mode asm/cmplx.asm:785: error: instruction not supported in 64-bit mode asm/cmplx.asm:787: error: instruction not supported in 64-bit mode asm/cmplx.asm:814: error: instruction not supported in 64-bit mode asm/cmplx.asm:823: error: instruction not supported in 64-bit mode asm/cmplx.asm:826: error: instruction not supported in 64-bit mode asm/cmplx.asm:835: error: instruction not supported in 64-bit mode asm/cmplx.asm:896: error: instruction not supported in 64-bit mode

Thank you.

jblang commented 11 years ago

From jb.langs...@gmail.com on May 10, 2011 11:55:14

The error says it all:

The cmplx.asm is in 32 bit assembly and cannot be compiled in 64 bit, which
is needed for x86_64 arch.

You can't use the cmplx.asm file to compile a 64-bit binary. To use custom formulas on a 64-bit binary, try compiling XaoS with GSL instead.

jblang commented 11 years ago

From jb.langs...@gmail.com on November 01, 2011 17:12:42

Status: Invalid