I have a very clean build environment with a minimalistic set of env vars.  My
system (RHEL4) did not have an existsing gmp and mpfr, so I build them using
the standard steps and installed them to a local directory.  I configured gcc
the first time and forgot to point to where gmp and mpfr were and the configure
failed (as would be expected).  So I started over and pointed gcc to the proper
place:

Configured with: /home/jrevans/src/COTS-Build/build_src/gcc-4.3.0/configure
--prefix=/home/jrevans/src/COTS-Build/build_local --enable-languages=c,c++
--with-gmp=/home/jrevans/src/COTS-Build/build_local
--with-mpfr=/home/jrevans/src/COTS-Build/build_local

I build with the following command, and get an error (see attached):
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2
-fno-implicit-templates' bootstrap

I set my PATH and LD_LIBRARY_PATH environments variables to point to the
location of the installed gmp and mpfr and still get the same error.  I finally
was able to build successfully after setting the PATH and LD_LIBRARY_PATH
variables in my '.cshrc' file to point to the installed gmp and mpfr location.

This seems to me that the gcc build should pick up the gmp and mpfr pointed to
in the configure step and never need any environment variable to tell it where
things are.


-- 
           Summary: Build does not properly detect gmp and mpfr
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jrevans1 at earthlink dot net
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36027

Reply via email to