This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.3.0 build; I built the g++ compiler, but there are no header files and no C++ libraries
- From: Andrew Haley <aph at redhat dot com>
- To: chris kuhlman <ckuhlman at vbi dot vt dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 15 May 2008 16:59:29 +0100
- Subject: Re: gcc 4.3.0 build; I built the g++ compiler, but there are no header files and no C++ libraries
- References: <482AC3D1.1010105@vbi.vt.edu>
chris kuhlman wrote:
> Hello:
>
> I wrote to the help gcc site and got no response, so I am writing here.
> Help would be immensely appreciated.
>
> I am trying to build GCC 4.3.0. I built GMP 4.2.2 and MPFR 2.3.1,
> and then I built GCC 4.3.0. Everything appeared to go fine. I
> installed compilers for C, C++, and Fortran.
>
> To configure, I did:
>
> ../src-gcc-4.3.0/gcc-4.3.0/configure
> --prefix=/home/simsci1/share/gcc-4.3.0/
> --with-gmp=/home/simsci1/share/to-build-gcc_4.3.0/gmp-4.2.2/install_exec/
> --with-mpfr=/home/simsci1/share/to-build-gcc_4.3.0/mpfr-2.3.1/
> --enable-version-specific-runtime-libs
>
> Then I did
> make
>
> and then
> make install
>
> (The config.log file is attached.)
>
> I then made up and ran some very simple C, C++, and Fortran codes, and
> they compiled and ran.
>
> However, I now look in the GCC 4.3.0 install directory, and under
> include there
> are no header files for C++, as detailed below. The include directory
> is empty. Also, under the bin directory, there are files suspiciously
> missing, like libstdc++.a, libstdc++.la, libstdc++.so.6.0.7,
> libsupc++.a, libsupc++.la, and libgcc_s.so.1.
These should be under the lib directory, not the bin directory.
> Yet, under the bin directory, the g++ and gfortran compiler executables
> exist and work (at least for small codes), as well as the gcc compiler.
>
> So, how can the compiler be installed correctly, but not the header
> files and not the libraries for C++?
>
> I used GCC 4.1.0 to build GCC 4.3.0. So I looked under the install
> directory for GCC 4.1.0, and under the include directory for GCC 4.1.0,
> there is a c++ directory and a file called mf-runtime.h. Under the c++
> directory is a directory called 4.1.0 and that directory appears to have
> all of the C++
> header files.
>
> Do you know why I did not generate the include directory and header
> files, and the libraries under the lib directory,
> when I generated the g++ compiler itself?
I think you did "make install" in the wrong directory.
$ ls gcc/trunk/install
bin/ include/ info/ lib/ lib64/ libexec/ man/ share/
$ ls gcc/trunk/install/lib
gcc/ libgcj-tools.so.9@ libmudflapth.so.0@
gcj-4.3.0-9/ libgcj-tools.so.9.0.0* libmudflapth.so.0.0.0*
libffi.la* libgij.la* libssp.la*
libffi.so@ libgij.so@ libssp_nonshared.a
libffi.so.4@ libgij.so.9@ libssp_nonshared.la*
libffi.so.4.0.1* libgij.so.9.0.0* libssp.so@
libgcc_s.so@ libgomp.la* libssp.so.0@
libgcc_s.so.1 libgomp.so@ libssp.so.0.0.0*
libgcj_bc.so* libgomp.so.1@ libstdc++.la*
libgcj_bc.so.1@ libgomp.so.1.0.0* libstdc++.so@
libgcj_bc.so.1.0.0* libgomp.spec libstdc++.so.6@
libgcj.la* libiberty.a libstdc++.so.6.0.10*
libgcj.so@ libmudflap.la* libsupc++.a
libgcj.so.9@ libmudflap.so@ libsupc++.la*
libgcj.so.9.0.0* libmudflap.so.0@ logging.properties
libgcj.spec libmudflap.so.0.0.0* pkgconfig/
libgcj-tools.la* libmudflapth.la* security/
libgcj-tools.so@ libmudflapth.so@