Re: Compilation problem on 64bit OS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 4, 2011 at 11:05 AM, Dan Track <dan.track@xxxxxxxxx> wrote:
> Hi,
>
> I'm getting the following error when compiling a program on a 64bit
> OS, I'm at a a loss as to what it can be I've tried looking it up but
> to no avail, can someone please enlighten me with what is going on?
>
> The error I have:
>
> /opt/source/src/Makefile:112: warning: ignoring old commands for target `clean'
> /usr//bin/g++ -shared -o /opt/source/src/target/obj_dbg/libpugi.so
> -L/opt/source/src/target/obj_dbg -static -ltds_objects -static
> -lreplacements   /opt/source/src/target/obj_dbg/pugixml.o
> /opt/source/src/target/obj_dbg/pugixpath.o
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginT.o: relocation
> R_X86_64_32 against `__deregister_frame_info' can not be used when
> making a shared object; recompile with -fPIC
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginT.o: could not read
> symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [/opt/source/src/target/obj_dbg/libpugi.so] Error 1
>
> It's almost as though it is saying that one of the libraries needs to
> be compiled as a 64 bit library when it already is:
>
> file /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginT.o
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/crtbeginT.o: ELF 64-bit LSB
> relocatable, x86-64, version 1 (SYSV), not stripped
>
> Any thoughts please.
>
> If you need anything else please let me know.
>
> Thanks in advance
> Dan
>

Just to add I'm running on the following setup:

gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --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.1.2 --enable-ssp
--disable-libssp --disable-libgcj --with-slibdir=/lib64
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)

OS: uname -a
Linux sv-test64 2.6.16.60-0.69.1-smp #1 SMP Fri Sep 17 17:07:54 UTC
2010 x86_64 x86_64 x86_64 GNU/Linux

SLES 10 sp3

Thanks
Dan



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux