On 02/15/2012 03:24 PM, Martin Jambor wrote:
Hi,

On Thu, Feb 09, 2012 at 08:26:06PM +0100, Toon Moene wrote:
On 02/09/2012 07:16 PM, Arnaud Charlet wrote:

Yes.  Debian moved everything for some reason.  It's a problem that must
be addressed somehow before gcc 4.7 is released.

It's extremely unfortunate that this will make it impossible to build
older releases of gcc on newer Debian installations.

Note that there's a simple work around:
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

So this shouldn't block GCC 4.7.

I tried that, and it is not enough (it was for a while after August, 2011).


With the following three lines in my .bashrc, I can build trunk on
Debian unstable just fine (both updated this Monday).  OTOH, I don't
do bootstraps on this machine if that is the problem.

export LIBRARY_PATH=/usr/lib/i386-linux-gnu/
export C_INCLUDE_PATH=/usr/include/i386-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu

Martin

I did a bootstrap - using Martin's suggestion, see the attached script - on a Debian Testing system (x86_64) updated Saturday the 4th of February, without problems.

See: http://gcc.gnu.org/ml/gcc-testresults/2012-02/msg01453.html

--
Toon Moene - e-mail: t...@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
#!/bin/sh

export TMPDIR=/scratch/toon/tmp$$
mkdir $TMPDIR

cd $HOME/compilers/gcc

( \
        svn up && \
        echo "`date -u` (revision `svnversion .`)" >> LAST_UPDATED \
) >& $TMPDIR/log

if [ $? -ne 0 ]
then
    tail -90 $TMPDIR/log | \
        Mail -s \
            "$0: svn update FAILED" \
                t...@moene.org
    rm -rf $TMPDIR
    exit 0
fi

cd ../obj-t && rm -r *
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu

( \
        ../gcc/configure \
                --prefix=/tmp/c \
                --with-gnu-ld \
                --enable-languages=${1-fortran} \
                --disable-multilib \
                --disable-nls \
                --with-arch=native \
                --with-tune=native && \
        make -j 8 \
) >& $TMPDIR/log

if [ $? -eq 0 ]
then
    make -k -j 8 check
    ../gcc/contrib/test_summary | sh
else
    echo FAIL
    tail -90 $TMPDIR/log
#    tail -90 $TMPDIR/log | \
#       Mail -s \
#           "Trunk Bootstrap of `tail -1 ../gcc/LAST_UPDATED` FAILED" \
#               gcc-testresu...@gcc.gnu.org
fi

#rm -rf $TMPDIR

exit 0

Reply via email to