LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   cannot compute suffix of object files (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/cannot-compute-suffix-of-object-files-938015/)

rocket42 04-04-2012 02:09 AM

cannot compute suffix of object files
 
2 everyone!
I am cross_developing the embedded system:
- target: ARM
- workstation: Ubuntu11.4
I already install bootstrap compiler in directory $PREFIX/bin. and I also already add this directory to $PATH.
when I build glibc using the following commands:
CC=arm-linux-gcc ../glibc-2.15/configure --prefix="/usr"
it appear the following error:
...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... arm-linux-gcc
checking for suffix of object files... configure: error: in `/home/hung/control-project/build-tools/build-glibc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details


pleased to help me solve this problem!
thank in advance!

jhwilliams 04-04-2012 02:41 AM

As per the GCC FAQ, that's a pretty catch-all error. What you should try to do is look in config.log for the last reported error. It could be getting caused by a variety of issues - missing dependency headers, wrong version of a dependency, wrong ld, gcc, g++, etc.

rocket42 04-06-2012 02:34 AM

I already have install GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
I looked file config.log and seen the following error:
....
configure:3108: $? = 0
configure:3122: gcc -E conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3122: $? = 1

....
--------------------------
I donīt know this error.
Pleased to show me why and means to solve it.
thanks in advance!

jhwilliams 04-06-2012 02:20 PM

That particular one isn't a problem. It is part of a test that checks for a non-existant header. In other words, getting a "fatal error" there is a test PASS.

http://lists.gnu.org/archive/html/au.../msg00009.html


All times are GMT -5. The time now is 02:44 AM.