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



On 03/02/2006, at 8:02 AM, Nick Clifton wrote:


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...

Hi Nick,


You appear to be assuming that the powerpc-eabi compiler should be able to link without further information. This is not the case; powerpc-eabi is one of the targets that cannot link by default, and you need to use a more specific target (eg. powerpc-freebsd or powerpc-eabisim) if you want it to be able to link without an extra flag (like -myellowknife or -mads or -msim). This is so you can have one toolchain that targets many incompatible boards.

However, it is a bug that libstdc++-v3 does not build on powerpc- eabi. It should not be trying to link anything; its final product is a .a archive.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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