static-library build failed in AR step

General questions regarding the usage of CodeLite
wisementor
CodeLite Curious
Posts: 4
Joined: Sat Oct 04, 2014 4:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

static-library build failed in AR step

Post by wisementor » Sat Oct 18, 2014 1:50 pm

I have tried to build static-library but it failed in AR step.
The AR was invoked as:
/usr/bin/ar rcu ./Debug/libstmass.a @"stmass.txt"

reason:

ar: @stmass.txt: No such file or directory

Where to remove @ (AT char) ? In makefile it does not make sense.

All this was done on Mac OS X 10.9
settings->build settings->compilers-
select your compiler form the list on the left side, and switch to the 'Advanced' tab

Uncheck the option: "Pass object list to the linker via file"
does not help the option is checked always.

User avatar
eranif
CodeLite Plugin
Posts: 6121
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by eranif » Sat Oct 18, 2014 2:18 pm

wisementor wrote:does not help the option is checked always.
I don't undetstand: are you saying that when you uncheck this option, it remains "checked" ?
Does it help?

Eran
Make sure you have read the HOW TO POST thread

wisementor
CodeLite Curious
Posts: 4
Joined: Sat Oct 04, 2014 4:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by wisementor » Sat Oct 18, 2014 2:43 pm

When closing that dialog and reopen it the option is still checked after I have unchecked it before closing. Also I tried to AR but the result is still same. Then I got idea to look again into dialog and I saw why it happens - option wasn't remembered as unchecked but as checked. Correct me if I'm wrong.

User avatar
eranif
CodeLite Plugin
Posts: 6121
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by eranif » Sat Oct 18, 2014 3:14 pm

Thanks, I will look into this.
Eran
Make sure you have read the HOW TO POST thread

User avatar
eranif
CodeLite Plugin
Posts: 6121
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by eranif » Sat Oct 18, 2014 5:50 pm

This is now fixed in git head.

As a workaround do this:

- Open the build settings dialog->compilers
- Select your compiler from the list on the left side
- Select the 'Tools' tabs and click on one of the [...] buttons next to one of the tools (does not matter which one) so it will popup a file selector dialog
- When the file selector dialog popups, dismiss it with the cancel button (the purpose of the above step is to 'enable' the 'Apply' button)
- When the 'Apply' button is enabled, go ahead and un-check the "Pass object list to the linker via file"
- Click OK

This time the value is saved.

Thanks for reporting this
Eran
Make sure you have read the HOW TO POST thread

wisementor
CodeLite Curious
Posts: 4
Joined: Sat Oct 04, 2014 4:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by wisementor » Sat Oct 18, 2014 6:54 pm

Thanks Eran I'm going to try it.

wisementor
CodeLite Curious
Posts: 4
Joined: Sat Oct 04, 2014 4:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: static-library build failed in AR step

Post by wisementor » Sat Oct 18, 2014 6:59 pm

It works !!!

Post Reply