Page 1 of 1
static-library build failed in AR step
Posted: Sat Oct 18, 2014 1:50 pm
by wisementor
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.
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 2:18 pm
by eranif
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
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 2:43 pm
by wisementor
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.
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 3:14 pm
by eranif
Thanks, I will look into this.
Eran
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 5:50 pm
by eranif
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
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 6:54 pm
by wisementor
Thanks Eran I'm going to try it.
Re: static-library build failed in AR step
Posted: Sat Oct 18, 2014 6:59 pm
by wisementor
It works !!!