We have built software that compiles fine on SLES 10 SP1 x84_64 using
the '-m32' build flag. I recently installed openSUSE 10.3 x86_64 on
my workstation, copied my development workspace over to it and
attempted to run the Makefile from my SLES box. Unfortunately there
seems to be some issues between 64 and 32-bit on openSUSE. Can anyone
offer some suggestions on how I can resolve this? This same Makefile
works and build the library fine on both SLES/SLED 64-bit.
@deimos ~/workspace/liblogtest] make
rm -rf *.o *.so release/*.o release/*.so
rm -rf liblogtest-1.3.7/
rm -rf buildDate.c
rm -rf release/liblogtest.so.1.3.7
gcc -fPIC -DTOSLINUX -ansi -pedantic -D_POSIX_SOURCE -Wall -
D_REENTRANT -D_GNU_SOURCE -O2 -m32 -Iincludes -I/home/sprotsman/
workspace/includes -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c
source/Log.c -o release/Log.o
Finished building target: Log.o
gcc -fPIC -DTOSLINUX -ansi -pedantic -D_POSIX_SOURCE -Wall -
D_REENTRANT -D_GNU_SOURCE -O2 -m32 -Iincludes -I/home/sprotsman/
workspace/includes -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c
source/PrtErrno.c -o release/PrtErrno.o
Finished building target: PrtErrno.o
gcc -fPIC -DTOSLINUX -ansi -pedantic -D_POSIX_SOURCE -Wall -
D_REENTRANT -D_GNU_SOURCE -O2 -m32 -Iincludes -I/home/sprotsman/
workspace/includes -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c
source/PrtHErrno.c -o release/PrtHErrno.o
Finished building target: PrtHErrno.o
gcc -m32 -shared -Wl,-O1 -Wl,-soname,liblogtest.so.1 -o release/
liblogtest.so.1.3.7 release/Log.o release/PrtErrno.o release/
PrtHErrno.o --static-libgcc -march=i586
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/
bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.2.1/
libgcc.a when searching for -lgcc
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/
bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make: *** [liblogtest.so.1.3.7] Error 1
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-programming+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-programming+help(a)opensuse.org