This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Successful bootstrap/install of current gcc 4.0 and 4.1 snapshots on OpenDarwin 7.2.1/x86 using the latest odcctools
- From: Lars Sonchocky-Helldorf <lars dot sonchocky-helldorf at hamburg dot de>
- To: gcc at gcc dot gnu dot org,odcctools at opendarwin dot org
- Date: Wed, 30 Mar 2005 01:55:02 +0200
- Subject: Successful bootstrap/install of current gcc 4.0 and 4.1 snapshots on OpenDarwin 7.2.1/x86 using the latest odcctools
The system:
===========
uname -a
Darwin localhost 7.2.1 Darwin Kernel Version 7.2.1: Wed Jul 14 03:00:02
PDT 2004; root:tmp/xnu-7.2.1-1-root.obj/RELEASE_I386 x86 i386
gcc -v
Reading specs from /usr/libexec/gcc/darwin/i386/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
Prerequisites:
==============
# link libmx to libSystem
# this is necessary because some libraries are missing
# from OpenDarwin, in this case the -lmx argument results in:
# /usr/bin/ld: can't locate file for: -lmx
# see http://www.opendarwin.org/bugzilla/show_bug.cgi?id=2194
#
# note: this is just enough to bootstrap the compiler,
# some floating point compiliations might fail
sudo ln -s /usr/lib/libSystem.B.dylib /usr/lib/libmx.dylib
# install new cctools
# according to: http://gcc.gnu.org/ml/gcc/2005-03/msg01149.html
# new cctools are required to build HEAD of gcc
# Since building Apples cctools is somewhat complicated and
# won't work on (Open)Darwin/x86 better use OpenDarwin cctools
(odcctools)
# see: http://www.opendarwin.org/projects/odcctools/
# and: http://www.opendarwin.org/projects/odcctools/usingodcctools.html
# and:
http://www.opendarwin.org/pipermail/odcctools/2005-March/000051.html
ftp http://www.opendarwin.org/downloads/odcctools-20050327.tar.bz2
tar -jxf odcctools 20050327.tar.bz2
mkdir odcctools-20050327-build
cd odcctools-20050327-build/
../odcctools-20050327/configure --prefix=/usr
make
sudo make install
cd ..
Bootstrapped like:
==================
# bootstrap the compiler
# note: those STAGE1_CFLAGS are needed to avoid
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14780
ftp
ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-20050326/gcc-4.0-
20050326.tar.bz2
openssl md5 gcc-4.0-20050326.tar.bz2
tar -jxf gcc-4.0-20050326.tar.bz2
mkdir gcc-20050326-build
cd gcc-20050326-build/
../gcc-4.0-20050326/configure --prefix=/tmp/gcc
make bootstrap STAGE1_CFLAGS="-no-cpp-precomp -Wa,-force_cpusubtype_ALL"
sudo make install
cd ..
the same was done for
ftp://gcc.gnu.org/pub/gcc/snapshots/4.1-20050327/gcc-4.1-
20050327.tar.bz2
Results of bootstraps:
====================
localhost:~ lars$ /tmp/gcc/bin/gcc -v
Using built-in specs.
Target: i686-apple-darwin7.2.1
Configured with: ../gcc-4.0-20050326/configure --prefix=/tmp/gcc
Thread model: posix
gcc version 4.0.0 20050326 (prerelease)
localhost:~ lars$
localhost:~ lars$ /tmp/gcc/bin/gcc -v
Using built-in specs.
Target: i686-apple-darwin7.2.1
Configured with: ../gcc-4.1-20050327/configure --prefix=/tmp/gcc
Thread model: posix
gcc version 4.1.0 20050327 (experimental)
localhost:~ lars$
regards, Lars