|
Does anyone have experience compiling 32-bit Cog on a 64-bit Linux system?
I have not discovered the magic incantation for libtool, and as a result
I get libtool errors in the build. It looks like libtool is not passing
the -m32 flag to its scripts. I'm not sure if this is a bug or just a case
of me not spending enough time reading the FM.
I am running SuSE 64-bit, and it may well be an issue with this distro,
but I figure it's worth asking an case anyone else is having the same problem.
Thanks,
Dave
$ uname -a
Linux version 2.6.34.7-0.4-desktop (geeko@buildhost) (gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux) ) #1 SMP PREEMPT 2010-10-07 19:07:51 +0200
$ libtool --version
ltmain.sh (GNU libtool) 2.2.6b
Excerpt from build output:
/bin/sh /home/lewis/squeak/Cog/cog-svn-source/unixbuild/bld-dtl/libtool --mode=link gcc -g -O2 -m32 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 -msse -DLSB_FIRST=1 -g -O2 -m32 -msse2 -D_GNU_SOURCE -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0 -msse -DLSB_FIRST=1 -m32 -avoid-version -module -rpath /usr/local/lib/squeak/3.9-7 -o vm-display-X11.la sqUnixX11.lo sqUnixMozilla.lo -lGL -lXext -L/usr/lib -ldl -lpthread -lm -lnsl -lpthread -lX11
rm -fr .libs/vm-display-X11.la .libs/vm-display-X11.* .libs/vm-display-X11.*
gcc -shared sqUnixX11.lo sqUnixMozilla.lo -lGL -lXext -L/usr/lib -ldl -lpthread -lm -lnsl -lpthread -lX11 -Wl,-soname -Wl,vm-display-X11 -o .libs/vm-display-X11
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
|