[gnutls-devel] gnutls 3.1.10 compile fails on OS X 10.5 Leopard because of invalid start-of-comment characters in macosx/appro-aes-x86-macosx.s

Ryan Schmidt ryandesign at macports.org
Wed May 8 05:18:57 CEST 2013


On May 2, 2013, at 12:49, Nikos Mavrogiannopoulos wrote:
> On Tue, Apr 2, 2013 at 5:13 AM, Ryan Schmidt wrote:
>> Building gnutls 3.1.10 fails on OS X 10.5.8 Leopard i386 with Xcode 3.1.4:
>> macosx/appro-aes-x86-macosx.s:1:3: error: invalid preprocessing directive #Copyright
>> "#" appears not to be a valid start-of-comment character for this assembler (which is "Apple Inc version cctools-698.1~1, GNU assembler version 1.38"). Removing the lines that start with "#" fixes the problem. I don't know what the correct start-of-comment character should be; the documentation I found says it should be "#" on i386 and ";" on ppc.
> 
> Hello,
> I am unfamiliar with the platform and I don't know how this can be
> fixed. Is that specific to leopard or assemblers in  all macosx
> systems fail to compile it? Is there a comment symbol that can be used
> reliably there?

I should have mentioned it compiles fine on later OS X versions, including 10.6, 10.7 and 10.8. I only observed the failure on 10.5 on Intel. I did not test 10.4 on Intel. 10.4 and 10.5 on PowerPC are fine.

It looks like
/*
C-style
multiline
comments
*/
should be accepted by all assemblers? It does seem to be acceptable to OS X 10.5's assembler and I've seen this used in other projects.






More information about the Gnutls-devel mailing list