This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

Problem with building gcc 4.9.0 (libstdc++)


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



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