LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2008, 07:34 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Rep: Reputation: 32
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
 
Old 12-02-2008, 08:12 AM   #2
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 227

Original Poster
Rep: Reputation: 32
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
x86 or x86_64? Necromuru Linux - Newbie 2 11-12-2007 08:30 AM
x86 vs. x86_64 andy.l SUSE / openSUSE 2 10-05-2007 02:18 PM
X86 or X86_64? daihard Linux - Software 10 09-15-2005 12:36 AM
Boot x86 target from flash, with the image and file system on the x86 host. batsayan Linux - Software 2 08-23-2005 12:09 AM
qmailadmin x86-64 target cmekondo Linux - Software 0 04-29-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration