1 Feb 2010 03:25
Re: Help with Building toolchain with crosstool-ng on Mac OS X 10.6.2 (Snow Leopard)
<tvb377 <at> gmx.de>
2010-02-01 02:25:56 GMT
2010-02-01 02:25:56 GMT
> > I recently made a patch for using crosstool-ng on mac and freebsd. > > I will rework the cosmetics according to Yann's comments this month. > > Titus, I think you are the one that can handle this stuff, as you have a Uwe, Yann, all here is the reworked patch for crosstool-ng on FreeBSD and MacOS against a current (31 January 23:00 CET) version. And two new READMEs (instead of docs/MacOS-X.txt). Almost all patch parts revolve around GNU/BSD incompatibilities. I try to explain what I did: - enlarge the list of configurable tools that ctng uses (for usage of GNU tools). - also make sure that the configured tools actually get used. - make all calls to stat(1) dependent to `uname -s` or replace the call. - replace all calls to readlink(1GNU) with compatible variants. This makes the usage of wrapper.c mandatory on MacOS because there is no way known to me emulating readlink -m without a lengthy shell script. - uname -o is not portable. use -s when -o fails - a bug in the sed-expression that sets the nanoseconds to 0 for a date(1) not handling %N Notable other reasons besides GNU/BSD are: - have to compile mpfr with --disable-thread-safe on darwin. - "You did not specify the build system. That's OK, I can guess...": Under MacOS 10.6 gcc reports itself as "i686-(Continue reading)apple-..." However, it's default behaviour is to generate 64bit objects. This clashes with some configure scripts that require "x86_64-..." for configuring for a 64bit host. Using CT_DoConfigGuess does the job correctly. Why not use that in general? BTW, the above two changes are the only changes actually for BUILDING the toolchain, and not for porting
> The sample selects ltrace 0.5.2, while a newer version, 0.5.3 is
> available. This newer version seems to have a fix for this issue, in
> the form of a patch already included in crosstool-ng:
> patches/ltrace/0.5.3/160-fix-missing-ptrace-defines.patch
Go ahead with ltrace-0.5.3, it should buid (built just OK here).
Regards,
Yann E. MORIN.
> Almost all patch parts revolve around GNU/BSD incompatibilities.
RSS Feed