From mint-bounce@lists.fishpool.fi Sat May 2 06:13:28 2009 Message-Id: From: =?ISO-8859-1?Q?Markus_Fr=F6schle?= To: mint mailing list list Content-Type: multipart/alternative; boundary=Apple-Mail-14-958655102 Mime-Version: 1.0 (Apple Message framework v930.3) Subject: [MiNT] gcc 4.4.0 cross compiler for Apple Mac (Intel) Date: Sat, 2 May 2009 12:07:39 +0200 X-Mailer: Apple Mail (2.930.3) X-Provags-ID: V01U2FsdGVkX1+n7Pc9IqZRFycBhD5TBrEA/l6jttc6xRv8H2s xKNB7ijAj7kTUszsn136v3ZkAs0+O2v+Wm2I1nmZQA/BNB1FCr VkekLlDk4ClLUFrBd/LvA== X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: markus@mubf.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: --Apple-Mail-14-958655102 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi! Although I originally wanted to avoid it, I decided to compile a new toolchain (cross compiller) for Atari development on a Mac. I actually used sources, patches and instructions from Vincent Riviere (http://vincent.riviere.free.fr/soft/m68k-atari-mint/ ). The instructions work nearly perfect for an Apple machine (OSX 10.5.6)! Many thanks for that. I had the following (small) problems during build: binutils: ./binutils-2.19.1-mint-20090214.obj/ld/em68kmint.c This seems to be a generated file (I did not further investigate where it comes from), but there seems to be a #include "getopt.h" missing. After adding this, everything compiled smoothly. I only needed to change the tar options at the very end of the provided "pseudo" script: tar --owner root --group wheel -jcvf $PACKAGENAME$VERSION$VERSIONPATCH $VERSIONBUILD.tar.bz2 $INSTALL_DIR The Mac seems to insist on a leading hyphen when mixing long and short options. Group "root" does not exist on a Mac. gmp: Building gmp with Apples standard Leopard compiler (an Apple modified gcc 4.0.1) needs special treatment. The gmp maintainers seem to have almost given up on supporting the Mac since Apple seem to have introduced strange bugs in gcc due to their "optimization". Nevertheless, I managed to finally build it with ../$PACKAGENAME$VERSION$VERSIONPATCH/configure --build=none-apple- darwin --prefix=/$INSTALL_DIR mintlib: bsd sed as installed on a Mac requires a -e option before the command list after a -i without a backup file argument gcc: Compiling gcc required temporarily uncommenting the rlim_t type definition in the native include file /usr/include/sys/resource.h: /* * Resource limit type (low 63 bits, excluding the sign bit) */ #if 0 typedef __uint64_t rlim_t; #endif The mintlib trap bindings needed some tweaking (replace some addq's with lea's). With the described changes, I was able to generate working cross compiler packages for the Apple platform. I'm now using eclipse on the Mac as development platform. Again, thanks for your work! If somebody wants to have the installation files for the Mac cross compiler, I'm happy to send them because I do not have enough room on my web space. Regards, Markus --Apple-Mail-14-958655102 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi!

Although = I originally wanted to avoid it, I decided to compile a new toolchain = (cross compiller) for Atari development on a Mac. I actually used = sources, patches and instructions from Vincent Riviere (http://vince= nt.riviere.free.fr/soft/m68k-atari-mint/). The instructions work = nearly perfect for an Apple machine (OSX 10.5.6)! Many thanks for = that.

I had the following (small) problems = during = build:

binutils:

./binut= ils-2.19.1-mint-20090214.obj/ld/em68kmint.c

This = seems to be a generated file (I did not further investigate where it = comes from), but there seems to be a 

#include = "getopt.h"

missing.
After adding = this, everything compiled smoothly. I only needed to change the tar = options at the very end of the provided "pseudo" = script:

tar --owner root --group wheel -jcvf = $PACKAGENAME$VERSION$VERSIONPATCH$VERSIONBUILD.tar.bz2 = $INSTALL_DIR

The Mac seems to = insist on a leading hyphen when mixing long and short options. Group = "root" does not exist on a = Mac.

gmp:

Building gmp = with Apples standard Leopard compiler (an Apple modified gcc 4.0.1) = needs special treatment. The gmp maintainers seem to have almost given = up on supporting the Mac since Apple seem to have introduced strange = bugs in gcc due to their "optimization".
Nevertheless, I = managed to finally build it with

../$PACKAGENAME$VERSION$VERSIONPATCH/configure = --build=3Dnone-apple-darwin = --prefix=3D/$INSTALL_DIR

mintlib:

bsd sed as installed on a Mac requires a -e = option before the command list after a -i without a backup file = argument 

gcc:

Comp= iling gcc required temporarily uncommenting the rlim_t type definition = in the native include file = /usr/include/sys/resource.h:

/*
 * Resource limit type (low 63 bits, = excluding the sign bit)
 */
#if 0
typedef __uint64_t =      rlim_t;
#endif

The mintlib trap = bindings needed some tweaking (replace some addq's with = lea's).

With the described changes, I was able = to generate working cross compiler packages for the Apple platform. I'm = now using eclipse on the Mac as development = platform.

Again, thanks for your = work!

If somebody wants to have the = installation files for the Mac cross compiler, I'm happy to send them = because I do not have enough room on my web = space.

Regards,
Markus

= --Apple-Mail-14-958655102--