delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/09/15/13:34:12

X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs-
From: Mathias Froehlich <frohlich AT na DOT mathematik DOT uni-tuebingen DOT de>
MIME-Version: 1.0
Message-ID: <13822.27768.624236.848910@na12>
Date: Tue, 15 Sep 1998 15:32:40 +0200 (MET DST)
To: pgcc-list AT Desk DOT nl
Subject: Can't bootstrap pgcc-1.1
X-Mailer: VM 6.59 under Emacs 19.34.1
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
X-Status: A
Lines: 143

Hi, pgcc team,

I tried to compile pgcc-1.1 based on egcs-1.1b on a PPro-solaris-x86
system. The gas-2.9.1 (plain binutils-2.9.1 from prep.ai.mit.edu, no
H.J. Lu bugfixes) binary is installed in

/sw/i86_56/pgcc-1.1b/i686-pc-solaris2.6/bin/as

so pgcc will use gas as assembler.

make bootstrap fails.

The configuration is as follows:

CC=gcc CXX=g++ CFLAGS='-O3 -march=pentiumpro' \
CXXFLAGS='-O3 -march=pentiumpro' ./configure \
--prefix=/sw/i86_56/pgcc-1.1b --host=i686-pc-solaris2.6 --enable-haifa

where gcc is gcc-2.8.1 configured for i686-pc-solaris2.6.

I have also tried

CC=ecc CXX=e++ CFLAGS='-O3 -march=pentiumpro' \
CXXFLAGS='-O3 -march=pentiumpro' ./configure \
--prefix=/sw/i86_56/pgcc-1.1b --host=i686-pc-solaris2.6 --enable-haifa

where ecc is egcs-1.1b configured for i686-pc-solaris2.6. I have also
tried both of the above configurations with and without --enable-haifa.

Typing

make LANGUAGES='c c++ f77' bootstrap

results in the following error while compiling the stage2 compiler
(that means ./xgcc is compiled with stage1/xgcc):

....

stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -O3 -march=pentiumpro  -DHAVE_CONFIG_H -DHAIFA     -I. -I. -I./config ./fix-header.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -O3 -march=pentiumpro  -DHAVE_CONFIG_H -DHAIFA     -I. -I. -I./config ./scan-decls.c

....

for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
do \
  echo ${name}; \
  ./xgcc -B./ -O2   -DIN_GCC    -O2 -O3 -march=pentiumpro -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I./config -c -DL${name} \
      ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ` if [ -f /home/soft/Soft/GNU/pgcc-1.1b/gcc/../binutils/ar ] ; then echo /home/soft/Soft/GNU/pgcc-1.1b/gcc/../binutils/ar ; else if [ "i686-pc-solaris2.6" = "i686-pc-solaris2.6" ] ; then echo ar; else t='s,x,x,'; echo ar | sed -e $t ; fi; fi` rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
../libgcc2.c: In function `__floatdidf':
../libgcc2.c:991: warning: right shift count >= width of type
../libgcc2.c:994: warning: left shift count >= width of type
_floatdisf
../libgcc2.c: In function `__floatdisf':
../libgcc2.c:1052: warning: left shift count >= width of type
../libgcc2.c:1053: warning: left shift count >= width of type
../libgcc2.c:1055: warning: left shift count >= width of type
../libgcc2.c:1056: warning: left shift count >= width of type
../libgcc2.c:1059: warning: right shift count >= width of type
../libgcc2.c:1062: warning: left shift count >= width of type
_fixunsdfsi
_fixunssfsi
_fixunsdfdi
../libgcc2.c: In function `__fixunsdfdi':
../libgcc2.c:869: warning: left shift count >= width of type
../libgcc2.c:873: warning: left shift count >= width of type
_fixdfdi
_fixunssfdi
../libgcc2.c: In function `__fixunssfdi':
../libgcc2.c:915: warning: left shift count >= width of type
../libgcc2.c:919: warning: left shift count >= width of type
_fixsfdi
_fixxfdi
_fixunsxfdi
../libgcc2.c: In function `__fixunsxfdi':
../libgcc2.c:827: warning: left shift count >= width of type
../libgcc2.c:831: warning: left shift count >= width of type
_floatdixf
../libgcc2.c: In function `__floatdixf':
../libgcc2.c:953: warning: right shift count >= width of type
../libgcc2.c:956: warning: left shift count >= width of type
_fixunsxfsi
_fixtfdi
../libgcc2.c:805: parse error before `a'
../libgcc2.c: In function `__fixtfdi':
../libgcc2.c:807: `a' undeclared (first use in this function)
../libgcc2.c:807: (Each undeclared identifier is reported only once
../libgcc2.c:807: for each function it appears in.)
gmake[2]: *** [libgcc2.a] Error 1
gmake[2]: Leaving directory `/home/soft/Soft/GNU/pgcc-1.1b/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/home/soft/Soft/GNU/pgcc-1.1b/gcc'
gmake: *** [bootstrap] Error 2

If I configure without -march=pentiumpro in the CFLAGS and CXXFLAGS
everything compiles fine.




While compiling pgcc I saw the following warning, which is, in my eyes,
not only one of those warnings which are not important.

Occured in the 'gcc' directory:

gcc -c  -DIN_GCC    -g  -DHAVE_CONFIG_H -DHAIFA     -I. -I. -I./config reg-stack.c
reg-stack.c:236: warning: `BLOCK_NUM' redefined
basic-block.h:189: warning: this is the location of the previous definition



I hope this is enough to trace back what's going on here. If you need
further information (for example the produced binaries or
preprocessed files) feel free to ask me (frohlich AT na DOT uni-tuebingen DOT de).


Regards,

Mathias Fr"ohlich


-- 
Mathias Fr"ohlich              e-mail: frohlich AT na DOT uni-tuebingen DOT de
Institut f"ur Mathematik, Universit"at T"ubingen, D-72076 T"ubingen

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019