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

17 views
Skip to first unread message

codesite...@google.com

unread,
Apr 8, 2010, 3:00:41 PM4/8/10
to xaos-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 44 by kerdezixe: compilation error with default option :
`lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64 output
http://code.google.com/p/gnuxaos/issues/detail?id=44

- complete details in attached file (configure-make.txt)
- it compile only if i add --with-sffe=no
- Linux picloud-vm 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC
2010 x86_64 GNU/Linux
- Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
- It run in a virtualbox (with a win7 64bits host)

------------------------------------------------------------
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


Attachments:
configure-make.txt 21.7 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
May 10, 2011, 1:03:57 AM5/10/11
to xaos-...@googlegroups.com

Comment #1 on issue 44 by bahat...@gmail.com: compilation error with
default option : `lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64
output
http://code.google.com/p/gnuxaos/issues/detail?id=44

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.

codesite...@google.com

unread,
May 10, 2011, 2:56:14 PM5/10/11
to xaos-...@googlegroups.com

Comment #2 on issue 44 by jb.langs...@gmail.com: compilation error with
default option : `lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64
output
http://code.google.com/p/gnuxaos/issues/detail?id=44

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.

codesite...@google.com

unread,
Nov 1, 2011, 8:24:49 PM11/1/11
to xaos-...@googlegroups.com
Updates:
Status: Invalid

Comment #3 on issue 44 by jb.langs...@gmail.com: compilation error with

default option : `lib/libsffe.a(cmplx.o)' is incompatible with i386:x86-64
output
http://code.google.com/p/gnuxaos/issues/detail?id=44

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages