This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

successful build of gcc 4.0.1 on Mac OSX 10.2.8


% ../gcc-4.0.1/config.guess
powerpc-apple-darwin6.8

% /usr/local/bin/g++-4.0.1 -v
Using built-in specs.
Target: powerpc-apple-darwin6.8
Configured with: ../gcc-4.0.1/configure --program-suffix=-4.0.1
--enable-languages=c,c++ --enable-threads=posix : (reconfigured)
../gcc-4.0.1/configure --program-suffix=-4.0.1 --enable-languages=c,c++
--enable-threads=posix : (reconfigured) ../gcc-4.0.1/configure
--program-suffix=-4.0.1 --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
gcc version 4.0.1

% uname -a
Darwin TOANUJU.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT
2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc

========================================
Additional info:
OS = Mac OSX 10.2.8 (Jaguar)
The original gcc release was 3.1
The orginal gcc -v output was:

% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420
(prerelease)

The exact sequence of steps involved in bootstrapping was:


bzip2 -d /gcc-4.0.1.tar.bz2
tar xvf /gcc-4.0.1.tar
mkdir /work
mkdir /work/install
mkdir /work/install/etc
mkdir /work/install/lib
mkdir /work/install/man
mkdir /work/install/info
mkdir /objdir
cd /objdir
../gcc-4.0.1/configure --program-suffix=-4.0.1 --enable-languages=c,c++
--enable-threads=posix
make bootstrap 
sudo make install 

There are some errors while compiling:

1) While building "../../gcc-4.0.1/fixincludes" it says: This target
requires an assembler supporting ".machine"
you can get it from:
ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg
2) While building ../../gcc-4.0.1/gcc/ggc-common.c it says storage size of
`rlim' isn't known
comment this:
  // struct rlimit rlim;
3) While compiling ../../gcc-4.0.1/gcc/toplev.c -o toplev.o it says storage
size of `rlim' isn't known and `RLIMIT_CORE' undeclared (first use in this
function)
#undef HAVE_SETRLIMIT
4) While compiling ../../gcc-4.0.1/gcc/gcc.c it says `prus' has an
incomplete type and `RUSAGE_CHILDREN' undeclared (first use in this
function)
#undef HAVE_GETRUSAGE
5) While Making all in testsuiteit says conversion from '__gnu_test::semun'
to non-scalar type 'semun' requested
#undef _GLIBCXX_SYSV_SEM


Paolo Greppi
http://www.3ip.it


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]