[Crosstool 0.28rc25] failed demo-mipsel.sh on Mac 10.3.4
Jean-Claude Wippler
jcw@equi4.com
Sat Jun 26 12:28:00 GMT 2004
(First of all: a huge hurray + thank you to Dan Kegel for creating
crosstool!)
This is a quick note to report a build failure on OSX Panther.
The target being built (demo-mipsel.sh) appears to be called
"mipsel-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2".
Last few lines of build output are appended at end of this message.
$ uname -a
Darwin biggie.local 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12
16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power
Macintosh powerpc
$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1640)
The "-shared" flag is indeed not recognized on OSX. I'm not sure
whether the option needs to be adjusted ("-dynamic" or "-dynamiclib"
perhaps) or whether the wrong gcc is being called at this stage.
This is on a standard HFS+ disk, which is (as others have already
noted) a case-insensitive + case-preserving file system.
-jcw
$ sh demo-mipsel.sh
[...]
+ cd
/Users/jcw/Desktop/crosstool-0.28-rc25/build/mipsel-unknown-linux-gnu/
gcc-3.4.0-glibc-2.3.2/linux-2.6.6
+ test -f /Users/jcw/Desktop/crosstool-0.28-rc25/mipsel.config
+ cp /Users/jcw/Desktop/crosstool-0.28-rc25/mipsel.config .config
+ test -f .config
+ yes ''
+ make ARCH=mips oldconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
cp scripts/kconfig/zconf.tab.c scripts/kconfig/libkconfig.c
HOSTCC scripts/kconfig/libkconfig.o
HOSTCC scripts/kconfig/mconf.o
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
gcc: unrecognized option `-shared'
ld: Undefined symbols:
_main
make[1]: *** [scripts/kconfig/libkconfig.so] Error 1
make: *** [oldconfig] Error 2
------
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