Hello,
I need to install gcc 3.x in Mac OS X 10.5.
I download gcc3.3, and here are the steps I compile gcc.
I create a folder "mkdir gcc-build",
configure it "../gcc-3.3/configure --prefix=/Users/dazheng/unix/
--target=i686-apple-darwin9 --enable-languages=objc" (actually I only
want the C compiler, but I don't know how to disable all other
language, so I only enable objc).
compile "make bootstrap",
There I get the error like this:
mv objc/*.o stage1/objc
mv: rename objc/*.o to stage1/objc/*.o: No such file or directory
make[2]: [objc.stage1] Error 1 (ignored)
mv cc1obj stage1
mv: rename cc1obj to stage1/cc1obj: No such file or directory
make[2]: [objc.stage1] Error 1 (ignored)
echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC=" stage1/xgcc -Bstage1/
-B/Users/dazheng/unix//i686-apple-darwin9/bin/" \
STAGE_PREFIX=stage1/ \
ADAC="\$(CC)" CFLAGS="-g -O2" LDFLAGS=""
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic
-Wno-long-long" libdir=/Users/dazheng/unix//lib LANGUAGES="c gcov objc"
MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
stage1/xgcc -Bstage1/ -B/Users/dazheng/unix//i686-apple-darwin9/bin/
-c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gcc-3.3/gcc
-I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config
-I../../gcc-3.3/gcc/../include ../../gcc-3.3/gcc/gengenrtl.c -o gengenrtl.o
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3013:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3030:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3047:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3064:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3081:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3098:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3115:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3132:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3149:indirect
jmp without `*'
/var/folders/Je/JeO55QobFy8j6wwp8Pc2hk+++TI/-Tmp-//ccejHfF9.s:3166:indirect
jmp without `*'
stage1/xgcc -Bstage1/ -B/Users/dazheng/unix//i686-apple-darwin9/bin/
-g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
xgcc: installation problem, cannot exec `c++filt3': No such file or
directory
Undefined symbols:
"__init_keymgr", referenced from:
___darwin_gcc3_preregister_frame_info in crt2.o
ld: symbol(s) not found for inferred architecture i386
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap] Error 2
I wonder why there is this kind of error.
How to disable all other languages?
Actually, I even tried macports to install gcc 3.3, and I get the
similar error:
stage1/xgcc -Bstage1/ -B/opt/local/i686-apple-darwin9.4.0/bin/ -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
Undefined symbols:
"__init_keymgr", referenced from:
___darwin_gcc3_preregister_frame_info in crt2.o
ld: symbol(s) not found for inferred architecture i386
collect2: ld returned 1 exit status
Can anyone tell me how to install gcc 3.x in Mac OS X 10.5?
Thank you in advance.
Zheng Da