logo       

Re: ar.exe & scripts: msg#00013

gnu.mingw.msys

Subject: Re: ar.exe & scripts

Hi!


Greg Chicares wrote:
On 2006-1-2 17:01 UTC, Florian Schricker wrote:

Atm I am having problems with ar and "-M" - reading some script to
create the lib.

http://lists.trolltech.com/qt-interest/2005-07/thread00110-0.html

http://www.gnu.org/software/binutils/manual/html_chapter/binutils_1.html

Going only by that information, I'd guess that the qt developers
encountered some problem, and decided to use an oddball feature
of ar in a way that's different from its "only purpose", and which
doesn't support the environment-variable substitution you want.

If you transform the generated script into a command line, does
ar execute it correctly?

Well, this is weird.
See, that's the ar-script, generated by qmake:

CREATE $(RGHOME)/platforms/$(RGARCH)/lib/libfoldgraph.a
ADDMOD [...]
SAVE

That's the one which errors out with "Syntax error in archive script, line 1". If I now replace RGARCH and RGHOME with its *absolute* path

CREATE /C/re-group/platforms/intel-microsoft-windows/lib/libfoldgraph.a

I get

C:\MinGW\bin\ar.exe: Can't open output archive /C/re-group/platforms/intel-microsoft-windows/lib/tmp-libfoldgraph.a
make[1]: *** [/C/re-group/platforms/intel-microsoft-windows/lib/libfoldgraph.a]
Error 9

If I now use a *relative path*

CREATE ../../../platforms/intel-microsoft-windows/lib/libfoldgraph.a

the lib is actually created with no problems. This also shows that the above error has nothing to do with permissions as ar can create the lib in the correct place, but only using a relative path. Now that's what I call odd! :-/
I also tried $RGHOME - without paranthesis - but to no avail. But as you wrote these ar-scripts are not (really) meant to support env-vars.

Anything more I can provide, try, test? I'd sure like to help sorting this out...


regards,
Florian Schricker


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise