This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/20282] New: gcc4 can not bootstrap itself anymore


This is a all native powerpc64-linux build enviroment,
which itself is compiled with the current hammer-3_3-branch.

The script below fails in the last function call.
It does work if I compile a gcc-4.0.0-20040913 with itself.
A simple 'build_one_try gcc4-1  ~/src/gcc-head ; build_one_try gcc4-2  ~/src/gcc-head'
fails as well. A 'export CFLAGS=-O1' does not fix it.

Trying the snapshots between September and March now.

abuild@tangelo:~/objgcc-gcc4-3/gcc> ./xgcc -B./
-B/home/abuild/install_gcc4-3/powerpc64-unknown-linux-gnu/bin/ -isystem
/home/abuild/install_gcc4-3/powerpc64-unknown-linux-gnu/include -isystem
/home/abuild/install_gcc4-3/powerpc64-unknown-linux-gnu/sys-include
-L/home/abuild/objgcc-gcc4-3/gcc/../ld -O2 -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
/include  -I. -I. -I/home/abuild/src/gcc-head/gcc
-I/home/abuild/src/gcc-head/gcc/. -I/home/abuild/src/gcc-head/gcc/../include
-I/home/abuild/src/gcc-head/gcc/../libcpp/include   -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time -fPIC -msdata=none    -c
/home/abuild/src/gcc-head/gcc/crtstuff.c -DCRT_END -DCRTSTUFFS_O   -o crtendS.o
In file included from /usr/include/stdio.h:830,
                 from /home/abuild/src/gcc-head/gcc/tsystem.h:90,
                 from /home/abuild/src/gcc-head/gcc/crtstuff.c:64:
/usr/include/bits/stdio.h: In function 'vprintf':
/usr/include/bits/stdio.h:36: error: expected expression before '__restrict__'
/usr/include/bits/stdio.h:36: error: too few arguments to function 'vfprintf'
/usr/include/bits/stdio.h: In function 'getchar':
/usr/include/bits/stdio.h:43: error: expected expression before '__restrict__'
/usr/include/bits/stdio.h: In function 'getchar_unlocked':
/usr/include/bits/stdio.h:59: internal compiler error: tree check: expected
identifier_node, have error_mark in lookup_name, at c-decl.c:2553
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



set -ex
mycpus=`grep -c 'cpu[0-9]' /proc/stat || echo 1`
cd $HOME
cd src/
#tar xfj /usr/src/packages/SOURCES/gcc-4.0.0-20050228.tar.bz2
###
###
###
build_one_try () {
#
try="$1"
gccsrc="$2"
#
cd $HOME
export myprefix=$HOME/install_${try}
rm -rf ${myprefix}
rm -rf objbin-${try}/
mkdir objbin-${try}
cd objbin-${try}/
~/src/binutils-head/src/configure --prefix=$myprefix --disable-nls
/usr/bin/time make -j $mycpus &>log
/usr/bin/time make install &>logi
export PATH=$myprefix/bin:$PATH
#
cd $HOME
rm -rf objgcc-${try}/
mkdir objgcc-${try}
cd objgcc-${try}/
$gccsrc/configure --prefix=$myprefix --enable-threads=posix --enable-languages=c --enable-checking  --with-system-zlib --enable-shared --enable-__cxa_atexit  --disable-nls
/usr/bin/time make bootstrap-lean -j $mycpus &>log
/usr/bin/time make install &>logi
#
}
###
###
build_one_try gcc34-1 ~/src/gcc-3_4-branch
build_one_try gcc34-2 ~/src/gcc-3_4-branch
build_one_try gcc4-1  ~/src/gcc-head
build_one_try gcc34-3 ~/src/gcc-3_4-branch
build_one_try gcc4-2  ~/src/gcc-head
build_one_try gcc4-3  ~/src/gcc-head

-- 
           Summary: gcc4 can not bootstrap itself anymore
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olh at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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


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