Timothy:
The "head" command appears to be missing from your system.
As it apparently is expected to be there by those who ported
Libtool to OS X, you should have it. It is quoted, byt it
is intended to be executed when $archive_expsym_cmds is executed.
HTH,
Robert
"Timothy J. Wood" wrote:
I'm trying to build a GCC 3.1 cross compiler (from the head of GCC
CVS) from Mac OS X 10.1.2 to Win32 (MinGW). When I do so, get get
errors from the libtool script for the objc runtime (which I need).
This occurs whether I enable shared libraries or not (the erroring
section seems to be related to shared library support).
The offending code starts with:
archive_expsym_cmds="if test \\"x\\`head -1 \$export_symbols\\`\\" =
xEXPORTS; then
cp \$export_symbols \$output_objdir/\$soname-def;
else
echo EXPORTS > \$output_objdir/\$soname-def;
...
On Darwin I get:
./libtool --mode=compile
/Users/Shared/bungi/Build/Intermediates/MinGW/builds/gcc/gcc/xgcc
-B/Users/Shared/bungi/Build/Intermediates/MinGW/builds/gcc/gcc/
-B/Users/Shared/bungi/Build/MinGW/i386-mingw32msvc/bin/
-B/Users/Shared/bungi/Build/MinGW/i386-mingw32msvc/lib/ -isystem
/Users/Shared/bungi/Build/MinGW/i386-mingw32msvc/include -c -I.
-I/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc -g -DIN_GCC
-DIN_TARGET_LIBS -I/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc/objc
-I/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc/../gcc
-I/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc/../gcc/config
-I../../gcc -I/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc/../include
/Users/Shared/bungi/Source/GNU/gcc/gcc/libobjc/archive.c
head: : No such file or directory
./libtool: command not found: \[$]2 [214]
./libtool: no such file or directory: \ >> $output_objdir/$soname-
def;;\n *) echo \ [215]
expr: non-numeric argument
... lots more errors ...
This looks like the 'head' command is being executed by /bin/sh even
though it is being quoted. So, I installed the latest bash and
modified the libtool script above to use that bash executable. In
this
case I get a different error (complaining about unexpected end of
input)
but I still get errors.
Is this a known bug? Any suggestions would be helpful.
Thanks!
-tim
_______________________________________________
Libtool mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/libtool
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: address@hidden