success building crosstool-0.28-rc37 with gcc-3.4.1-glibc-2.3.3 on Mac OS X 10.3.5
Martin Schaffner
schaffner@gmx.li
Sun Dec 5 17:42:00 GMT 2004
Today I got the newest version of crosstool running on Mac OS X again,
with the newest supported release of glibc (2.3.3) and gcc (3.4.1).
I ran demo-ppc750.sh with the last line changed to:
eval `cat powerpc-750.dat gcc-3.4.1-glibc-2.3.3.dat` sh all.sh
--notest --builduserland
I encountered the following issues:
* mkoverride.sh uses the "-D" option of install, which the OS X version
does not provide. I simply installed "GNU install" with fink. I suggest
adapting doc/crosstool-howto.html
* patches/glibc-2.3.2/glibc-2.3.2-cross-2.patch applies to glibc-2.3.3
as well, so I've thrown it into patches/glibc-2.3.3
* glibc-2.3.3 refuses to configure if as or ld are too old (or unkown),
such as on Mac OS X. Fix attached.
* The glibc-2.3.3 build system now wants to include misc/sys/uio.h when
building stdio_lim.hT, but misc/sys/uio.h includes stddef.h, which is
not available on Mac OS X and is not necessary in my experience. Fix
attached.
* Building the userland failed because the linux build system wants to
build a shared library:
+ cd
/build/crosstool-0.28-rc37/build/powerpc-750-linux-gnu/gcc-3.4.1-glibc
-2.3.3/ptxdist-testing-20031113
+ rm -rf src
+ ln -s /Users/martin/downloads src
+ cp /build/crosstool-0.28-rc37/ptx.config .config
+ export PREFIX
+ sh scripts/settoolchain.sh
cd scripts/kconfig && ln -s -f
../ptx-modifications/Makefile.kconfig.ptx Makefile
make -C scripts/kconfig libkconfig.so
bison -d -t -v -b zconf -p zconf zconf.y
flex -Pzconf zconf.l
gcc -O2 -Wall -g -fPIC -c zconf.tab.c -o zconf.tab.o
gcc -shared zconf.tab.o -o libkconfig.so
gcc: unrecognized option `-shared'
ld: Undefined symbols:
_main
make[1]: *** [libkconfig.so] Error 1
make: *** [scripts/kconfig/libkconfig.so] Error 2
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-2.3.3-allow-old-as-ld.patch
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20041205/fe66507e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-2.3.3-no-stddef.h.patch
Type: application/octet-stream
Size: 948 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20041205/fe66507e/attachment-0001.obj>
-------------- next part --------------
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list