Configure-target-libgcc Error 1
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Checking For Suffix Of Object Files Configure Error
Us Learn more about Stack Overflow the company Business Learn more about hiring xgcc: error: unrecognized command line option '-v' developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the [configure-stage1-target-libgcc] error 1 Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Gcc compilation “cannot compute suffix of
Xgcc Error Unrecognized Option
object files: cannot compile” up vote 13 down vote favorite 4 I'm actually reading the LFS book (version 7.1) and I'm blocked at page 53. Trying to compile gcc, I tried the following command: ./configure --target=$LFS_TGT --prefix=$LFS/build/gcc-build --disable-nls\ --disable-shared --disable-multilib --disable-decimal-float --disable-threads\ --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath\ --disable-target-libiberty --disable-target-zlib\ --enable-languages=c\ --without-ppl --without-cloog\ --with-mpfr-include=$LFS/source/mpfr/src --with-mpfr-lib=$LFS/source/mpfr/src/.libs\ --with-gmp-include=/mnt/LFS/source/gmp\ --with-gmp-lib=/mnt/LFS/source/gmp/.libs\ --with-mpc-include=/mnt/LFS/source/mpc/src\ --with-mpc-lib=/mnt/LFS/source/mpc/src/.libs to run the configure script of gcc (of course
Conftest.cpp:11:2: Error: #error -static-libstdc++ Not Implemented
I already compiled mpfr, mpc and gmp as well). But once I launch: make -j4 I get the following error: checking for suffix of object files... configure: error: in `/mnt/LFS/source/gcc-4.6.2/x86_64-lfs-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 I tried to google for it and tried the solutions I found but nothing worked. Does anyone know why I get this error? linux gcc compiler-construction lfs share|improve this question edited Jul 16 '12 at 10:00 Shahbaz 28.7k659110 asked Jul 16 '12 at 9:57 E-Kami 6952928 Happens when configure tries to compile some test programs. This link might be useful. –ArjunShankar Jul 16 '12 at 10:10 2 See `config.log' for more details. -- Good advice, that's why it is in the error message. –DevSolar Jul 16 '12 at 12:26 Thanks for the link. But I tried everything, and I didn't got any clue on what the problem can come from. Some forums says that it is a bug of GCC which doesn't read libs of mpc or mpfr. I'll try to investigate again. Thanks anyway –E-Kami Jul 19 '12 at 21:53 a
Site Map ------------------------ Rename Page Delete Page ------------------------ Subscribe User ------------------------ Remove Spam Revert to this revision Package Pages ------------------------ Load Save SlideShow This page collects Frequently Asked Questions in gcc-help mailing list. There is also a more official (but seldom updated) FAQ for GCC and there isl/version.h: no such file or directory is a FAQ for Wconversion and conversion warnings Contents Configure, Install, Build Why does
Xgcc: Fatal Error: No Input Files
my ./configure and make fail? Configuration fails with ''configure: error: cannot compute suffix of object files: cannot compile''. What is the problem? "xgcc: error: unrecognized command line option '-v'" Build fails with ''fatal error: gnu/stubs-32.h: No such file or directory''. What is the problem? I see many warnings when building GCC, should I report them? C/C++ Why do I get a warning when passing http://stackoverflow.com/questions/11502045/gcc-compilation-cannot-compute-suffix-of-object-files-cannot-compile a pointer to an array to a function that expects a pointer to a constant array? What is the status of adding the UTF-8 support for identifier names in GCC? GCC's default include search paths The continuation character is ignored by C/C++ preprocessor My program invokes undefined behaviour but... My copy constructor doesn't run! Why GCC does not warn for mismatch between struct and class (-Wmismatched-tags) ? Why does GCC not give https://gcc.gnu.org/wiki/FAQ an error for some narrowing conversions within list-initializations as required by C++11 (-Wnarrowing) ? Optimization Is -O1 (-O2,-O3 or -Os) equivalent to individual -foptimization options? What specific flags are enabled by -O1 (-O2, -O3 or -Os)? The compiler optimized away my overflow checks! What is going on? Why floating-point results change with optimization levels or different compiler versions or different target architectures? __attribute__((__optimize__(X))) does not work as expected GCC miscompiles my code when optimizing, how to find whether it is a bug in my code or in GCC ? Misc: Diagnostics, GCOV, ... Is there a list of GCC diagnostics/messages? GCOV/GCC data files are not created I found a bug in GCC 4.2 for Darwin (Apple System), should I report it? The warning "unrecognized command-line option" is not given for -Wno-foo Configure, Install, Build Why does my ./configure and make fail? [ Permalink ] GCC tends to have problems when configured in the same directory as the GCC source code, or in any subdirectory therein, as stated in the Configuration page in the install documentation. What should be done is to untar the GCC source code, then in the source directory run ./contrib/download_prerequisites (which will download and untar MPFR, MPC and GMP in the same GCC source code directory as per the prerequisites documentati
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch [SOLVED] LFS:- http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-error-while-compiling-gcc-configure-target-libgcc-4175438564/ Error while compiling GCC (configure-target-libgcc) User Name Remember Me? Password Linux From http://wiki.osdev.org/Talk:Cross-Compiler_Successful_Builds 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 Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you error 1 will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | xgcc: error: unrecognized Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 11-24-2012, 03:04 PM #1 Prabhu.Are LQ Newbie Regis
requires the MPC library, which is not covered by the tutorial. And even with the library installed, I get a MPC-related error: make[2]: Leaving directory '/home/solar/Projekte/propos/build-gcc/gcc' Checking multilib configuration for libgcc... mkdir -p -- i586-elf/libgcc Configuring in i586-elf/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking build system type... i686-pc-linux-gnu checking host system type... i586-pc-elf checking for i586-elf-ar... /usr/cross/i586-elf/bin/ar checking for i586-elf-lipo... i586-elf-lipo checking for i586-elf-nm... /home/solar/Projekte/propos/build-gcc/./gcc/nm checking for i586-elf-ranlib... /usr/cross/i586-elf/bin/ranlib checking for i586-elf-strip... /usr/cross/i586-elf/bin/strip checking whether ln -s works... yes checking for i586-elf-gcc... /home/solar/Projekte/propos/build-gcc/./gcc/xgcc -B/home/solar/Projekte/propos/build-gcc/./gcc/ -B/usr/cross/i586-elf/bin/ -B/usr/cross/i586-elf/lib/ -isystem /usr/cross/i586-elf/include -isystem /usr/cross/i586-elf/sys-include checking for suffix of object files... configure: error: in `/home/solar/Projekte/propos/build-gcc/i586-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Fehler 1 make[1]: Leaving directory '/home/solar/Projekte/propos/build-gcc' make: *** [all] Error 2 And from i586-elf/libgcc/config.log: configure:3233: /home/solar/Projekte/propos/build-gcc/./gcc/xgcc -B/home/solar/Projekte/propos/build-gcc/./gcc/ -B/usr/cross/i586-elf/bin/ -B/usr/cross/i586-elf/lib/ -isystem /usr/cross/i586-elf/include -isystem /usr/cross/i586-elf/sys-include -c -g -O2 conftest.c >&5 /home/solar/Projekte/propos/build-gcc/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3237: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3251: error: in `/home/solar/Projekte/propos/build-gcc/i586-elf/libgcc': configure:3254: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. The c