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

Re: RS6000: Missing EABI symbols at link time


Hi David,

	I think you're missing a piece of how the rs6000 configuration
works.  The eabi configurations are including both config/freebsd-spec.h
and config/rs6000/freebsd.h.  The latter file includes

#undef  STARTFILE_DEFAULT_SPEC
#define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"

#undef  ENDFILE_DEFAULT_SPEC
#define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"

Ah - Ok - so then the problem is that the powerpc-eabi configuration is *not* including config/rs6000/freebsd.h. In fact looking at the config.gcc file it seems that freebsd.h is only included for the powerpc-*-freebsd* target. (I could not find another header file that #include's freebsd.h).


I tried adding freebsd.h to the tm_file list for the powerpc-eabi target, but the configuration of libstdc++-v3 still fails. It now complains about the missing crt1.o file:

  <command line>:1:12: warning: "cpu" re-asserted
  <command line>:1:16: warning: "machine" re-asserted
  .../powerpc-eabi/./gcc/collect-ld: crt1.o: No such file

So I guess I cannot build libstdc++-v3 without the freebsd system files available ? Oh well...

Cheers
  Nick


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