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

Re: egcs-1.0.3 i960 cross vsprintf failure


OK, here's the story.

I'm using newlib-1.8.0 on i960-intel-coff (host=i686-pc-linux-gnu).

Newlib in this case will not produce executables with the default
gcc.  At the least, since the stubs are in a separate lib (in this
case, in -lmon960) you need to do something.

egcs will try to configure in libiberty to produce the file "errors".
If xgcc doesn't work all by itself, then errors will be all wrong.

In the case of egcs the simplest solution is to do LDLIBES="-lc
-lmon960 -lc" or something like that on the make command line.

Unfortunately, I am using an egcs-1.0.3+libg++ source tree, and
LDLIBES doesn't seem to work for configuring in librx.  The easiest
solution is to put a default.ld somewhere (e.g.,
$prefix/$i960-intel-coff/lib/) and use CFLAGS="-T default.ld".  This
works because both egcs and libg++ obey CFLAGS.  Note that
CFLAGS='-lc...' will not work, because this will insert the flags too
early in the link command line.

It would be nice if egcs+libg++ provided one switch to tell it to pick 
up a different linker config file, since this sort of
cross-compilation must be quite common.


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