This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
Robert Lipe wrote:
>
>
> The other is a little more subtle.
>
> > Output from ``make bootstrap'' follows.
> >
> > ../../egcs-1.1.1/gcc/frame
> > xgcc: file path prefix `/usr/local/lib/gcc-lib/elf/egcs-2.91.60/' never used
> > make[5]: Entering directory `/usr/macfar/src/dist/egcs/object/gcc'
> > ./xgcc -B./ -O2 -DIN_GCC -O2 -g -O0 -Xa -b elf -I./include -g1 -DIN_LIBG
> > CC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../egcs-1.1.1/gcc -I../../egcs-1.1.1/gc
> > c/config \
> > -c ../../egcs-1.1.1/gcc/cp/tinfo.cc
> > (EOF):undefined name: .L_T117
>
> The highly trained eye notices the warning from xgcc. This was
> tip one. The reason for this warning is a bogus '-b' argument.
>
Ahh.
> It can't be coincidence that "-b elf" happens to be the argument to
> the native SCO compiler to make it spit out ELF. HOwever, '-b' means
> something completely different to EGCS. (Proof left as exercise for
> the reader. Hint: reread the warning....)
>
Hmmm...
> Now, if you do a 'make bootstrap', you should never ever see a '-b elf'
> on the command lines. You need to find out what you're doing to make
> those appear and quit doing that. :-)
>
OK.
After a great deal of searching, I found that it was coming from my
environment. CFLAGS was set in our development environment, and this
was put in the built Makefile by configure.
I also noticed that the Makefile fragments mh-frag and mt-frag come from
m[ht]-x86pic which have ``-fpic'' in them. The manual entry for the
SCO compiler (and the warnings) indicate that this is obsolete. It is
now ``-K pic''. Perhaps you guys should put this in the configure scripts.
I put an extra check in the configure.in case statements that used
m[ht]-scopic instead, but the libiberty Makefile had to be changed by hand.
Anyway, thanx for the help, and I hope that my info has helped.
Adam.
--
Signs of crime: screaming or cries for help.
-- from the Brown Security Crime Prevention Pamphlet