Re: Building a x86_64/x86_64 cross-compiler

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

 



On 2013-07-08 23:58, naga raj wrote:
Hi Oleg,

On Tue, Jul 9, 2013 at 12:19 PM, Oleg Smolsky <oleg.smolsky@xxxxxxxxxxxx> wrote:
Hi all, I'm trying to build a x86_64-to-x86_64 cross-compiler with a sysroot
using these steps:
     http://pmc.polytechnique.fr/pagesperso/dc/arm-en.html

With a few minor corrections and amendments, I get to the very last step
where the full compiler is built and hit the following issue:

/work/osmolsky/_gcc-sr-build/_gcc-obj3/./prev-gcc/xg++
[...snip...]
-g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-DGENERATOR_FILE -static-libstdc++ -static-libgcc  -o build/genhooks \
             build/genhooks.o build/errors.o .././libiberty/libiberty.a
build/genhooks "Target Hook" \
                                              > tmp-target-hooks-def.h
build/genhooks: /lib64/libc.so.6: version `GLIBC_2.14' not found (required
by build/genhooks)

I am using glibc 2.16.0 and have no idea where this thing came from. The
binary does not run as the system's glibc (well, that very .so) is version
2.12.

I built glibc this way:

../glibc-2.16.0/configure --prefix=/work/osmolsky/_gcc-sr-build/gcc48
--target=x86_64-unknown-linux-gnu
--with-headers=/work/osmolsky/_gcc-sr-build/sysroot/usr/include
--enable-kernel=2.6.32 --without-selinux

make install_root=/work/osmolsky/_gcc-sr-build/sysroot  prefix="" install

Could somebody shed some light on this please? Is this configuration
supported? Am I missing something vital?

Thanks in advance!
Oleg.
  Try adding glibc-2.16.0 installed lib in to your LD_LIBRARY_PATH.

Right, that was the first thing I tried, but I cannot get this binary to load on the host system (even though host and target are the same):

$ ldd gcc/build/genmddeps
gcc/build/genmddeps: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by gcc/build/genmddeps)
        linux-vdso.so.1 =>  (0x00007fffd91ff000)
        libm.so.6 => /lib64/libm.so.6 (0x00000031cde00000)
        libc.so.6 => /lib64/libc.so.6 (0x00000031cce00000)
        /lib64/ld-linux-x86-64.so.2 (0x00000031cca00000)


$ LD_LIBRARY_PATH=/work/osmolsky/_gcc-sr-build/sysroot gcc/build/genmddeps
gcc/build/genmddeps: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by gcc/build/genmddeps)

$ LD_LIBRARY_PATH=/work/osmolsky/_gcc-sr-build/sysroot/lib gcc/build/genmddeps gcc/build/genmddeps: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument

$ LD_LIBRARY_PATH=/work/osmolsky/_gcc-sr-build/sysroot/lib64/ gcc/build/genmddeps gcc/build/genmddeps: error while loading shared libraries: __vdso_time: invalid mode for dlopen(): Invalid argument








[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