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

CodeLite installation/troubleshooting forum
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

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

Post 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)?
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

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

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post by eranif »

this problem only exists on Mac.
Which g++ version are you using?

Eran
Make sure you have read the HOW TO POST thread
Roey
CodeLite Enthusiast
Posts: 43
Joined: Fri Aug 22, 2008 1:32 am
Contact:

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

Post 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))
Post Reply