Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FreeBSD/Linux Cross Compiler FUBAR



>>>>> "Scott" == Scott Stone <SStone@example.com> writes:

    Scott> 2.  binutils:  ./configure --target=i386-redhat-linux

IIRC

1. You need to tell configure that it's a cross-compiler.  I seem to
   recall there were situations where $target!=$host wasn't enough.
   That should be fixed by now, but cross compiles are hard.
2. Maybe you need to tell it explicitly --host=freebsd?  Check for
   that, anyway.
3. ./configure --usage might be of some help, there's plenty of doc
   with GCC, and there's the cross-compile FAQ (used to be at Cygnus).

    Scott> Here's where the problem comes in.  As soon as it gets to
    Scott> stage2 and wants to use the "xgcc" stage1 compiler, it
    Scott> starts calling the crosslinker to try

Dunno why this is happening.  It shouldn't be using the cross-linker
here.  It should be using the native linker.  Stage 2 is still hosted
on freebsd, no?  Maybe you need to use the --build flag to tell it the
second stage is also on freebsd?  But that would be stupid (ie, a
bug), it should assume $build=$host=config.guess().

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links