This is to report a successful build of GCC 4.4.3 and GCC 4.5.0
(156177) on my Macbook6,1.


./config.guess:

i386-apple-darwin10.2.0

gcc -v:

For GCC 4.4.3:

Using built-in specs.
Target: x86_64-apple-darwin10.2.0
Configured with: ../gcc-4.4.3/configure
--prefix=/Users/olexa/Documents/MyApps/Commands/GCC/MacOSX-stable
--with-pkgversion='GNU GCC 4.4.3 Codename Hallelujah GCC built Jan 21,
2009 with GMP 4.3.2, MPFR 2.4.2, MPC 0.8.1 and Libelf 0.8.13,
bootstrap by GNU GCC 4.4.3 Codename Bootstrapper GCC'
--with-libelf=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/libelf
--enable-lto 
--with-mpc=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/mpc
--with-mpfr=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/mpfr
--with-gmp=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/gmp
--enable-shared --enable-static --target=x86_64-apple-darwin10.2.0
--build=x86_64-apple-darwin10.2.0 --host=x86_64-apple-darwin10.2.0
--enable-threads --enable-languages=c,c++,fortran,objc,obj-c++
--enable-werror --enable-checking --enable-stage1-checking
--disable-nls --disable-build-with-cxx
--enable-gather-detailed-mem-stats --enable-decimal-float
--with-tune=core2 CC='gcc -O3' CPPFLAGS=-O3
Thread model: posix
gcc version 4.4.3 (GNU GCC 4.4.3 Codename Hallelujah GCC built Jan 21,
2009 with GMP 4.3.2, MPFR 2.4.2, MPC 0.8.1 and Libelf 0.8.13,
bootstrap by GNU GCC 4.4.3 Codename Bootstrapper GCC)

For GCC 4.5.0 revision 156177:

Using built-in specs.
COLLECT_GCC=./gcc
COLLECT_LTO_WRAPPER=/Users/olexa/Documents/MyApps/Commands/GCC/MacOSX-instable/libexec/gcc/x86_64-apple-darwin10.2.0/4.5.0/lto-wrapper
Target: x86_64-apple-darwin10.2.0
Configured with: ../gcc-svn-156177/configure
--prefix=/Users/olexa/Documents/MyApps/Commands/GCC/MacOSX-instable
--with-pkgversion='GNU GCC (4.5.0 - SVN revision 156177) Codename
Mjolnir built Jan 22, 2009 with GMP 4.3.2, MPFR 2.4.2, MPC 0.8.1 and
Libelf 0.8.13, bootstrap by GNU GCC 4.4.3 Codename Hallelujah GCC'
--with-libelf=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/libelf
--disable-lto 
--with-mpc=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/mpc
--with-mpfr=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/mpfr
--with-gmp=/Users/olexa/Documents/MyApps/Commands/GCC/Dependencies/gmp
--enable-shared --enable-static --target=x86_64-apple-darwin10.2.0
--build=x86_64-apple-darwin10.2.0 --host=x86_64-apple-darwin10.2.0
--enable-threads --enable-languages=c,c++,fortran,objc,obj-c++
--enable-werror --enable-checking --enable-stage1-checking
--disable-nls --disable-build-with-cxx
--enable-gather-detailed-mem-stats --enable-decimal-float
--with-tune=core2
Thread model: posix
gcc version 4.5.0 20100122 (experimental) (GNU GCC (4.5.0 - SVN
revision 156177) Codename Mjolnir built Jan 22, 2009 with GMP 4.3.2,
MPFR 2.4.2, MPC 0.8.1 and Libelf 0.8.13, bootstrap by GNU GCC 4.4.3
Codename Hallelujah GCC)


Other relevant information:

uname -a:

Darwin *****-**********-MacBook.local 10.2.0 Darwin Kernel Version
10.2.0: Tue NovĀ  3 10:37:10 PST 2009;
root:xnu-1486.2.11~1/RELEASE_I386 i386

System Specs:

MacBook6,1 (Late 2009) Standard Configuration
Mac OS X 10.6.2
Intel Core 2 Duo 2.26 GHz
2GB DDR3 1066 MHz RAM
Xcode 3.2.1 (GCC 4.2.1 (1), Apple Inc.)


Request for update to system-specific installation instructions:

I am on Mac OS X Snow Leopard. There has been some noise around the
forums that GCC fails for various reasons. It turns out that despite
having all the requirements to run 64-bit systems, including a 64-bit
processor (an Intel Core 2 Duo), no Macs boot the 64-bit kernel by
default and only 4 (These being Mac Pros, Xserves, Macbook Pros and
iMacs) are allowed to boot it at all, leaving that the system kernel
runs 32-bit, but almost every application is 64-bit. Also, the command
uname returns i386 despite the Core 2 Duo being more of a i686 or
x86_64, a 64-bit processor. It seems therefore that config.guess
confuses itself in bitness, picking the 32-bit version called i386
rather than the correct choice, x86_64. So the recommendation is to
add an entry under Build Stats saying that 4.4.3 under
x86_64-apple-darwin10.2.0 is successful, and to add to the
system-specific installation notes to add these options to the
configure:

--host=x86_64-apple-darwin10 --target=x86_64-apple-darwin10
--host=x86_64-apple-darwin10

This essentially forces configure to choose the 64-bit flavour. I
selected core2 because I am not compiling executables for any other
processors - Macs have all switched to either Core 2 Duo, Core 2 Quad,
or, in high-ends, to i5 and i7 with Intel Xeon or Nehalem
architecture.

I experienced problems with --enable-lto, bizarrely, so I had to turn
it off, with --disable-lto. This goes both for 4.4.3 and 4.5.0.

Reply via email to