[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Re: GM2 build failure on OSX
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Re: GM2 build failure on OSX |
Date: |
Thu, 25 Jun 2009 21:27:31 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Gaius Mulley <address@hidden> writes:
> I'll investigate on an x86 based mac at work on Thursday. I'm
> particularly interested in trying to compile:
Hi,
Just to report that the latest patches sent by Michael enable gm2
to build cleanly on an x86 Apple Mac.
cd gcc-4.1.2+gm2-cvs-latest/gcc/gm2/examples/hello/
bash-3.2$ export PATH=$HOME/opt/bin:$PATH
bash-3.2$ make
gm2 -c -g -I. hello.mod
gm2 -g -I. hello.mod
bash-3.2$ ./a.out
hello world
This hello world pulled in the Modula-2 pim libraries StrIO, M2RTS,
M2EXCEPTIONS and all dependencies.
I'm not sure of the exact release of OSX etc but the build started
with:
configure: creating cache ./config.cache
checking build system type... i386-apple-darwin9.6.0
checking host system type... i386-apple-darwin9.6.0
checking target system type... i386-apple-darwin9.6.0
checking for i386-apple-darwin9.6.0-gcc... gcc
the exact script used to initiate the build was:
#!/bin/bash
rm -rf gcc-4.1.2* build-4.1.2
wget http://floppsie.comp.glam.ac.uk/download/c/gcc-4.1.2+gm2-cvs-latest.tar.gz
tar zxf gcc-4.1.2+gm2-cvs-latest.tar.gz
mkdir build-4.1.2
cd build-4.1.2
env CONFIG_SHELL=/bin/bash SHELL=/bin/bash \
../gcc-4.1.2+gm2-cvs-latest/configure --enable-checking \
--disable-multilib --enable-languages=c,c++,gm2 --prefix=$HOME/opt
env CONFIG_SHELL=/bin/bash SHELL=/bin/bash make
make install
regards,
Gaius