Re: MiNT cross-toolchain in Debian
Thorsten Glaser wrote:
tg@zigo:~ $ strip x.o
strip:x.o: File format is ambiguous
strip: Matching formats: a.out-m68k-linux a.out-zero-big a.out-sunos-big
Yes, that's unfortunate, the BFD library is unable to differentiate those
a.out variants so it does not know how to strip them :-(
The problem with this is that building the gcc Debian package invokes
dh_strip, which tries to run strip (not m68k-mint-strip, because it’s
NOT a cross-compilation but the native-compilation of a cross toolchain)
on all executables and libraries. The gcc case is special because it
contains both native and foreign objects.
In my lame debian/rules build scripts, when compiling cross-libraries I use
dh_strip -X to exclude the directories containing target libraries. Example
from the mintlib package:
dh_strip -X debian/gemlib-m68k-atari-mint/usr/m68k-atari-mint
Now to atari-bootstrap: it does need mintlib.
Could you please tell why?
Maybe for building a few MiNT/TOS executables?
Or maybe atari-bootstrap just requires a few includes? In that case they
could just be copied into atari-bootstrap itself...
It also needs m68k-atari-mint-flags (m68k-mint-flags probably), but
that’s not in binutils, can you share a source for that?
Sure. That flags tool in the mintbin package, also available on my website.
However, ld has similar functionality. Run "m68k-atari-mint-ld
--target-help" to see the equivalent options. Then you can link the programs
using a command line like the flollowing, instead of using the flags command:
m68k-atari-mint-gcc a.c -o a.tos -Wl,--mno-altram
I didn’t talk to people regarding EmuTOS yet. I figure I’ll do that
once I get the cross toolchain packaged and working.
FYI, I'm the current EmuTOS administrator. That may help if you have trouble :-)
I was surprised to discover that the EmuTOS binaries were distributed in the
aranym and hatari Debian packages without the sources. Since they are
official EmuTOS binaries, and the exact sources are always available on
EmuTOS' SouceForge site, I suppose that's OK...
Good luck.
--
Vincent Rivière
Reply to: