Page 1 of 1

ar (Archiver) not a happy bunny - too old or misconfigured?

Posted: Sun Oct 21, 2012 3:32 pm
by Roey
Hi,

I've just upgraded to CodeLite 4.1.5, downloding the binary and running it on OS X 10.7.5;

I am trying to build a project - a static library - that I haven't tried to build for more than a year.

It compiles fine, but I get this issue:

Code: Select all

ar rcus ./../../lib/libgefri_mac32d.a @"/Volumes/Blackstore/Development/gefri/build/gefri/gefri.txt" 
ar: @/Volumes/Blackstore/Development/gefri/build/gefri/gefri.txt: No such file or directory
make[1]: *** [../../lib/libgefri_mac32d.a] Error 1
Now, there is definitely "gefri.txt" exactly on this path (ie, the file definitely exist).

But based on this thread, it appears my archiver doesn't really support the @file parameter.

The solution to this would be:

Code: Select all

ar rcus ./../../lib/libgefri_mac32d.a `cat /Volumes/Blackstore/Development/gefri/build/gefri/gefri.txt`
No in the make file (gefri.mk), you I can see the archiver being called:

Code: Select all

	$(AR) $(ArchiveOutputSwitch)$(OutputFile) @$(ObjectsFileList) $(ArLibs)


Where is the template that generates this make file? Or is it something wrong with my project setting (choosing the wrong linker/archiver, for instance)?

Re: ar (Archiver) not a happy bunny - too old or misconfigured?

Posted: Mon Oct 22, 2012 4:02 am
by Roey
OK,

I managed to solve this by going in Codelite into Settings > Build Settings > Compilers > Chose my compiler (gnu g++) > Advance > and untick 'pass object list to the linker via file'.

X

Re: ar (Archiver) not a happy bunny - too old or misconfigured?

Posted: Mon Oct 22, 2012 8:49 pm
by eranif
this problem only exists on Mac.
Which g++ version are you using?

Eran

Re: ar (Archiver) not a happy bunny - too old or misconfigured?

Posted: Tue Oct 23, 2012 3:02 am
by Roey
i686-apple-darwin11-llvm-g++-4.2
(gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00))