* Problem with building gcc 4.9.0 (libstdc++) @ 2014-08-08 9:54 Kirill Voronin 2014-08-08 9:56 ` Jonathan Wakely 2014-08-10 12:24 ` Brian Drummond 0 siblings, 2 replies; 13+ messages in thread From: Kirill Voronin @ 2014-08-08 9:54 UTC (permalink / raw) To: gcc-help I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). I've installed manually mpc, gmp and mpfr before running ./configure Configure line: ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install --with-mpc=/usr/new/mpc_install and it works fine. But then I tried to make and got the following error: checking for suffix of object files... configure: error: in `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile The config.log file contains the following error: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ ../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install --enable-shared --with-gmp=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install --with-mpfr=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install --with-mpc=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install ## --------- ## ## Platform. ## ## --------- ## hostname = nks-g6.sscc.ru uname -m = x86_64 uname -r = 2.6.18-164.el5 uname -s = Linux uname -v = #1 SMP Tue Aug 18 15:51:48 EDT 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown (I skipped some lines to make the message shorter...) configure:4819: $? = 0 configure:4808: g++ -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) configure:4819: $? = 0 configure:4808: g++ -V >&5 g++: '-V' option must have argument configure:4819: $? = 1 configure:4808: g++ -qversion >&5 g++: unrecognized option '-qversion' g++: no input files configure:4819: $? = 1 configure:4823: checking whether we are using the GNU C++ compiler configure:4842: g++ -c conftest.cpp >&5 configure:4842: $? = 0 configure:4851: result: yes configure:4860: checking whether g++ accepts -g configure:4880: g++ -c -g conftest.cpp >&5 configure:4880: $? = 0 configure:4921: result: yes configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5 g++: unrecognized option '-static-libstdc++' conftest.cpp:11:2: error: #error -static-libstdc++ not implemented configure:4987: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | #error -static-libstdc++ not implemented | #endif | int main() {} configure:4991: result: no configure:5052: checking for gnatbind configure:5082: result: no configure:5144: checking for gnatmake configure:5174: result: no configure:5193: checking whether compiler driver understands Ada configure:5216: result: no configure:5225: checking how to compare bootstrapped objects configure:5250: result: cmp --ignore-initial=16 $$f1 $$f2 configure:5304: checking for objdir configure:5319: result: .libs configure:5493: checking for the correct version of gmp.h configure:5513: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5513: $? = 0 configure:5531: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5531: $? = 0 configure:5532: result: yes configure:5548: checking for the correct version of mpfr.h configure:5566: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5566: $? = 0 configure:5583: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5583: $? = 0 configure:5584: result: yes configure:5601: checking for the correct version of mpc.h configure:5618: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5618: $? = 0 configure:5634: gcc -c -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c >&5 configure:5634: $? = 0 configure:5635: result: yes configure:5653: checking for the correct version of the gmp/mpfr/mpc libraries configure:5684: gcc -o conftest -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c -L/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/lib -L/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/lib -L/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/lib -lmpc -lmpfr -lgmp >&5 configure:5684: $? = 0 configure:5685: result: yes configure:5891: checking for version 0.10 of ISL configure:5910: gcc -o conftest -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c -lisl >&5 conftest.c:10:25: error: isl/version.h: No such file or directory conftest.c: In function 'main': conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of 'strncmp' makes pointer from integer without a cast configure:5910: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | #include <isl/version.h> | #include <string.h> | int | main () | { | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) | return 1; | | ; | return 0; | } configure:5919: result: no configure:5939: checking for version 0.11 of ISL configure:5958: gcc -o conftest -g -O2 -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include conftest.c -lisl >&5 conftest.c:10:25: error: isl/version.h: No such file or directory conftest.c: In function 'main': conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: cast to pointer from integer of different size conftest.c:15: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast conftest.c:15: warning: passing argument 1 of 'strncmp' makes pointer from integer without a cast configure:5958: $? = 1 configure: program exited with status 1 I believe, the main point is (or not) with "g++: unrecognized option '-static-libstdc++' conftest.cpp:11:2: error: #error -static-libstdc++ not implemented" In any case, I don't know how to fix this. Can anyone provide a useful advice how to tackle this issue? -- Best regards, Kirill Voronin ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 9:54 Problem with building gcc 4.9.0 (libstdc++) Kirill Voronin @ 2014-08-08 9:56 ` Jonathan Wakely 2014-08-08 9:58 ` Jonathan Wakely 2014-08-10 12:24 ` Brian Drummond 1 sibling, 1 reply; 13+ messages in thread From: Jonathan Wakely @ 2014-08-08 9:56 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 8 August 2014 10:54, Kirill Voronin wrote: > > I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). > > I've installed manually mpc, gmp and mpfr before running ./configure > > Configure line: > ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared > --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install > --with-mpc=/usr/new/mpc_install > > and it works fine. > > But then I tried to make and got the following error: > > checking for suffix of object files... configure: error: in > `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile https://gcc.gnu.org/wiki/FAQ#configure_suffix Follow http://gcc.gnu.org/wiki/InstallingGCC ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 9:56 ` Jonathan Wakely @ 2014-08-08 9:58 ` Jonathan Wakely 2014-08-08 10:22 ` Kirill Voronin 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Wakely @ 2014-08-08 9:58 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 8 August 2014 10:56, Jonathan Wakely wrote: > On 8 August 2014 10:54, Kirill Voronin wrote: >> >> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). Also, any reason why you are not using 4.9.1 instead? >> I've installed manually mpc, gmp and mpfr before running ./configure >> >> Configure line: >> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared >> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install >> --with-mpc=/usr/new/mpc_install >> >> and it works fine. >> >> But then I tried to make and got the following error: >> >> checking for suffix of object files... configure: error: in >> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': >> configure: error: cannot compute suffix of object files: cannot compile > > https://gcc.gnu.org/wiki/FAQ#configure_suffix > > Follow http://gcc.gnu.org/wiki/InstallingGCC Specifically, do not install GMP, MPFR and MPC separately, use the download_prerequisites script. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 9:58 ` Jonathan Wakely @ 2014-08-08 10:22 ` Kirill Voronin 2014-08-08 10:27 ` Jonathan Wakely 0 siblings, 1 reply; 13+ messages in thread From: Kirill Voronin @ 2014-08-08 10:22 UTC (permalink / raw) To: gcc-help Actually, the version doesn't matter except it should be greater than 4.8. I've already read https://gcc.gnu.org/wiki/FAQ#configure_suffix but actually there is no answer for my case since I do have mpc, gmp and mpfr installed (correctly at least as make check claimed for each of these three). If it didn't find some libs, I understand that I would have checked the option --with-... and check the paths but now it seems like installing one of the internal (for gcc) packages stdc++ failed. So, you recommend to install mpc, gmp and mpfr once again using prerequisites? > On 8 August 2014 10:56, Jonathan Wakely wrote: >> On 8 August 2014 10:54, Kirill Voronin wrote: >>> >>> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). > > Also, any reason why you are not using 4.9.1 instead? > >>> I've installed manually mpc, gmp and mpfr before running ./configure >>> >>> Configure line: >>> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared >>> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install >>> --with-mpc=/usr/new/mpc_install >>> >>> and it works fine. >>> >>> But then I tried to make and got the following error: >>> >>> checking for suffix of object files... configure: error: in >>> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': >>> configure: error: cannot compute suffix of object files: cannot compile >> >> https://gcc.gnu.org/wiki/FAQ#configure_suffix >> >> Follow http://gcc.gnu.org/wiki/InstallingGCC > > Specifically, do not install GMP, MPFR and MPC separately, use the > download_prerequisites script. > -- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 10:22 ` Kirill Voronin @ 2014-08-08 10:27 ` Jonathan Wakely 2014-08-08 11:13 ` Kirill Voronin 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Wakely @ 2014-08-08 10:27 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 8 August 2014 11:22, Kirill Voronin <kvoronin@labchem.sscc.ru> wrote: > > Actually, the version doesn't matter except it should be greater than 4.8. > > I've already read > > https://gcc.gnu.org/wiki/FAQ#configure_suffix > > but actually there is no answer for my case since I do have mpc, gmp and > mpfr installed (correctly at least as make check claimed for each of these > three). Then you failed to understand the FAQ. It does answer your case. > If it didn't find some libs, I understand that I would have checked the > option --with-... and check the paths but now it seems like installing one > of the internal (for gcc) packages stdc++ failed. Wrong. > So, you recommend to install mpc, gmp and mpfr once again using > prerequisites? Don't install them separately if you don't know what you're doing. See http://gcc.gnu.org/wiki/InstallingGCC ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 10:27 ` Jonathan Wakely @ 2014-08-08 11:13 ` Kirill Voronin 2014-08-08 11:33 ` Jonathan Wakely 0 siblings, 1 reply; 13+ messages in thread From: Kirill Voronin @ 2014-08-08 11:13 UTC (permalink / raw) To: gcc-help OK, thanks for you responses. Can you please make it a bit more clear about how to build gcc after using download_prerequisites script ? Running ../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install --enable-shared fails with the error checking for the correct version of gmp.h... no configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify their locations. since there is no gmp, mpc and mpfr built. As far as i understand, the download_prerequisites script just downloads the source files. How should I build it? > On 8 August 2014 11:22, Kirill Voronin <kvoronin@labchem.sscc.ru> wrote: >> >> Actually, the version doesn't matter except it should be greater than >> 4.8. >> >> I've already read >> >> https://gcc.gnu.org/wiki/FAQ#configure_suffix >> >> but actually there is no answer for my case since I do have mpc, gmp and >> mpfr installed (correctly at least as make check claimed for each of >> these >> three). > > Then you failed to understand the FAQ. It does answer your case. > >> If it didn't find some libs, I understand that I would have checked the >> option --with-... and check the paths but now it seems like installing >> one >> of the internal (for gcc) packages stdc++ failed. > > Wrong. > >> So, you recommend to install mpc, gmp and mpfr once again using >> prerequisites? > > Don't install them separately if you don't know what you're doing. > > See http://gcc.gnu.org/wiki/InstallingGCC > -- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 11:13 ` Kirill Voronin @ 2014-08-08 11:33 ` Jonathan Wakely 2014-08-08 11:38 ` Jonathan Wakely 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Wakely @ 2014-08-08 11:33 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 8 August 2014 12:13, Kirill Voronin wrote: > > OK, thanks for you responses. > > Can you please make it a bit more clear about how to build gcc after using > download_prerequisites script ? I don't know what isn't clear about the steps at the bottom of the http://gcc.gnu.org/wiki/InstallingGCC page. > Running > > ../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install > --enable-shared > > fails with the error > > checking for the correct version of gmp.h... no > configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. > Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify > their locations. > > since there is no gmp, mpc and mpfr built. I'm guessing you ran download_prerequisites in the wrong directory. > As far as i understand, the download_prerequisites script just downloads > the source files. No, it downloads them, unpacks them and renames the directories. GCC will then build those prerequisites automatically and will know how to link to them correctly. > How should I build it? As it says at http://gcc.gnu.org/wiki/InstallingGCC If you do that correctly it works, so apparently you are not doing it correctly. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 11:33 ` Jonathan Wakely @ 2014-08-08 11:38 ` Jonathan Wakely 2014-08-10 11:58 ` Kirill Voronin 0 siblings, 1 reply; 13+ messages in thread From: Jonathan Wakely @ 2014-08-08 11:38 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 8 August 2014 12:33, Jonathan Wakely wrote: > On 8 August 2014 12:13, Kirill Voronin wrote: >> >> OK, thanks for you responses. >> >> Can you please make it a bit more clear about how to build gcc after using >> download_prerequisites script ? > > I don't know what isn't clear about the steps at the bottom of the > http://gcc.gnu.org/wiki/InstallingGCC page. "Alternatively, after extracting the GCC source archive, simply run the ./contrib/download_prerequisites script in the GCC source directory." Note "in the GCC source directory", not in the GCC build directory, not in the contrib sub-directory of the GCC source directory, not anywhere else. After doing that you should have symlinks called "gmp", "mpfr" and "mpc" in the gcc-4.9.0 source directory - are they present? ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 11:38 ` Jonathan Wakely @ 2014-08-10 11:58 ` Kirill Voronin 2014-08-10 17:43 ` Jonathan Wakely 0 siblings, 1 reply; 13+ messages in thread From: Kirill Voronin @ 2014-08-10 11:58 UTC (permalink / raw) To: gcc-help Yes, the symbolic links called "gmp", "mpfr" and "mpc" in the gcc-4.9.0 source directory are present. I foolowed instructions from the installation guide https://gcc.gnu.org/wiki/InstallingGCC directly, but nevertheless got the following error (in config.log) when doing make (after successful configure) configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5 g++: unrecognized option '-static-libstdc++' conftest.cpp:11:2: error: #error -static-libstdc++ not implemented configure:4987: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | #error -static-libstdc++ not implemented | #endif | int main() {} The configure coomand was like ./contrib/download_prerequisites $PWD/../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 --enable-shared How should I solve the problem? Best regards, Kirill Voronin > On 8 August 2014 12:33, Jonathan Wakely wrote: >> On 8 August 2014 12:13, Kirill Voronin wrote: >>> >>> OK, thanks for you responses. >>> >>> Can you please make it a bit more clear about how to build gcc after >>> using >>> download_prerequisites script ? >> >> I don't know what isn't clear about the steps at the bottom of the >> http://gcc.gnu.org/wiki/InstallingGCC page. > > "Alternatively, after extracting the GCC source archive, simply run > the ./contrib/download_prerequisites script in the GCC source > directory." > > Note "in the GCC source directory", not in the GCC build directory, > not in the contrib sub-directory of the GCC source directory, not > anywhere else. > > After doing that you should have symlinks called "gmp", "mpfr" and > "mpc" in the gcc-4.9.0 source directory - are they present? > -- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-10 11:58 ` Kirill Voronin @ 2014-08-10 17:43 ` Jonathan Wakely 0 siblings, 0 replies; 13+ messages in thread From: Jonathan Wakely @ 2014-08-10 17:43 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 10 August 2014 12:58, Kirill Voronin wrote: > > Yes, the symbolic links called "gmp", "mpfr" and > "mpc" in the gcc-4.9.0 source directory are present. > > I foolowed instructions from the installation guide > > https://gcc.gnu.org/wiki/InstallingGCC > > directly, but nevertheless got the following error (in config.log) when > doing make (after successful configure) > > configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc > configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc > conftest.cpp >&5 > g++: unrecognized option '-static-libstdc++' > conftest.cpp:11:2: error: #error -static-libstdc++ not implemented > configure:4987: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "" > | #define PACKAGE_TARNAME "" > | #define PACKAGE_VERSION "" > | #define PACKAGE_STRING "" > | #define PACKAGE_BUGREPORT "" > | #define PACKAGE_URL "" > | /* end confdefs.h. */ > | > | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) > | #error -static-libstdc++ not implemented > | #endif > | int main() {} At the http://gcc.gnu.org/wiki/FAQ#configure_suffix page I've linked to several times it says "There might be several test programs that failed during the configuration, but some of these failures are non-critical. Check for the last error entry in the file." > The configure coomand was like > > ./contrib/download_prerequisites > $PWD/../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 > --enable-shared If those are really the exact the commands you ran then you're building in the source directory which can cause problems: http://gcc.gnu.org/wiki/FAQ#configure If that's the case then delete the build and source directories and start again from scratch. If you're trying to build in the same directory as your earlier failed attempts then that will cause problems too, so you need to build in a clean directory. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-08 9:54 Problem with building gcc 4.9.0 (libstdc++) Kirill Voronin 2014-08-08 9:56 ` Jonathan Wakely @ 2014-08-10 12:24 ` Brian Drummond 2014-08-10 14:29 ` Kirill Voronin 1 sibling, 1 reply; 13+ messages in thread From: Brian Drummond @ 2014-08-10 12:24 UTC (permalink / raw) To: gcc-help On Fri, 2014-08-08 at 16:54 +0700, Kirill Voronin wrote: > I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). > > I've installed manually mpc, gmp and mpfr before running ./configure > > Configure line: > ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared > --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install > --with-mpc=/usr/new/mpc_install > > and it works fine. > > But then I tried to make and got the following error: > > checking for suffix of object files... configure: error: in > `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile > > The config.log file contains the following error: ...excerpts only > Configured with: ... > --enable-languages=c,c++,objc,obj-c++,java,fortran,ada ... this will cause trouble later... > configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc > configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc > conftest.cpp >&5 > g++: unrecognized option '-static-libstdc++' > conftest.cpp:11:2: error: #error -static-libstdc++ not implemented I don't know why you think this is the problem because (a) a lot of these tests fail and the build process just uses alternative methods, and (b) if it WAS the problem, configure would give up here instead of running further tests (as it does) > configure:5052: checking for gnatbind > configure:5082: result: no > configure:5144: checking for gnatmake > configure:5174: result: no > configure:5193: checking whether compiler driver understands Ada > configure:5216: result: no As Ada is on the list of languages to build, this isn't going to work until you correctly install a suitable Gnat version. > configure:5891: checking for version 0.10 of ISL > configure:5910: gcc -o conftest -g -O2 > -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include > -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include > -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include > conftest.c -lisl >&5 > conftest.c:10:25: error: isl/version.h: No such file or directory > conftest.c: In function 'main': now *this* looks more like a problem (repeated for ISL version 0.11) but my understanding is that ISL is an option not a requirement so far. And that's the end of the config.log file excerpt you posted. So I suspect the error is really further down the file. Follow Jonathan's instructions. Install Gnat. Post the right part of the config.log file, or a link to the whole of it. - Brian ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-10 12:24 ` Brian Drummond @ 2014-08-10 14:29 ` Kirill Voronin 2014-08-10 17:54 ` Jonathan Wakely 0 siblings, 1 reply; 13+ messages in thread From: Kirill Voronin @ 2014-08-10 14:29 UTC (permalink / raw) To: gcc-help Actually, I foolowed the installing instructions and still got the same error. Can anyone please tell me whether Red Hat 4.1.2-46 is compatible (supported) by gcc (e.g., 4.9.0 version)? The full config.log looks like This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ /ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 --enable-shared ## --------- ## ## Platform. ## ## --------- ## hostname = nks-g6.sscc.ru uname -m = x86_64 uname -r = 2.6.18-164.el5 uname -s = Linux uname -v = #1 SMP Tue Aug 18 15:51:48 EDT 2009 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /ifs/opt/2013/intel/impi/4.1.3.049/intel64/bin PATH: /opt/pbs/11.1.0.111761/bin PATH: /usr/java/jre1.6.0_26/bin PATH: /ifs/opt/2013/intel/impi/4.1.3.049/intel64/bin PATH: /usr/kerberos/bin PATH: /usr/local/bin PATH: /bin PATH: /usr/bin PATH: /home/icmmg/voronin/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2322: checking build system type configure:2336: result: x86_64-unknown-linux-gnu configure:2383: checking host system type configure:2396: result: x86_64-unknown-linux-gnu configure:2416: checking target system type configure:2429: result: x86_64-unknown-linux-gnu configure:2483: checking for a BSD-compatible install configure:2551: result: /usr/bin/install -c configure:2562: checking whether ln works configure:2584: result: yes configure:2588: checking whether ln -s works configure:2592: result: yes configure:2599: checking for a sed that does not truncate output configure:2663: result: /bin/sed configure:2672: checking for gawk configure:2688: found /bin/gawk configure:2699: result: gawk configure:3154: checking for libatomic support configure:3164: result: yes configure:3173: checking for libcilkrts support configure:3183: result: yes configure:3192: checking for libitm support configure:3202: result: yes configure:3211: checking for libsanitizer support configure:3221: result: yes configure:3230: checking for libvtv support configure:3240: result: yes configure:3970: checking for gcc configure:3986: found /usr/bin/gcc configure:3997: result: gcc configure:4226: checking for C compiler version configure:4235: gcc --version >&5 gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4246: $? = 0 configure:4235: gcc -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) configure:4246: $? = 0 configure:4235: gcc -V >&5 gcc: '-V' option must have argument configure:4246: $? = 1 configure:4235: gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:4246: $? = 1 configure:4266: checking for C compiler default output file name configure:4288: gcc conftest.c >&5 configure:4292: $? = 0 configure:4329: result: a.out configure:4345: checking whether the C compiler works configure:4354: ./a.out configure:4358: $? = 0 configure:4373: result: yes configure:4380: checking whether we are cross compiling configure:4382: result: no configure:4385: checking for suffix of executables configure:4392: gcc -o conftest conftest.c >&5 configure:4396: $? = 0 configure:4418: result: configure:4424: checking for suffix of object files configure:4446: gcc -c conftest.c >&5 configure:4450: $? = 0 configure:4471: result: o configure:4475: checking whether we are using the GNU C compiler configure:4494: gcc -c conftest.c >&5 configure:4494: $? = 0 configure:4503: result: yes configure:4512: checking whether gcc accepts -g configure:4532: gcc -c -g conftest.c >&5 configure:4532: $? = 0 configure:4573: result: yes configure:4590: checking for gcc option to accept ISO C89 configure:4654: gcc -c -g -O2 conftest.c >&5 configure:4654: $? = 0 configure:4667: result: none needed configure:4745: checking for g++ configure:4761: found /usr/bin/g++ configure:4772: result: g++ configure:4799: checking for C++ compiler version configure:4808: g++ --version >&5 g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4819: $? = 0 configure:4808: g++ -v >&5 Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) configure:4819: $? = 0 configure:4808: g++ -V >&5 g++: '-V' option must have argument configure:4819: $? = 1 configure:4808: g++ -qversion >&5 g++: unrecognized option '-qversion' g++: no input files configure:4819: $? = 1 configure:4823: checking whether we are using the GNU C++ compiler configure:4842: g++ -c conftest.cpp >&5 configure:4842: $? = 0 configure:4851: result: yes configure:4860: checking whether g++ accepts -g configure:4880: g++ -c -g conftest.cpp >&5 configure:4880: $? = 0 configure:4921: result: yes configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc configure:4987: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5 g++: unrecognized option '-static-libstdc++' conftest.cpp:11:2: error: #error -static-libstdc++ not implemented configure:4987: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | #error -static-libstdc++ not implemented | #endif | int main() {} configure:4991: result: no configure:5052: checking for gnatbind configure:5082: result: no configure:5144: checking for gnatmake configure:5174: result: no configure:5193: checking whether compiler driver understands Ada configure:5216: result: no configure:5225: checking how to compare bootstrapped objects configure:5250: result: cmp --ignore-initial=16 $$f1 $$f2 configure:5304: checking for objdir configure:5319: result: .libs configure:5876: WARNING: using in-tree ISL, disabling version check configure:6104: WARNING: using in-tree CLooG, disabling version check configure:7109: checking for default BUILD_CONFIG configure:7141: result: bootstrap-debug configure:7146: checking for --enable-vtable-verify configure:7159: result: no configure:7748: checking for bison configure:7764: found /usr/bin/bison configure:7775: result: bison -y configure:7795: checking for bison configure:7811: found /usr/bin/bison configure:7822: result: bison configure:7842: checking for gm4 configure:7872: result: no configure:7842: checking for gnum4 configure:7872: result: no configure:7842: checking for m4 configure:7858: found /usr/bin/m4 configure:7869: result: m4 configure:7889: checking for flex configure:7905: found /usr/bin/flex configure:7916: result: flex configure:7937: checking for flex configure:7953: found /usr/bin/flex configure:7964: result: flex configure:7984: checking for makeinfo configure:8000: found /usr/bin/makeinfo configure:8011: result: makeinfo configure:8045: checking for expect configure:8061: found /usr/bin/expect configure:8072: result: expect configure:8094: checking for runtest configure:8124: result: no configure:8239: checking for ar configure:8255: found /usr/bin/ar configure:8266: result: ar configure:8380: checking for as configure:8396: found /usr/bin/as configure:8407: result: as configure:8521: checking for dlltool configure:8551: result: no configure:8662: checking for ld configure:8678: found /usr/bin/ld configure:8689: result: ld configure:8803: checking for lipo configure:8833: result: no configure:8944: checking for nm configure:8960: found /usr/bin/nm configure:8971: result: nm configure:9085: checking for ranlib configure:9101: found /usr/bin/ranlib configure:9112: result: ranlib configure:9221: checking for strip configure:9237: found /usr/bin/strip configure:9248: result: strip configure:9357: checking for windres configure:9387: result: no configure:9498: checking for windmc configure:9528: result: no configure:9639: checking for objcopy configure:9655: found /usr/bin/objcopy configure:9666: result: objcopy configure:9780: checking for objdump configure:9796: found /usr/bin/objdump configure:9807: result: objdump configure:9921: checking for readelf configure:9937: found /usr/bin/readelf configure:9948: result: readelf configure:10101: checking for cc configure:10117: found /usr/bin/cc configure:10128: result: cc configure:10262: checking for c++ configure:10278: found /usr/bin/c++ configure:10289: result: c++ configure:10423: checking for gcc configure:10439: found /usr/bin/gcc configure:10450: result: gcc configure:10579: checking for gcj configure:10609: result: no configure:10740: checking for gfortran configure:10756: found /usr/bin/gfortran configure:10767: result: gfortran configure:10901: checking for gccgo configure:10931: result: no configure:10992: checking for ar configure:11025: result: no configure:11142: checking for ar configure:11158: found /usr/bin/ar configure:11169: result: ar configure:11222: checking for as configure:11255: result: no configure:11372: checking for as configure:11388: found /usr/bin/as configure:11399: result: as configure:11452: checking for dlltool configure:11485: result: no configure:11602: checking for dlltool configure:11632: result: no configure:11682: checking for ld configure:11715: result: no configure:11832: checking for ld configure:11848: found /usr/bin/ld configure:11859: result: ld configure:11912: checking for lipo configure:11945: result: no configure:12062: checking for lipo configure:12092: result: no configure:12142: checking for nm configure:12175: result: no configure:12292: checking for nm configure:12308: found /usr/bin/nm configure:12319: result: nm configure:12372: checking for objdump configure:12405: result: no configure:12522: checking for objdump configure:12538: found /usr/bin/objdump configure:12549: result: objdump configure:12602: checking for ranlib configure:12635: result: no configure:12752: checking for ranlib configure:12768: found /usr/bin/ranlib configure:12779: result: ranlib configure:12832: checking for readelf configure:12865: result: no configure:12982: checking for readelf configure:12998: found /usr/bin/readelf configure:13009: result: readelf configure:13062: checking for strip configure:13095: result: no configure:13212: checking for strip configure:13228: found /usr/bin/strip configure:13239: result: strip configure:13292: checking for windres configure:13325: result: no configure:13442: checking for windres configure:13472: result: no configure:13522: checking for windmc configure:13555: result: no configure:13672: checking for windmc configure:13702: result: no configure:13730: checking where to find the target ar configure:13763: result: host tool configure:13772: checking where to find the target as configure:13805: result: host tool configure:13814: checking where to find the target cc configure:13837: result: just compiled configure:13856: checking where to find the target c++ configure:13882: result: just compiled configure:13901: checking where to find the target c++ for libstdc++ configure:13927: result: just compiled configure:13946: checking where to find the target dlltool configure:13979: result: host tool configure:13988: checking where to find the target gcc configure:14011: result: just compiled configure:14030: checking where to find the target gcj configure:14056: result: just compiled configure:14075: checking where to find the target gfortran configure:14101: result: just compiled configure:14120: checking where to find the target gccgo configure:14156: result: host tool configure:14165: checking where to find the target ld configure:14198: result: host tool configure:14207: checking where to find the target lipo configure:14229: result: host tool configure:14238: checking where to find the target nm configure:14271: result: host tool configure:14280: checking where to find the target objdump configure:14313: result: host tool configure:14322: checking where to find the target ranlib configure:14355: result: host tool configure:14364: checking where to find the target readelf configure:14397: result: host tool configure:14406: checking where to find the target strip configure:14439: result: host tool configure:14448: checking where to find the target windres configure:14481: result: host tool configure:14490: checking where to find the target windmc configure:14523: result: host tool configure:14560: checking whether to enable maintainer-specific portions of Makefiles configure:14569: result: no configure:14790: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.64. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on nks-g6.sscc.ru config.status:1030: creating Makefile ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_AR_FOR_TARGET_set= ac_cv_env_AR_FOR_TARGET_value= ac_cv_env_AR_set= ac_cv_env_AR_value= ac_cv_env_AS_FOR_TARGET_set= ac_cv_env_AS_FOR_TARGET_value= ac_cv_env_AS_set= ac_cv_env_AS_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_FOR_TARGET_set= ac_cv_env_CC_FOR_TARGET_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_FOR_TARGET_set= ac_cv_env_CXX_FOR_TARGET_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_DLLTOOL_FOR_TARGET_set= ac_cv_env_DLLTOOL_FOR_TARGET_value= ac_cv_env_DLLTOOL_set= ac_cv_env_DLLTOOL_value= ac_cv_env_GCC_FOR_TARGET_set= ac_cv_env_GCC_FOR_TARGET_value= ac_cv_env_GCJ_FOR_TARGET_set= ac_cv_env_GCJ_FOR_TARGET_value= ac_cv_env_GFORTRAN_FOR_TARGET_set= ac_cv_env_GFORTRAN_FOR_TARGET_value= ac_cv_env_GOC_FOR_TARGET_set= ac_cv_env_GOC_FOR_TARGET_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LD_FOR_TARGET_set= ac_cv_env_LD_FOR_TARGET_value= ac_cv_env_LD_set= ac_cv_env_LD_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LIPO_FOR_TARGET_set= ac_cv_env_LIPO_FOR_TARGET_value= ac_cv_env_LIPO_set= ac_cv_env_LIPO_value= ac_cv_env_NM_FOR_TARGET_set= ac_cv_env_NM_FOR_TARGET_value= ac_cv_env_NM_set= ac_cv_env_NM_value= ac_cv_env_OBJCOPY_set= ac_cv_env_OBJCOPY_value= ac_cv_env_OBJDUMP_FOR_TARGET_set= ac_cv_env_OBJDUMP_FOR_TARGET_value= ac_cv_env_OBJDUMP_set= ac_cv_env_OBJDUMP_value= ac_cv_env_RANLIB_FOR_TARGET_set= ac_cv_env_RANLIB_FOR_TARGET_value= ac_cv_env_RANLIB_set= ac_cv_env_RANLIB_value= ac_cv_env_READELF_FOR_TARGET_set= ac_cv_env_READELF_FOR_TARGET_value= ac_cv_env_READELF_set= ac_cv_env_READELF_value= ac_cv_env_STRIP_FOR_TARGET_set= ac_cv_env_STRIP_FOR_TARGET_value= ac_cv_env_STRIP_set= ac_cv_env_STRIP_value= ac_cv_env_WINDMC_FOR_TARGET_set= ac_cv_env_WINDMC_FOR_TARGET_value= ac_cv_env_WINDMC_set= ac_cv_env_WINDMC_value= ac_cv_env_WINDRES_FOR_TARGET_set= ac_cv_env_WINDRES_FOR_TARGET_value= ac_cv_env_WINDRES_set= ac_cv_env_WINDRES_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_build_configargs_set= ac_cv_env_build_configargs_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_host_configargs_set= ac_cv_env_host_configargs_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_env_target_configargs_set= ac_cv_env_target_configargs_value= ac_cv_host=x86_64-unknown-linux-gnu ac_cv_objext=o ac_cv_path_SED=/bin/sed ac_cv_path_install='/usr/bin/install -c' ac_cv_prog_AR=ar ac_cv_prog_AR_FOR_TARGET=ar ac_cv_prog_AS=as ac_cv_prog_AS_FOR_TARGET=as ac_cv_prog_AWK=gawk ac_cv_prog_BISON=bison ac_cv_prog_CC_FOR_TARGET=cc ac_cv_prog_CXX_FOR_TARGET=c++ ac_cv_prog_EXPECT=expect ac_cv_prog_FLEX=flex ac_cv_prog_GCC_FOR_TARGET=gcc ac_cv_prog_GFORTRAN_FOR_TARGET=gfortran ac_cv_prog_LD=ld ac_cv_prog_LD_FOR_TARGET=ld ac_cv_prog_LEX=flex ac_cv_prog_M4=m4 ac_cv_prog_MAKEINFO=makeinfo ac_cv_prog_NM=nm ac_cv_prog_NM_FOR_TARGET=nm ac_cv_prog_OBJCOPY=objcopy ac_cv_prog_OBJDUMP=objdump ac_cv_prog_OBJDUMP_FOR_TARGET=objdump ac_cv_prog_RANLIB=ranlib ac_cv_prog_RANLIB_FOR_TARGET=ranlib ac_cv_prog_READELF=readelf ac_cv_prog_READELF_FOR_TARGET=readelf ac_cv_prog_STRIP=strip ac_cv_prog_STRIP_FOR_TARGET=strip ac_cv_prog_YACC='bison -y' ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_target=x86_64-unknown-linux-gnu acx_cv_cc_gcc_supports_ada=no acx_cv_prog_LN=ln gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' gcc_cv_tool_dirs=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0:/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0/libexec/gcc/x86_64-unknown-linux-gnu:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0:/usr/lib/gcc/x86_64-unknown-linux-gnu:/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.9.0:/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0/x86_64-unknown-linux-gnu/bin: gcc_cv_tool_prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 lt_cv_objdir=.libs ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AR_FOR_BUILD='$(AR)' AR_FOR_TARGET='$(AR)' AS='as' AS_FOR_BUILD='$(AS)' AS_FOR_TARGET='$(AS)' AWK='gawk' BISON='bison' BUILD_CONFIG='bootstrap-debug' CC='gcc' CC_FOR_BUILD='$(CC)' CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' CFLAGS='-g -O2' CFLAGS_FOR_BUILD='-g -O2' CFLAGS_FOR_TARGET='-g -O2' COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm' CONFIGURE_GDB_TK='' CPPFLAGS='' CXX='g++' CXXFLAGS='-g -O2' CXXFLAGS_FOR_BUILD='-g -O2' CXXFLAGS_FOR_TARGET='-g -O2' CXX_FOR_BUILD='$(CXX)' CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' DEBUG_PREFIX_CFLAGS_FOR_TARGET='' DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"' DLLTOOL='dlltool' DLLTOOL_FOR_BUILD='$(DLLTOOL)' DLLTOOL_FOR_TARGET='$(DLLTOOL)' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' EXPECT='expect' EXTRA_CONFIGARGS_LIBJAVA='--disable-static' FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' FLEX='flex' GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' GCC_SHLIB_SUBDIR='' GCJ_FOR_BUILD='$(GCJ)' GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' GDB_TK='' GFORTRAN_FOR_BUILD='$(GFORTRAN)' GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' GNATBIND='no' GNATMAKE='no' GOC_FOR_BUILD='$(GOC)' GOC_FOR_TARGET='$(GOC)' INSTALL_DATA='${INSTALL} -m 644' INSTALL_GDB_TK='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' LD='ld' LDFLAGS='' LDFLAGS_FOR_BUILD='' LDFLAGS_FOR_TARGET='' LD_FOR_BUILD='$(LD)' LD_FOR_TARGET='$(LD)' LEX='flex' LIBOBJS='' LIBS='' LIPO='lipo' LIPO_FOR_TARGET='$(LIPO)' LN='ln' LN_S='ln -s' LTLIBOBJS='' M4='m4' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='makeinfo' NM='nm' NM_FOR_BUILD='$(NM)' NM_FOR_TARGET='$(NM)' OBJCOPY='objcopy' OBJDUMP='objdump' OBJDUMP_FOR_TARGET='$(OBJDUMP)' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='ranlib' RANLIB_FOR_BUILD='$(RANLIB)' RANLIB_FOR_TARGET='$(RANLIB)' RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' READELF='readelf' READELF_FOR_TARGET='$(READELF)' RPATH_ENVVAR='LD_LIBRARY_PATH' RUNTEST='runtest' SED='/bin/sed' SHELL='/bin/sh' STRIP='strip' STRIP_FOR_TARGET='$(STRIP)' SYSROOT_CFLAGS_FOR_TARGET='' TOPLEVEL_CONFIGURE_ARGUMENTS='/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/../gcc-4.9.0/configure --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 --enable-shared' WINDMC='windmc' WINDMC_FOR_BUILD='$(WINDMC)' WINDMC_FOR_TARGET='$(WINDMC)' WINDRES='windres' WINDRES_FOR_BUILD='$(WINDRES)' WINDRES_FOR_TARGET='$(WINDRES)' YACC='bison -y' ac_ct_CC='gcc' ac_ct_CXX='g++' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='' build_configargs=' --cache-file=../config.cache '\''--prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0'\'' '\''--enable-shared'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' build_configdirs=' libiberty fixincludes' build_cpu='x86_64' build_libsubdir='build-x86_64-unknown-linux-gnu' build_noncanonical='x86_64-unknown-linux-gnu' build_os='linux-gnu' build_subdir='build-x86_64-unknown-linux-gnu' build_tooldir='${exec_prefix}/x86_64-unknown-linux-gnu' build_vendor='unknown' clooginc='-DCLOOG_INT_GMP -I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/../gcc-4.9.0/cloog/include ' clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -lcloog-isl -L$$r/$(HOST_SUBDIR)/isl/.libs -lisl' compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*' configdirs=' intl libiberty zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog fixincludes gcc lto-plugin' datadir='${datarootdir}' datarootdir='${prefix}/share' do_compare='cmp --ignore-initial=16 $$f1 $$f2' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='${prefix}' extra_host_libiberty_configure_flags='--enable-shared' extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs' extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/.libs' extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs' gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr -I$$s/mpc/src ' gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp' host='x86_64-unknown-linux-gnu' host_alias='' host_configargs=' --cache-file=./config.cache '\''--prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0'\'' '\''--enable-shared'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' host_cpu='x86_64' host_noncanonical='x86_64-unknown-linux-gnu' host_os='linux-gnu' host_shared='no' host_subdir='.' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' poststage1_ldflags='-static-libstdc++ -static-libgcc' poststage1_libs='' prefix='/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0' program_transform_name='s,y,y,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' stage1_cflags='-g' stage1_checking='--enable-checking=yes,types' stage1_languages='c,c++,lto' stage1_ldflags='' stage1_libs='' stage2_werror_flag='' sysconfdir='${prefix}/etc' target='x86_64-unknown-linux-gnu' target_alias='' target_configargs='--cache-file=./config.cache --enable-multilib '\''--prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0'\'' '\''--enable-shared'\'' '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking' target_configdirs=' libgcc libgomp libcilkrts libatomic libitm libstdc++-v3 libsanitizer libvtv libssp libquadmath libgfortran boehm-gc libffi zlib libjava libobjc' target_cpu='x86_64' target_noncanonical='x86_64-unknown-linux-gnu' target_os='linux-gnu' target_subdir='x86_64-unknown-linux-gnu' target_vendor='unknown' tooldir='${exec_prefix}/x86_64-unknown-linux-gnu' ## ------------------- ## ## File substitutions. ## ## ------------------- ## alphaieee_frag='/dev/null' host_makefile_frag='/dev/null' ospace_frag='/dev/null' serialization_dependencies='serdep.tmp' target_makefile_frag='/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/../gcc-4.9.0/config/mt-gnu' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define LT_OBJDIR ".libs/" configure: exit 0 Best regards, Kirill Voronin > On Fri, 2014-08-08 at 16:54 +0700, Kirill Voronin wrote: >> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version). >> >> I've installed manually mpc, gmp and mpfr before running ./configure >> >> Configure line: >> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared >> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install >> --with-mpc=/usr/new/mpc_install >> >> and it works fine. >> >> But then I tried to make and got the following error: >> >> checking for suffix of object files... configure: error: in >> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc': >> configure: error: cannot compute suffix of object files: cannot compile >> >> The config.log file contains the following error: > > ...excerpts only > >> Configured with: ... >> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada > ... this will cause trouble later... > >> configure:4970: checking whether g++ accepts -static-libstdc++ >> -static-libgcc >> configure:4987: g++ -o conftest -g -O2 -static-libstdc++ >> -static-libgcc >> conftest.cpp >&5 >> g++: unrecognized option '-static-libstdc++' >> conftest.cpp:11:2: error: #error -static-libstdc++ not implemented > > I don't know why you think this is the problem because (a) a lot of > these tests fail and the build process just uses alternative methods, > and (b) if it WAS the problem, configure would give up here instead of > running further tests (as it does) > >> configure:5052: checking for gnatbind >> configure:5082: result: no >> configure:5144: checking for gnatmake >> configure:5174: result: no >> configure:5193: checking whether compiler driver understands Ada >> configure:5216: result: no > > As Ada is on the list of languages to build, this isn't going to work > until you correctly install a suitable Gnat version. > >> configure:5891: checking for version 0.10 of ISL >> configure:5910: gcc -o conftest -g -O2 >> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include >> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include >> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include >> conftest.c -lisl >&5 >> conftest.c:10:25: error: isl/version.h: No such file or directory >> conftest.c: In function 'main': > > now *this* looks more like a problem (repeated for ISL version 0.11) but > my understanding is that ISL is an option not a requirement so far. > > And that's the end of the config.log file excerpt you posted. So I > suspect the error is really further down the file. > > Follow Jonathan's instructions. > Install Gnat. > Post the right part of the config.log file, or a link to the whole of > it. > > - Brian > > > -- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with building gcc 4.9.0 (libstdc++) 2014-08-10 14:29 ` Kirill Voronin @ 2014-08-10 17:54 ` Jonathan Wakely 0 siblings, 0 replies; 13+ messages in thread From: Jonathan Wakely @ 2014-08-10 17:54 UTC (permalink / raw) To: Kirill Voronin; +Cc: gcc-help On 10 August 2014 15:29, Kirill Voronin wrote: > > > Actually, I foolowed the installing instructions and still got the same > error. > > Can anyone please tell me whether Red Hat 4.1.2-46 is compatible > (supported) by gcc (e.g., 4.9.0 version)? It should work OK, the errors you're getting do not indicate a problem with the compiler anyway (they imply mis-configuration). > The full config.log looks like > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > It was created by configure, which was > generated by GNU Autoconf 2.64. Invocation command line was > > $ > /ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/../gcc-4.9.0/configure > --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc-4.9.0 > --enable-shared What directory does the build fail in? Are you even looking in the right config.log? http://gcc.gnu.org/wiki/FAQ#configure_suffix explains that you need to look at config.log in the directory where the build fails. ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2014-08-10 17:54 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-08-08 9:54 Problem with building gcc 4.9.0 (libstdc++) Kirill Voronin 2014-08-08 9:56 ` Jonathan Wakely 2014-08-08 9:58 ` Jonathan Wakely 2014-08-08 10:22 ` Kirill Voronin 2014-08-08 10:27 ` Jonathan Wakely 2014-08-08 11:13 ` Kirill Voronin 2014-08-08 11:33 ` Jonathan Wakely 2014-08-08 11:38 ` Jonathan Wakely 2014-08-10 11:58 ` Kirill Voronin 2014-08-10 17:43 ` Jonathan Wakely 2014-08-10 12:24 ` Brian Drummond 2014-08-10 14:29 ` Kirill Voronin 2014-08-10 17:54 ` Jonathan Wakely
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).