LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with linker, host x86_64 , target x86 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-linker-host-x86_64-target-x86-687708/)

webquinty 12-02-2008 07:34 AM

Problem with linker, host x86_64 , target x86
 
Hello,

In my laptop there is suse 11.0 64 bits and I would like to develop a application to geode (32 bits).

After install binutils, libraries etc etc for 32 bits, I have tried to compile, but now I have a problem that I do not known how to fix it.
I have looked for in Google, but I do not find any information about it. Perhpas I do not make a good search.

Quote:

LINK /home/john/GeodeProject/TEST/ocera/components/comm/can/_compiled/lib/libnascanhw.so
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: /home/john/GeodeProject/TEST/ocera/components/comm/can/_compiled/lib/libsuiut.a(sui_dinfo.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/john/GeodeProject/TEST/ocera/components/comm/can/_compiled/lib/libsuiut.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [/home/john/GeodeProject/TEST/ocera/components/comm/can/_compiled/lib/libnascanhw.so] Error 1
make[3]: *** [library-pass-this-dir] Error 2
make[2]: *** [library-pass-nascanhw-subdir] Error 2
make[1]: *** [library-pass-candev-subdir] Error 2
make: *** [library-pass] Error 2
Any advice

Best reagards

webquinty 12-02-2008 08:12 AM

Well, I have found my problem..........

Quote:

# gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)
Now I make a new question. Can I have in my laptop two gcc compilers, one for 64 bits and other for 32 bits??? Or is there a option to use gcc with both platform???

Best regards


All times are GMT -5. The time now is 08:33 PM.