[LLVMdev] mingw build problems

Jay Foad jay.foad at gmail.com
Tue Apr 21 01:55:23 PDT 2009

>>> The attached patch makes GenLibDeps.pl notice that nm has failed, so
>>> that the build fails immediately rather than giving more obscure
>>> errors later on.

> Sure. But could you add a message to the "die" commands? Something like:
> close DEFS or die "Could not close: $!";
> ?

The "or die" is intended to catch the case where nm returned a
non-zero exit status, so nm will already have printed some error
messages. $! doesn't appear to have a useful value at this point. How
about the attached, which gives:

$ GenLibDeps.pl -flat lib
/usr/local/bin/nm: lib/libLLVMfoo.a: File format not recognized
nm  failed at /home/foad/svn/llvm-project/llvm/trunk/utils/GenLibDeps.pl line 69


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.die2
Type: application/octet-stream
Size: 922 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090421/5886e0c5/attachment.obj>

More information about the llvm-dev mailing list