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/42775] New: sparc-linux 4.4.2 fails to rebuild itself when using STAGE1_CFLAGS=-O1


../gcc-4.4.2/configure --enable-languages=c --disable-werror
--enable-__cxa_atexit --disable-nls --enable-threads=posix --disable-multilib
--prefix=/opt/cfarm/release/4.4.2 --with-cpu=v8
make bootstrap && make install
PATH=/opt/cfarm/release/4.4.2/bin:$PATH
../gcc-4.4.2/configure --enable-languages=c --disable-werror
--enable-__cxa_atexit --disable-nls --enable-threads=posix --disable-multilib
--prefix=/opt/cfarm/release/4.4.2-v2 --with-cpu=v8
make bootstrap STAGE1_CFLAGS=-O1

fails with

/home/guerby/build442/./gcc/xgcc -B/home/guerby/build442/./gcc/
-B/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/bin/
-B/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/lib/ -isystem
/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/include -isystem
/opt/cfarm/release/4.4.2-v3/sparc64-unknown-linux-gnu/sys-include -g -O2 -O2 
-g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include 
-fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I.
-I../.././gcc -I../../../gcc-4.4.2/libgcc -I../../../gcc-4.4.2/libgcc/.
-I../../../gcc-4.4.2/libgcc/../gcc -I../../../gcc-4.4.2/libgcc/../include 
-DHAVE_CC_TLS -o _popcountsi2.o -MT _popcountsi2.o -MD -MP -MF _popcountsi2.dep
-DL_popcountsi2 -c ../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c: In function '__popcountsi2':
../../../gcc-4.4.2/libgcc/../gcc/libgcc2.c:787: internal compiler error: Bus
error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [_popcountsi2.o] Error 1
make[3]: Leaving directory
`/home/guerby/build442/sparc64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/guerby/build442'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/guerby/build442'
make: *** [bootstrap] Error 2


Without STAGE1_CFLAGS=-O1 bootstrap works.

Note: this is gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=283041


-- 
           Summary: sparc-linux 4.4.2 fails to rebuild itself when using
                    STAGE1_CFLAGS=-O1
           Product: gcc
           Version: 4.4.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent at guerby dot net
 GCC build triplet: sparc-linux
  GCC host triplet: sparc-linux
GCC target triplet: sparc-linux


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


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