LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-21-2012, 06:14 PM   #1
Bry6n
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Eglibc cannot compile suffix of object files while trying to cross compile


When trying to configure the 32-bit version of eglibc, using the options:
Code:
BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \
>     AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
>     CFLAGS="-march=$(cut -d- -f1 <<< $CLFS_TARGET32) -mtune=generic -g -O2" \
>     ../eglibc-2.15/configure --prefix=/tools \
>     --host=${CLFS_TARGET32} --build=${CLFS_HOST} \
>     --disable-profile --enable-add-ons \
>     --with-tls --enable-kernel=2.6.0 --with-__thread \
>     --with-binutils=/cross-tools/bin --with-headers=/tools/include \
>     --cache-file=config.cache
I get the following output:

Code:
configure: loading cache config.cache
checking build system type... x86_64-cross-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... x86_64-unknown-linux-gnu-gcc -m32
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/eglibc-build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
The config.log reads:

Code:
configure:1879: loading cache config.cache
configure:2029: checking build system type
configure:2047: result: x86_64-cross-linux-gnuconfigure: loading cache config.cache
checking build system type... x86_64-cross-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... x86_64-unknown-linux-gnu-gcc -m32
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/eglibc-build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
configure:2069: checking host system type
configure:2084: result: i686-pc-linux-gnu
configure:2115: checking for i686-pc-linux-gnu-gcc
configure:2142: result: x86_64-unknown-linux-gnu-gcc -m32
configure:2414: checking for C compiler version
configure:2422: x86_64-unknown-linux-gnu-gcc -m32 --version >&5
../eglibc-2.15/configure: line 2424: x86_64-unknown-linux-gnu-gcc: command not found
configure:2426: $? = 127
configure:2433: x86_64-unknown-linux-gnu-gcc -m32 -v >&5
../eglibc-2.15/configure: line 2435: x86_64-unknown-linux-gnu-gcc: command not found
configure:2437: $? = 127
configure:2444: x86_64-unknown-linux-gnu-gcc -m32 -V >&5
../eglibc-2.15/configure: line 2446: x86_64-unknown-linux-gnu-gcc: command not found
configure:2448: $? = 127
configure:2452: checking for suffix of object files
configure:2478: x86_64-unknown-linux-gnu-gcc -m32 -c -march=i686 -mtune=generic -g -O2  conftest.c >&5
../eglibc-2.15/configure: line 2480: x86_64-unknown-linux-gnu-gcc: command not found
configure:2482: $? = 127
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "glibc"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2496: error: in `/mnt/lfs/sources/eglibc-build':
configure:2499: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Trying to compile with the CC parameter set to just "gcc $BUILD32" gets me much further, although it does complain about the loss of a triplet. Doing so, however, gives me an error suggesting that:

Code:
checking for __builtin_expect... no
configure: error: support for __builtin_expect needed
I'm lost at this point. Can anyone offer any pointers?

Thanks,
Bry6n
 
  


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
cannot compute suffix of object files rocket42 Linux - Embedded & Single-board computer 3 04-06-2012 02:20 PM
Why cannot compute suffix of object files? bhxs1809 Linux From Scratch 11 03-05-2012 12:04 PM
Compile shared object files using valac Kenny_Strawn Programming 1 10-20-2010 08:33 PM
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:22 PM.

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