Page MenuHomePhabricator

Error generating gcc xml on OSX
Closed, ResolvedPublic

Description

Using Apple-Compiler:
-i686-apple-darwin11-llvm-gcc-4.2
-i686-apple-darwin11-llvm-g++-4.2
CMake 2.8.10
ITK 3.2
Python 2.7.2

Errormassage:

Generating wrap_vcl_complex.xml
In file included from /usr/include/libkern/_OSByteOrder.h:66,

from /usr/include/sys/_endian.h:124,
from /usr/include/i386/endian.h:99,
from /usr/include/machine/endian.h:35,
from /usr/include/sys/wait.h:193,
from /usr/include/stdlib.h:65,
from /usr/include/c++/4.2.1/cstdlib:72,
from /usr/include/c++/4.2.1/bits/stl_algobase.h:68,
from /usr/include/c++/4.2.1/bits/char_traits.h:46,
from /usr/include/c++/4.2.1/ios:45,
from /usr/include/c++/4.2.1/istream:44,
from /usr/include/c++/4.2.1/sstream:44,
from /usr/include/c++/4.2.1/complex:50,
from /Users/Cordes/developing/bin/MITK-Debug-Python/ITK-src/Utilities/vxl/vcl/iso/vcl_complex.h:6,
from /Users/Cordes/developing/bin/MITK-Debug-Python/ITK-src/Utilities/vxl/vcl/vcl_complex.h:62,
from /Users/Cordes/developing/bin/MITK-Debug-Python/ITK-build/Wrapping/WrapITK/Modules/VXLNumerics/wrap_vcl_complex.cxx:1:

/usr/include/libkern/i386/_OSByteOrder.h: In function 'uint32_t _OSSwapInt32(uint32_t)':
/usr/include/libkern/i386/_OSByteOrder.h:60: error: 'builtin_bswap32' was not declared in this scope
/usr/include/libkern/i386/_OSByteOrder.h: In function '
uint64_t _OSSwapInt64(uint64_t)':
/usr/include/libkern/i386/_OSByteOrder.h:74: error: '
builtin_bswap64' was not declared in this scope

Event Timeline

this is a GccXml bug with special gcc versions.
on ubuntu i installed the system GccXml version and passed it to the superbuild with the GCCXML_DIR option. worked for me.
nevertheless this solution should be included in the documentation

reopen at least for documentation issues

removed dependency to gccxml in MITK, since ITK builds it on its own