This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't manage to build binutils-for-target


Hello,

Iâve digg my problem, tried a lot of different case, but Iâm always failing trying to build the binutils-for-target:
Iâve got a X86-64 machine on which I want to build a âcrossâ compiler for x86-64 machine
So here build = host != target 
Iâve googled for my problem without any good solution â

Dumping internal crosstool-NG configuration
[EXTRA]    Building a toolchain for:
[EXTRA]      build  = x86_64-unknown-linux-gnu
[EXTRA]      host   = x86_64-unknown-linux-gnu
[EXTRA]      target = x86_64-marport-linux-gnu
[EXTRA]  Dumping internal crosstool-NG configuration: done in 0.06s (at 00:01)
[INFO ]  
âââââââ.
[INFO ]  Installing binutils for target
[EXTRA]    Configuring binutils for target
[DEBUG]    ==> Executing: '/home/laurent/Dev/Toolchain/x86/targets/src/binutils-2.18/configure --build=x86_64-unknown-linux-gnu --host=x86_64-marport-linux-gnu --target=x86_64-marport-linux-gnu --prefix=/usr --disable-werror --enable-shared --enable-static --disable-nls --disable-multilib'
[ALL  ]    checking build system type... x86_64-unknown-linux-gnu
[ALL  ]    checking host system type... x86_64-marport-linux-gnu
[ALL  ]    checking target system type... x86_64-marport-linux-gnu
[ALL  ]    checking for a BSD-compatible install... /usr/bin/install -c
[ALL  ]    checking whether ln works... yes
[ALL  ]    checking whether ln -s works... yes
[ALL  ]    checking for x86_64-marport-linux-gnu-gcc... x86_64-marport-linux-gnu-gcc
[ERROR]    checking for C compiler default output file name... configure: error: C compiler cannot create executables
[ALL  ]    See `config.log' for more details.
[ERROR]    Build failed in step 'Installing binutils for target'
[ERROR]    Error happened in '/usr/local/lib/ct-ng-1.2.0+svn_trunk@854/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/usr/local/lib/ct-ng-1.2.0+svn_trunk@854/scripts/build/binutils.sh' at line # 87 in function 'do_binutils_target'
[ERROR]          called from '/usr/local/lib/ct-ng-1.2.0+svn_trunk@854/scripts/crosstool.sh' at line # 494 in function 'main'
[ERROR]    Look at '/root/x-tools/x86_64-marport-linux-gnu/build.log' for more info on this error.
[ERROR]  (elapsed: 14:42.08)

Iâve checked the config.log of binutils and I got this error:
Using built-in specs.
Target: x86_64-marport-linux-gnu
Configured with: /home/laurent/Dev/Toolchain/x86/targets/src/gcc-4.2.4/configure --build=x86_64-unknown-linux-gnu --target=x86_64-marport-linux-gnu --host=x86_64-unknown-linux-gnu --prefix=/root/x-tools/x86_64-marport-linux-gnu --with-sysroot=/root/x-tools/x86_64-marport-linux-gnu/x86_64-marport-linux-gnu/sys-root --enable-languages=c,c++,fortran --disable-multilib --with-gmp=/root/x-tools/x86_64-marport-linux-gnu --with-mpfr=/root/x-tools/x86_64-marport-linux-gnu --enable-__cxa_atexit --with-local-prefix=/root/x-tools/x86_64-marport-linux-gnu/x86_64-marport-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.2.4
configure:3101: $? = 0
configure:3103: x86_64-marport-linux-gnu-gcc -V </dev/null >&5
x86_64-marport-linux-gnu-gcc: '-V' option must have argument
configure:3106: $? = 1
configure:3129: checking for C compiler default output file name
configure:3132: x86_64-marport-linux-gnu-gcc    conftest.c  >&5
/root/x-tools/x86_64-marport-linux-gnu/lib/gcc/x86_64-marport-linux-gnu/4.2.4/../../../../x86_64-marport-linux-gnu/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status

So seems it canât find libgcc_s â
Anyone has an idea of what could cause the problem? A missing package on my distribution?
Do you have any idea of things I could try?

Laurent 



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]