[GCC-XML] error: unable to emulate 'TI'
Davidson, Josh
josh.davidson at lmco.com
Mon Nov 7 14:14:49 EST 2011
Just a little background...I'm using gccxml for Linux, Cygwin, and MinGW. I know MinGW isn't officially supported (or at least didn't use to be), but I've had no issues thus far with it. That is, until I attempted to get a 64-bit version working. I was able to get gccxml built, but when I run, I get the following error:
C:\Users\davidsj2\scratch>gccxml test.cpp
test.cpp:1: error: unable to emulate 'TI'
In file included from c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/
include/stddef.h:7,
from c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/
include/c++/4.5.3/cstddef:44,
from c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/
include/c++/4.5.3/bits/stl_algobase.h:61,
from c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/
include/c++/4.5.3/bits/char_traits.h:41,
from c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/
include/c++/4.5.3/string:42,
from hello_world.hpp:4,
from test.cpp:3:
c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include/_mingw.h:194:
error: unable to emulate 'TI'
Here is the relevant snippet from _mingw.h:
#ifndef _INT128_DEFINED
#define _INT128_DEFINED
#ifdef __GNUC__
#define __int8 char
#define __int16 short
#define __int32 int
#define __int64 long long
#ifdef _WIN64
#ifndef __SIZEOF_INT128__
typedef int __int128 __attribute__ ((__mode__ (TI)));
#endif
#endif
#endif /* __GNUC__ */
#endif /* _INT128_DEFINED */
I've Googled, but there isn't much out there on this error. The code does compile fine with standard g++. I'm stuck right now, so any help would certainly be appreciated. I'm attaching the configuration from both gccxml and g++ below.
--------------------------------------GCCXML CONFIG----------------------------
GCC-XML version 0.9.0
Configuration settings:
GCCXML_CONFIG="C:/mingw64-i686-20110207/share/gccxml-0.9/gccxml_config"
GCCXML_COMPILER="C:/mingw64-i686-20110207/bin/g++.exe"
GCCXML_CXXFLAGS=""
GCCXML_EXECUTABLE="C:/mingw64-i686-20110207/bin/gccxml_cc1plus.exe"
GCCXML_CPP="C:/mingw64-i686-20110207/bin/gccxml_cc1plus.exe"
GCCXML_FLAGS="-D__DBL_MIN_EXP__='(-1021)' -D__UINT_LEAST16_MAX__='65535' -D__F
LT_MIN__='1.17549435082228750797e-38F' -D__UINT_LEAST8_TYPE__='unsigned char' -D
_WIN32='1' -D__INTMAX_C(c)='c ## LL' -D__CHAR_BIT__='8' -D__UINT8_MAX__='255' -D
_WIN64='1' -D__WINT_MAX__='65535' -D__SIZE_MAX__='18446744073709551615ULL' -D__W
CHAR_MAX__='65535' -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1='1' -D__GCC_HAVE_SYNC_CO
MPARE_AND_SWAP_2='1' -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4='1' -D__DBL_DENORM_MIN
__='((double)4.94065645841246544177e-324L)' -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
='1' -D__FLT_EVAL_METHOD__='0' -D__x86_64='1' -D__UINT_FAST64_MAX__='18446744073
709551615ULL' -D__SIG_ATOMIC_TYPE__='int' -D__DBL_MIN_10_EXP__='(-307)' -D__FINI
TE_MATH_ONLY__='0' -D__GNUC_PATCHLEVEL__='3' -D__UINT_FAST8_MAX__='255' -D_stdca
ll='__attribute__((__stdcall__))' -D__DEC64_MAX_EXP__='385' -D__INT8_C(c)='c' -D
__UINT_LEAST64_MAX__='18446744073709551615ULL' -D__SHRT_MAX__='32767' -D__LDBL_M
AX__='1.18973149535723176502e+4932L' -D__UINT_LEAST8_MAX__='255' -D__GXX_TYPEINF
O_EQUALITY_INLINE='0' -D__UINTMAX_TYPE__='long long unsigned int' -D__DEC32_EPSI
LON__='1E-6DF' -D__UINT32_MAX__='4294967295U' -D__LDBL_MAX_EXP__='16384' -D__WIN
T_MIN__='0' -D__SCHAR_MAX__='127' -D__WCHAR_MIN__='0' -D__INT64_C(c)='c ## LL' -
D__DBL_DIG__='15' -D__SIZEOF_INT__='4' -D__SIZEOF_POINTER__='8' -D__USER_LABEL_P
REFIX__='' -D__STDC_HOSTED__='1' -D__WIN32='1' -D__LDBL_HAS_INFINITY__='1' -D__W
IN64='1' -D__FLT_EPSILON__='1.19209289550781250000e-7F' -D__GXX_WEAK__='1' -D__L
DBL_MIN__='3.36210314311209350626e-4932L' -D__DEC32_MAX__='9.999999E96DF' -D__MI
NGW32__='1' -D__INT32_MAX__='2147483647' -D__SIZEOF_LONG__='4' -D__UINT16_C(c)='
c' -D__DECIMAL_DIG__='21' -D__LDBL_HAS_QUIET_NAN__='1' -D__GNUC__='4' -D_cdecl='
__attribute__((__cdecl__))' -D__GXX_RTTI='1' -D__MMX__='1' -D__FLT_HAS_DENORM__=
'1' -D__SIZEOF_LONG_DOUBLE__='16' -D__BIGGEST_ALIGNMENT__='16' -D__DBL_MAX__='((
double)1.79769313486231570815e+308L)' -D__INT_FAST32_MAX__='2147483647' -D__WINN
T='1' -D__DBL_HAS_INFINITY__='1' -D__INT64_MAX__='9223372036854775807LL' -D__WIN
NT__='1' -D__DEC32_MIN_EXP__='(-94)' -D__INT_FAST16_TYPE__='short int' -D_fastca
ll='__attribute__((__fastcall__))' -D__LDBL_HAS_DENORM__='1' -D__cplusplus='1' -
D__DEC128_MAX__='9.999999999999999999999999999999999E6144DL' -D__INT_LEAST32_MAX
__='2147483647' -D__USING_SJLJ_EXCEPTIONS__='1' -D__DEC32_MIN__='1E-95DF' -D__DE
PRECATED='1' -D__DBL_MAX_EXP__='1024' -D__DEC128_EPSILON__='1E-33DL' -D__SSE2_MA
TH__='1' -D__WIN32__='1' -D__PTRDIFF_MAX__='9223372036854775807LL' -D__amd64='1'
-D__GNUG__='4' -D__LONG_LONG_MAX__='9223372036854775807LL' -D__SIZEOF_SIZE_T__=
'8' -D__SIZEOF_WINT_T__='2' -D__GXX_ABI_VERSION='1002' -D__FLT_MIN_EXP__='(-125)
' -D__INT_FAST64_TYPE__='long long int' -D__DBL_MIN__='((double)2.22507385850720
138309e-308L)' -D__FLT_MIN_10_EXP__='(-37)' -D__DEC128_MIN__='1E-6143DL' -D__REG
ISTER_PREFIX__='' -D__UINT16_MAX__='65535' -D__DBL_HAS_DENORM__='1' -D__cdecl='_
_attribute__((__cdecl__))' -D__UINT8_TYPE__='unsigned char' -D__NO_INLINE__='1'
-D__FLT_MANT_DIG__='24' -D__VERSION__='"4.5.3 20110207 (prerelease)"' -D__UINT64
_C(c)='c ## ULL' -D__INT32_C(c)='c' -D__DEC64_EPSILON__='1E-15DD' -D__DEC128_MIN
_EXP__='(-6142)' -D__INT_FAST32_TYPE__='int' -D__UINT_LEAST16_TYPE__='short unsi
gned int' -D__INT16_MAX__='32767' -D__SIZE_TYPE__='long long unsigned int' -D__U
INT64_MAX__='18446744073709551615ULL' -D__INT8_TYPE__='signed char' -D__FLT_RADI
X__='2' -D__INT_LEAST16_TYPE__='short int' -D__LDBL_EPSILON__='1.084202172485504
43401e-19L' -D__UINTMAX_C(c)='c ## ULL' -D__k8='1' -D__SIG_ATOMIC_MAX__='2147483
647' -D__SIZEOF_PTRDIFF_T__='8' -D__x86_64__='1' -D__DEC32_SUBNORMAL_MIN__='0.00
0001E-95DF' -D__MSVCRT__='1' -D__INT_FAST16_MAX__='32767' -D__UINT_FAST32_MAX__=
'4294967295U' -D__UINT_LEAST64_TYPE__='long long unsigned int' -D__FLT_HAS_QUIET
_NAN__='1' -D__FLT_MAX_10_EXP__='38' -D__LONG_MAX__='2147483647L' -D__DEC128_SUB
NORMAL_MIN__='0.000000000000000000000000000000001E-6143DL' -D__FLT_HAS_INFINITY_
_='1' -D__UINT_FAST16_TYPE__='short unsigned int' -D__DEC64_MAX__='9.99999999999
9999E384DD' -D__CHAR16_TYPE__='short unsigned int' -D__PRAGMA_REDEFINE_EXTNAME='
1' -D__INT_LEAST16_MAX__='32767' -D__DEC64_MANT_DIG__='16' -D__UINT_LEAST32_MAX_
_='4294967295U' -D__INT_LEAST64_TYPE__='long long int' -D__INT16_TYPE__='short i
nt' -D__INT_LEAST8_TYPE__='signed char' -D__DEC32_MAX_EXP__='97' -D__INT_FAST8_M
AX__='127' -D__INTPTR_MAX__='9223372036854775807LL' -D__GXX_MERGED_TYPEINFO_NAME
S='0' -D__stdcall='__attribute__((__stdcall__))' -D__SSE2__='1' -D__EXCEPTIONS='
1' -D__LDBL_MANT_DIG__='64' -D__DBL_HAS_QUIET_NAN__='1' -D__SIG_ATOMIC_MIN__='(-
__SIG_ATOMIC_MAX__ - 1)' -D__k8__='1' -D__INTPTR_TYPE__='long long int' -D__UINT
16_TYPE__='short unsigned int' -D__WCHAR_TYPE__='short unsigned int' -D__SIZEOF_
FLOAT__='4' -D__pic__='1' -D__UINTPTR_MAX__='18446744073709551615ULL' -D__DEC64_
MIN_EXP__='(-382)' -D__INT_FAST64_MAX__='9223372036854775807LL' -D__FLT_DIG__='6
' -D__UINT_FAST64_TYPE__='long long unsigned int' -D__INT_MAX__='2147483647' -D_
_amd64__='1' -DWIN32='1' -D__INT64_TYPE__='long long int' -D__FLT_MAX_EXP__='128
' -DWIN64='1' -D__DBL_MANT_DIG__='53' -D__INT_LEAST64_MAX__='9223372036854775807
LL' -D__DEC64_MIN__='1E-383DD' -D__WINT_TYPE__='short unsigned int' -D__UINT_LEA
ST32_TYPE__='unsigned int' -D__SIZEOF_SHORT__='2' -D__SSE__='1' -D__LDBL_MIN_EXP
__='(-16381)' -D__INT_LEAST8_MAX__='127' -D__WCHAR_UNSIGNED__='1' -D__LDBL_MAX_1
0_EXP__='4932' -D__DBL_EPSILON__='((double)2.22044604925031308085e-16L)' -D__UIN
T8_C(c)='c' -D__INT_LEAST32_TYPE__='int' -D__SIZEOF_WCHAR_T__='2' -D__UINT64_TYP
E__='long long unsigned int' -D__INT_FAST8_TYPE__='signed char' -D__fastcall='__
attribute__((__fastcall__))' -D__DEC_EVAL_METHOD__='2' -D__MINGW64__='1' -D__UIN
T32_C(c)='c ## U' -D__INTMAX_MAX__='9223372036854775807LL' -DWINNT='1' -D__FLT_D
ENORM_MIN__='1.40129846432481707092e-45F' -D__INT8_MAX__='127' -D__PIC__='1' -D_
_UINT_FAST32_TYPE__='unsigned int' -D__CHAR32_TYPE__='unsigned int' -D__FLT_MAX_
_='3.40282346638528859812e+38F' -D__INT32_TYPE__='int' -D__SIZEOF_DOUBLE__='8' -
D__INTMAX_TYPE__='long long int' -D_INTEGRAL_MAX_BITS='64' -D__DEC128_MAX_EXP__=
'6145' -D__GNUC_MINOR__='5' -D__UINTMAX_MAX__='18446744073709551615ULL' -D__DEC3
2_MANT_DIG__='7' -D__DBL_MAX_10_EXP__='308' -D__LDBL_DENORM_MIN__='3.64519953188
247460253e-4951L' -D__INT16_C(c)='c' -D__STDC__='1' -D__PTRDIFF_TYPE__='long lon
g int' -D__UINT32_TYPE__='unsigned int' -D__UINTPTR_TYPE__='long long unsigned i
nt' -D__DEC64_SUBNORMAL_MIN__='0.000000000000001E-383DD' -D__DEC128_MANT_DIG__='
34' -D__LDBL_MIN_10_EXP__='(-4931)' -D__SSE_MATH__='1' -D__SIZEOF_LONG_LONG__='8
' -D__LDBL_DIG__='18' -D__UINT_FAST16_MAX__='65535' -D__GNUC_GNU_INLINE__='1' -D
__UINT_FAST8_TYPE__='unsigned char' -D__WIN64__='1' -D__declspec(x)='__attribute
__((x))' -iwrapper"C:/mingw64-i686-20110207/share/gccxml-0.9/GCC/4.5" -isystem"c
:\mingw64-i686-20110207\bin\../lib/gcc/x86_64-w64-mingw32/4.5.3/include" -isyste
m"c:\mingw64-i686-20110207\bin\../lib/gcc/x86_64-w64-mingw32/4.5.3/include-fixed
" -isystem"c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include/c++
/4.5.3" -isystem"c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/inclu
de/c++/4.5.3/x86_64-w64-mingw32" -isystem"c:/mingw64-i686-20110207/lib/gcc/../..
/x86_64-w64-mingw32/include/c++/4.5.3/backward" -isystem"c:/mingw64-i686-2011020
7/lib/gcc/../../x86_64-w64-mingw32/include" -include "gccxml_builtins.h""
GCCXML_USER_FLAGS=""
GCCXML_ROOT="C:/mingw64-i686-20110207/share/gccxml-0.9"
--------------------------------------G++ CONFIG----------------------------
C:\Users\davidsj2\scratch>g++ -v test.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/mingw64-i686-20110207/bin/../libexec/gcc/x86_64-w64-mingw
32/4.5.3/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../build/gcc/src/configure --target=x86_64-w64-mingw32 --
prefix=/c/buildbot/mingw-w64/mingw32/mingw-x86-x86_64/build/build/root --with-sy
sroot=/c/buildbot/mingw-w64/mingw32/mingw-x86-x86_64/build/build/root --enable-l
anguages=all,obj-c++ --enable-fully-dynamic-string --disable-multilib
Thread model: win32
gcc version 4.5.3 20110207 (prerelease) (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
c:/mingw64-i686-20110207/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.3/cc1plus.ex
e -quiet -v -iprefix c:\mingw64-i686-20110207\bin\../lib/gcc/x86_64-w64-mingw32/
4.5.3/ test.cpp -quiet -dumpbase test.cpp -mtune=generic -march=x86-64 -auxbase
test -version -o C:\Users\davidsj2\AppData\Local\Temp\ccZVgrnb.s
GNU C++ (GCC) version 4.5.3 20110207 (prerelease) (x86_64-w64-mingw32)
compiled by GNU C version 4.4.5 20101001 (release) [svn/rev.164871 - min
gw-w64/oz], GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "c:/buildbot/mingw-w64/mingw32/mingw-x86-x86_64/b
uild/build/rootc:/buildbot/mingw-w64/mingw32/mingw-x86-x86_64/build/build/root/i
nclude"
ignoring duplicate directory "c:/mingw64-i686-20110207/lib/gcc/../../lib/gcc/x86
_64-w64-mingw32/4.5.3/include"
ignoring duplicate directory "c:/mingw64-i686-20110207/lib/gcc/../../lib/gcc/x86
_64-w64-mingw32/4.5.3/include-fixed"
ignoring nonexistent directory "c:/buildbot/mingw-w64/mingw32/mingw-x86-x86_64/b
uild/build/root/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
c:\mingw64-i686-20110207\bin\../lib/gcc/x86_64-w64-mingw32/4.5.3/include
c:\mingw64-i686-20110207\bin\../lib/gcc/x86_64-w64-mingw32/4.5.3/include-fixed
c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include/c++/4.5.3
c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include/c++/4.5.3/x86
_64-w64-mingw32
c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include/c++/4.5.3/bac
kward
c:/mingw64-i686-20110207/lib/gcc/../../x86_64-w64-mingw32/include
End of search list.
GNU C++ (GCC) version 4.5.3 20110207 (prerelease) (x86_64-w64-mingw32)
compiled by GNU C version 4.4.5 20101001 (release) [svn/rev.164871 - min
gw-w64/oz], GMP version 5.0.1, MPFR version 2.4.2, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3fd3e1a57a1ebaa3e31328561e04d6bd
More information about the gccxml
mailing list