[Insight-developers] SGI 7.4.2 compilers with Wrapping
Brad King
brad.king at kitware.com
Mon Aug 1 18:15:19 EDT 2005
Hans Johnson wrote:
> GCCXML_FLAGS="-Dmips -DMIPSEB -D_MIPSEB -D__INLINE_INTRINSICS -D_PIC
> -D__DSO__ -D__ELF__ -D_LANGUAGE_C_PLUS_PLUS=1 -D_MODERN_C -D__sgi -D__unix
> -D__unix__ -D_SGI_COMPILER_VERSION=743 -D_COMPILER_VERSION=743 -Dhost_mips
> -D__host_mips -Dunix -Dsgi -D__EXTENSIONS__ -D__MATH_HAS_NO_SIDE_EFFECTS
> -D_LONGLONG -D_SGI_SOURCE -D_SVR4_SOURCE -D_SYSTYPE_SVR4 -D__OPTIMIZE__
> -DNDEBUG -D__mips=4 -D_MIPS_ISA=4 -D_ABIN32=2 -D_MIPS_SIM=_ABIN32
> -D_MIPS_FPSET=32 -D_ILP32 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32
> -D_MIPS_SZPTR=32 -D_SIZE_INT=32 -D_SIZE_LONG=32 -D_SIZE_PTR=32
> -D_STANDARD_C_PLUS_PLUS
> -iwrapper"/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Utilit
> ies/CableSwig/GCC_XML/Support/MIPSpro/7.3" -I/usr/include/CC -I/usr/include
> "
This appears to be missing a bunch of macros internally defined by
MIPSpro and not listed by the "CC -v" verbose output. One of these
macros is _LIBC_IN_NAMESPACE_STD_ which is causing the error in the
cmath header. I've updated gccxml's knowledge of how to find
preprocessor symbols to detect these internally defined macros:
/cvsroot/GCC_XML/gccxml/GCC_XML/Support/MIPSpro/find_flags,v <--
find_flags
new revision: 1.5; previous revision: 1.4
The change should solve the problem (of course there may be others).
-Brad
More information about the Insight-developers
mailing list