Model Identifier:       Macmini1,1
 Processor Name:        Intel Core Duo
Mac OS X 10.5.1 (Leopard)

SVN Revision: 131138

Following is my record of my attempt and final success in building gcc:

../gcc/configure
make

produced error:
at
/bin/sh ../../../../gcc/libgcc/../mkinstalldirs x86_64
mkdir x86_64
/gcc-devel2/build/./gcc/xgcc -B/gcc-devel2/build/./gcc/

ld: warning in /usr/lib/dylib1.10.5.o, file is not of required architecture
ld: symbol dyld_stub_binding_helper not defined (usually in
crt1.o/dylib1.o/bundle1.o)
collect2: ld returned 1 exit status
make[5]: *** [libgcc_s.dylib] Error 1

Build fails to find
/Developer/SDKs/MacOSX10.5.sdk/usr/lib
required for apparent access to the files:
crt1.o,  dylib1.o, bundle1.o

Attempts to overcome error:

LDFLAGS=-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib
export LDFLAGS
FLAGS_FOR_TARGET=-B/Developer/SDKs/MacOSX10.5.sdk/usr/lib
export LDFLAGS
../gcc/configure

Checked config.log:
LDFLAGS='-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib'
LDFLAGS_FOR_BUILD='-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib'

FLAGS_FOR_TARGET doesn't include -B/Developer/SDKs/MacOSX10.5.sdk/usr/lib

Manually added
 -B/Developer/SDKs/MacOSX10.5.sdk/usr/lib/
to
FLAGS_FOR_TARGET
of  build/Makefile

make

Error:
libtool: link: ( cd ".libs" && rm -f "libgcj-tools.la" && ln -s
"../libgcj-tools.la" "libgcj-tools.la" )
/bin/sh ./libtool --tag=GCJ --mode=link /gcc-devel2/build/gcc/gcj  ...........

ld: could not find entry point "start" (perhaps missing crt1.o)
collect2: ld returned 1 exit status
make[5]: *** [jv-convert] Error 1

Added
 -B/Developer/SDKs/MacOSX10.5.sdk/usr/lib
to
GCJFLAGS
of
build/i386-apple-darwin9.1.0/libjava/testsuite/Makefile

Following these changes, the build ran to completion.


-- 
           Summary: Cannot build compiler for Mac Intel under Leopard
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rogermc at iinet dot net dot au


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34561

Reply via email to