Bootstrap error

Douglas B. Staple dstaple@Dal.Ca
Tue May 7 13:01:00 GMT 2013


Hey Jonathan,

Thanks for the ideas. I tried:
1) removing the '-j 16'
2) using an absolute path when calling configure.
3) using the contrib/download_prerequisites script to download 
mpfr-2.4.2, gmp-4.3.2, and mpc-0.8.1, instead of the newer versions above.
4) setting the PWDCMD environment variable to an automounter-aware pwd 
command (pawd).

None of these things resolved the issue.  I'm out of ideas for now, so I 
posted the question on Super User:
http://superuser.com/questions/592552/bootstrap-error-while-compiling-gcc-4-8-0
If the answer comes up here then I'll post it there and vice versa.

Doug

On 2013-05-06 6:34 PM, Jonathan Wakely wrote:
> On 6 May 2013 18:09, Douglas B. Staple wrote:
>> Hello all,
>>
>> I'm getting bootstrap errors while trying to install GCC and could use some
>> help.  I'm trying to compile my own copy of GCC from source, in my home
>> directory on a shared system (cluster).  The cluster has GCC 4.4.3 that I'm
>> using to bootstrap the compilation. I wrote this little script to show what
>> I'm doing and to help in debugging:
>>
>> # Installation parameters
>> gccver=4.8.0
>> gmpver=5.1.1
>> mpcver=1.0.1
>> mpfrver=3.1.2
>> prefix=$HOME/local
>> langs=c,c++
>>
>> # Download source
>> wget ftp://gnu.mirror.iweb.com/gnu/gcc/gcc-${gccver}/gcc-${gccver}.tar.gz
>> wget ftp://ftp.gnu.org/gnu/gmp/gmp-${gmpver}.tar.bz2
>> wget ftp://ftp.gnu.org/gnu/mpc/mpc-${mpcver}.tar.gz
>> wget ftp://ftp.gnu.org/gnu/mpfr/mpfr-${mpfrver}.tar.gz
>>
>> # Unpack source
>> tar -xzvf gcc-${gccver}.tar.gz
>> tar -xjvf gmp-${gmpver}.tar.bz2
>> tar -xzvf mpc-${mpcver}.tar.gz
>> tar -xzvf mpfr-${mpfrver}.tar.gz
>>
>> # Move dependency source directories into gcc source directory
>> mv gmp-${gmpver} gcc-${gccver}/gmp
>> mv mpc-${mpcver} gcc-${gccver}/mpc
>> mv mpfr-${mpfrver} gcc-${gccver}/mpfr
>>
>> # create a build directory and change to it
>> mkdir objdir
>> pushd objdir
>>
>> # configure, make, check, and install gcc:
>> ../gcc-${gccver}/configure --prefix=${prefix} --enable-languages=${langs}
>> make -j 16
>> make install
>>
>> # return to the original directory
>> popd
>>
>> The above fails during 'make' with the error: "Bootstrap comparison
>> failure!"  I've attached the last few pages of output as error.txt. If
>> anyone has any suggestions then I'd be really happy to hear them.  Also, let
>> me know what other information I can provide that would be relevant.
> Your procedure looks fine, I'm not sure why you get the bootstrap
> comparison errors.
>
> Does objdir definitely not exist before you start?
>
> Have you tried without -j16 ?  It certainly should work with parallel
> builds, but it could be worth checking that there isn't some problem
> caused by that in your environment.
>



More information about the Gcc-help mailing list