[Carpet] PGI compiler, belladonna and assembler

Erik Schnetter schnetter at cct.lsu.edu
Tue Jul 3 17:28:54 CEST 2007


On Jul 3, 2007, at 14:34:59, Frank Löffler wrote:

> Hi,
>
> on Belladonna and with Carpet experimental, I get:
>
> Compiling
> /home/knarf/Cactus/Cactus/arrangements/Carpet/CarpetLib/src/ 
> timestat.cc
> "/home/knarf/Cactus/Cactus/configs/tp/build/CarpetLib/timestat.cc",  
> line
> 59: error:
>           unknown asm constraint letter 'a'
>                       "=a" (eax) : "a" (0) : "edx", "ecx", "esi");
> ...
>
> Has annyone a clue what is happening here?
>
> This code is only evaluated if either __i386__ or __x86_64__ is  
> defined
> and commends say it is about a "Intel rdtsc timer". Belladonna uses
> ADMs, so could it be that either one of these defines is set  
> wrongly or
> we should test for something else than these defines?

This is not C++ syntax; it is an extension of the GNU compiler which  
is supported by many other compilers as well.  Apparently it is not  
supported by the compiler you are using.  We could either add  
autoconf magic to find out whether the compiler supports the extended  
syntax, or add a check for your compiler.  Can you tell me how to  
identify your compiler using #ifdef?

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/developers/attachments/20070703/1d7e995a/attachment.pgp 


More information about the developers mailing list