public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* successful bootstrap of gcc-3.5-20040905 on OpenDarwin 7.2.1/x86 (i686-apple-darwin7.2.1)
@ 2004-09-07 13:03 Lars Sonchocky-Helldorf
  2004-09-07 20:38 ` Mike Stump
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Sonchocky-Helldorf @ 2004-09-07 13:03 UTC (permalink / raw)
  To: gcc; +Cc: lars.sonchocky-helldorf

Thanks to the work of Andrew Pinski, Mike Stump and Shantonu Sen I finally 
got a snapshot of HEAD to bootstrap on OpenDarwin 7.2.1/x86. 


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)


Here is what I did to achieve that goal:

# link libmx to libSystem

# this is necessary because some libraries are missing form 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-patches/2004-08/msg00104.html 
# newer cctools are needed 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

ftp http://www.opendarwin.org/downloads/odcctools-20040906.tar.bz2
tar -jxf odcctools-20040906.tar.bz2
mkdir odcctools-build
cd odcctools-build/
../odcctools-20040906/configure --prefix=/usr
make
sudo make install
cd ..

# 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/3.5-20040905/gcc-3.5-20040905.tar.bz2
openssl md5 gcc-3.5-20040905.tar.bz2
tar -jxf gcc-3.5-20040905.tar.bz2
mkdir gcc-build
cd gcc-build/
../gcc-3.5-20040905/configure --prefix=/tmp/gcc
make bootstrap STAGE1_CFLAGS="-no-cpp-precomp -Wa,-force_cpusubtype_ALL"
sudo make install
cd ..


Result of bootstrap:

/tmp/gcc/bin/gcc -v
Reading specs from 
/private/tmp/gcc/bin/../lib/gcc/i686-apple-darwin7.2.1/3.5.0/specs
Configured with: ../gcc-3.5-20040905/configure --prefix=/tmp/gcc
Thread model: posix
gcc version 3.5.0 20040905 (experimental)

I am currently testing the result with make -k check in my build directory 
and will post the results later.


regards, Lars

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: successful bootstrap of gcc-3.5-20040905 on OpenDarwin 7.2.1/x86 (i686-apple-darwin7.2.1)
  2004-09-07 13:03 successful bootstrap of gcc-3.5-20040905 on OpenDarwin 7.2.1/x86 (i686-apple-darwin7.2.1) Lars Sonchocky-Helldorf
@ 2004-09-07 20:38 ` Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2004-09-07 20:38 UTC (permalink / raw)
  To: Lars Sonchocky-Helldorf; +Cc: gcc, lars.sonchocky-helldorf

On Sep 7, 2004, at 6:03 AM, Lars Sonchocky-Helldorf wrote:
> Thanks to the work of Andrew Pinski, Mike Stump and Shantonu Sen I 
> finally
> got a snapshot of HEAD to bootstrap on OpenDarwin 7.2.1/x86.

Glad to hear it...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-07 20:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-07 13:03 successful bootstrap of gcc-3.5-20040905 on OpenDarwin 7.2.1/x86 (i686-apple-darwin7.2.1) Lars Sonchocky-Helldorf
2004-09-07 20:38 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).