On Sat, Jun 02, 2007, Anders F Björklund wrote: > > With those two issues patched, it then bootstrapped just > > fine on Mac OS X 10.4.9 (tested on PowerPC and on Intel) > [...] > > Now onwards to test some actual packages, but it looks good. > > Will let you know if I find anything else, or just ask... > > Tested building some packages now, and that's where the > troubles begin. :-) There needs to be some major changes: > > 1) by default it tries to use GNU binutils. These don't > work on Mac OS X, so it fails already there (in "ar") > This needs to be changed into using Apple's cctools, > probably by using the MOF "odcctools-622.3" version.
Ok, binutils now builds and the (remaining) tools seem to work. strip(1), ar(1), ranlib(1), as(1) and ld(1) have to be left out. But this doesn't hurt. > 2) by default it tries to use GNU/FSF gcc. This is not > 100% binary compatible with Apple's gcc as far as I > know and might lead to some subtle libgcc/libstdc++ > problems later on ? So will switch, to "gcc-5363". I've now tried to build our "gcc" package (GCC 4.2.0). t starts just Ifine and compiles lots of things, but then it unfortunately fails | rm -f ./libgcov.a | ar rc ./libgcov.a libgcc/./_gcov.o libgcc/./_gcov_merge_add.o libgcc/./_gcov_merge_single.o libgcc/./_gcov_merge_delta.o libgcc/./_gcov_fork.o libgcc/./_gcov_execl.o libgcc/./_gcov_execlp.o libgcc/./_gcov_execle.o libgcc/./_gcov_execv.o libgcc/./_gcov_execvp.o libgcc/./_gcov_execve.o libgcc/./_gcov_interval_profiler.o libgcc/./_gcov_pow2_profiler.o libgcc/./_gcov_one_value_profiler.o | ranlib -c ./libgcov.a | echo timestamp > stmp-multilib | # When building multilibbed target libraries, all the required | # libraries are expected to exist in the multilib directory. | MLIBS=`/Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/./gcc/xgcc -B/Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/./gcc/ -B/Users/rse/openpkg/i386-apple-darwin8.9.1/bin/ -B/Users/rse/openpkg/i386-apple-darwin8.9.1/lib/ -isystem /Users/rse/openpkg/i386-apple-darwin8.9.1/include -isystem /Users/rse/openpkg/i386-apple-darwin8.9.1/sys-include --print-multi-lib \ | | sed -e 's/;.*$//' -e '/^\.$/d'` ; \ | for mlib in $MLIBS ; do \ | rm -f ${mlib}/libgcc_s.10.4.dylib || exit 1 ; \ | ln -s ../libgcc_s.10.4.dylib ${mlib}/libgcc_s.10.4.dylib || exit 1 ; \ | done | MLIBS=`/Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/./gcc/xgcc -B/Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/./gcc/ -B/Users/rse/openpkg/i386-apple-darwin8.9.1/bin/ -B/Users/rse/openpkg/i386-apple-darwin8.9.1/lib/ -isystem /Users/rse/openpkg/i386-apple-darwin8.9.1/include -isystem /Users/rse/openpkg/i386-apple-darwin8.9.1/sys-include --print-multi-lib \ | | sed -e 's/;.*$//' -e '/^\.$/d'` ; \ | for mlib in '' $MLIBS ; do \ | strip -o libgcc_s.10.4.dylib_T${mlib} \ | -s /Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/../gcc/config/i386/darwin-libgcc.10.4.ver -c -u \ | ./${mlib}/libgcc_s.1.dylib.tmp || exit 1 ; \ | done | strip: can't open file: /Users/rse/openpkg/RPM/TMP/gcc-4.2.0/obj/gcc/libgcc_s.1.dylib.tmp (No such file or directory) | make[3]: *** [libgcc_s.10.4.dylib] Error 1 | make[2]: *** [all-stage1-gcc] Error 2 | make[1]: *** [stage1-bubble] Error 2 | make: *** [bootstrap-lean] Error 2 Has anybody already seen this problem related to libgcc_s.1.dylib? Was anybody already successful in building a stock GCC 4.2.0 under Mac OS X? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org Developer Communication List openpkg-dev@openpkg.org