Arnim Läuger wrote:
> Hi Borut,
>
>   
>> can you just comment out lines
>>
>> assert (c == EOF || c == '\n');
>>
>> in as/asranlib/asranlib.c and as/link/lkar.c files an retry to
>> compile them?
>>     
>
> Ok, did so and the errors disappeared. Do you expect that the results
> are valid?
>
>   

Yes, the results are valid. The archive members are word (2 bytes) 
aligned, so an extra byte is added if the archive member length is odd. 
I found a specification (see http://en.wikipedia.org/wiki/Ar_(Unix) and 
http://www.regatta.cmc.msu.ru/doc/usr/share/man/info/ru_RU/a_doc_lib/files/aixfiles/ar_IA64.htm),
 
saying that the padding byte should be '\n', so I checked it. This shown 
not to be true for openSUSE, which surprises me, since it is built from 
GNU binutils, which is same as in fedora or cygwin...

I tried the openSUSE library with cygwin ar and it didn't complain, 
which means that asranlib is too strict.

>> It seems that your ar uses the "'" character instead '\n' for
>> padding. I'm surprised about such differences in behavior among linux
>>  distributions...
>>     
>
> Do you think that there's anything weird with this particular version of
> ar? I've no experience at all with the details of the binutils but I
> could hint the maintainers if the behavior is uncommon or even wrong.
>
>   

I don't know if this is a bug or not, but it would probably make sense 
to inform the maintainers.
Libraries generated with GNU ar (GNU Binutils) 2.18.50.20080625 on 
cygwin are OK.

> Thanks again!
> Arnim
>
>   

Thanks for the report and let me know about the response of suse 
maintainers if you'll report the strange behavior.

Borut


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to