[LLVMdev] build error on libLLVMSystem.a without any useful error message

Nicolas Raynaud
Fri, 03 Apr 2009 14:47:04 -0000

Thanks Kenneth,

but it looks like the problem lies elsewhere :ar -cru
/Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Alarm.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Disassembler.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/DynamicLibrary.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Host.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/IncludeFile.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Memory.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Mutex.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Path.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Process.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Program.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/Signals.o
/Users/nraynaud/Desktop/geek/llvm-svn/build/lib/System/Debug/TimeValue.o
ar: /Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a:
Opération invalide
make[1]: ***
[/Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a]
Error 1
make: *** [all] Error 1


Isn't there any mean to get a stacktrace or an error message ?
Something I can diagnose instead of blindly trying things ?

Thanks,

Nico.

On Fri, Apr 3, 2009 at 5:28 AM, Kenneth Boyd <zaimoni at zaimoni.com>
wrote:
> Nicolas Raynaud wrote:
>> Thanks for your reply,
>>
>> Perl is implied ???
>>
>> here is the version :
>> nraynaud at macaron-2:~/Desktop/geek/fp$ perl --version
>>
>> This is perl, v5.8.8 built for darwin-thread-multi-2level
>> (with 2 registered patches, see perl -V for more detail)
>>
>> the two patches are  :
>>   Locally applied patches:
>>       fix for regcomp CVE-2007-5116 security vulnerability
>>       fix for double-free CVE-2008-1927 security vulnerability
>>
>> Thanks for your help,
>>
> I'm not thinking clearly, evidently.
>
> Looking at the more verbose results
>
> ar cru
/Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a ....
>
> looks wrong, I would have expected
>
> ar -cru
/Users/nraynaud/Desktop/geek/llvm-svn/build/Debug/lib/libLLVMSystem.a ....
>
> at that point.
>
> Editing the makefile would get you past that, but the changes would be lost
on reconfiguring.  Actually fixing this would require tweaking configure.ac .
>
> Kenneth Boyd
>
>
>