[GCC-XML] processing OpenSSL headers?

Brad King brad.king at kitware.com
Tue Mar 5 14:40:51 EST 2013


On 03/04/2013 06:46 PM, Matěj Cepl wrote:
> Hi, when I tried to run gccxml on OpenSSL headers (bn.h in this case)
> I've got into some kind of trouble for which I don't know way out:
> 
> matej at wycliff: slrn (master %)$ gccxml /usr/include/openssl/bn.h \
>     -fxml=bn.pxd

What compiler does this target?  See "gccxml --print" output
for GCCXML_COMPILER, and run the reported compiler with --version.

> In file included from /usr/include/endian.h:60,
>                  from /usr/include/bits/waitstatus.h:64,
>                  from /usr/include/stdlib.h:42,
>                  from /usr/include/openssl/crypto.h:120,
>                  from /usr/include/openssl/bn.h:133:
> /usr/include/bits/byteswap.h: In function 'unsigned int
> __bswap_32(unsigned int)':
> /usr/include/bits/byteswap.h:47: error: '__builtin_bswap32' was not

I suspect GCC_XML/Support/GCC/$version/gccxml_builtins.h
needs to be updated to be aware of this builtin for whatever
compiler/version you're running.

-Brad



More information about the gccxml mailing list