[GCC-XML]gccXML causing trouble on Solaris - 64-bi integer types
Belandor
belandor at web.de
Mon Feb 16 20:52:50 EST 2004
ok, I found the error. - the 64-bit integer types are only defined, if
either __sparcv8 or __sparcv9 are defined. For some reason gccxml does
not define these macros. It should though automatically define them to
be according to the host-type shoudln't it?
So, if I run gccxml with the option -D__sparcv9 everything just works
fine. (on Solaris)
Andreas Pfeil
Brad King wrote:
> Belandor wrote:
>
>> I'm trying to get XML output for a file including Solaris inttypes.h.
>> - For some reason, gccXML runnig on Solaris 9 claims syntax error when
>> parsing int64_t and uint64_t. - The same file compiles fine under
>> Linux (Gentoo, glibc version 2.3.2). Anybody has any clue, what's
>> going wrong here?
>>
>> Command executed:
>> gccxml -I. -Iinclude -I/usr/include/ -fxml=cpu.xml cpu.hh
>>
>> Error message under Solaris 9:
>> In file included from intmisc.hh:14,
>> from cpu.hh:16:
>> inttypes.hh:48: error: syntax error before `;' token
>> inttypes.hh:49: error: syntax error before `;' token
>> [... and a lot more complains about undefined types]
>
>
> Somehow the compiler is missing the definitions for int64_t. I'll need
> to see the preprocessed version of the source. Please send me the
> output of this command:
>
> gccxml -I. -Iinclude -I/usr/include cpu.hh -E -dD
>
> If you are not using version 0.6.0, please upgrade because the command
> will not work with earlier versions.
>
> Thanks,
> -Brad
>
> _______________________________________________
> gccxml mailing list
> gccxml at gccxml.org
> http://www.gccxml.org/mailman/listinfo/gccxml
>
More information about the gccxml
mailing list