Upgrading at last!

erik.ivanenko erik.ivanenko at utoronto.ca
Thu Mar 5 17:02:07 UTC 1998


Chris Johns wrote:

>
>
> I use the --prefix parameter with configure to keep EGCS away from the
> stock compiler provided by RedHat. I sometimes need to upgrade the
> kernel and the stock compiler is best for this job.
>
> You should use a native egcs compiler to build an egcs cross-compiler.
>

I've tried to build an egcs snapshot, egcs-980115 via make bootstrap, without
setting the prefix, and it failed.  It complained like this:

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 _eh  _pure; \
do \
  echo ${name}; \
  ./xgcc -B./ -O2   -DIN_GCC   -DUSE_GNULIBC_1 -g -I./include  -fPIC -g1
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions   -I.
-I/home/cross/egcs-980115/gcc -I/home/cross/egcs-980115/gcc/config -c
-DL${name} \
      /home/cross/egcs-980115/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  ar 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
_floatdisf
_fixunsdfsi
_fixunssfsi
_fixunsdfdi
_fixdfdi
_fixunssfdi
_fixsfdi
_fixxfdi
_fixunsxfdi
_floatdixf
_fixunsxfsi
_fixtfdi
_fixunstfdi
_floatditf
__gcc_bcmp
_varargs
__dummy
_eprintf
_bb
In file included from /home/cross/egcs-980115/gcc/libgcc2.c:1452:
/usr/include/string.h:258: parse error before `('
/usr/include/string.h:258: warning: conflicting types for built-in function
`memcpy'
/usr/include/string.h:258: parse error before `const'
/usr/include/string.h:264: parse error before `('
/usr/include/string.h:264: warning: conflicting types for built-in function
`memset'
/usr/include/string.h:270: parse error before `('
/usr/include/string.h:270: parse error before `const'
make[2]: *** [libgcc2.a] Error 1
make[2]: Leaving directory `/home/cross/egcs-980115/objdir/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/cross/egcs-980115/objdir/gcc'
make: *** [bootstrap] Error 2
#

Is there a version that does NOT do this?  Or, is this the version of choice
and I am witnessing
an incompatibility with my native compiler libraries?

The compiler is gcc 2.7.2.1, binutils-2.6.0.15.  I have not requested that
newlib is used at this point.
Should binutils also be updated? I think 2.8.0.1.23 is latest.

> >
> > Should I also install the cpp-libs?
> >
>
> This will depend on the target you are running on. The egcs STL lib
> uses exceptions. Think most targets are supported but have never tried
> on the 68k processors I use.
>
> What I am not too sure about with the C++ libs in EGCS is what is
> GLP/LGPL and what is not ?
>
> Regards
>
> --
>  Chris Johns  Networks, Plessey Asia Pacfic Pty. Ltd.
>   mailto:ccj at acm.org    mailto:cjohns at plessey.com.au


-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: Card for Erik Ivanenko
URL: <http://lists.rtems.org/pipermail/users/attachments/19980305/c1ad1d50/attachment.vcf>


More information about the users mailing list