[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script errors in libtool on Darwin

From: Timothy J. Wood
Subject: Script errors in libtool on Darwin
Date: Mon, 7 Jan 2002 22:34:40 -0800

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;
        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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]