Package: gccxml
Version: 0.7.0+cvs20070318-1
Severity: normal
seem to be able to get an internal compiler error from gccxml when
I #include <utility>. The error message, debug output, source
(pair.cc), and preprocessed source (pair_preprocessed.cc, generated
with gccxml --preprocess) are given below.
Command line:
[EMAIL PROTECTED]:~/pdm$ gccxml --debug pair.cc > debug.txt \
2>error_message.txt
utility comes from libstdc++6-4.2-dev (version 4.2.2-4)
Is this the 3.3.2 parser getting into trouble with a recent libstdc++6 ?
For what it's worth, the current gccxml CVS doesn't have this problem.
*** pair.cc
#include <utility>
*** pair_preprocessed.cc
# 1 "pair.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 114 "<command line>"
# 1 "/usr/share/gccxml-0.7/GCC/4.1/gccxml_builtins.h" 1
# 13 "/usr/share/gccxml-0.7/GCC/4.1/gccxml_builtins.h"
void __builtin_return (void *RESULT);
void * __builtin_return_address (unsigned int LEVEL);
void * __builtin_frame_address (unsigned int LEVEL);
long __builtin_expect (long EXP, long C);
void __builtin_prefetch (const void *ADDR, ...);
double __builtin_inf (void);
float __builtin_inff (void);
long double __builtin_infl (void);
double __builtin_nans (const char *str);
float __builtin_nansf (const char *str);
long double __builtin_nansl (const char *str);
double __builtin_acos(double);
float __builtin_acosf(float);
long double __builtin_acosl(long double);
double __builtin_asin(double);
float __builtin_asinf(float);
long double __builtin_asinl(long double);
double __builtin_atan(double);
double __builtin_atan2(double, double);
float __builtin_atan2f(float, float);
long double __builtin_atan2l(long double, long double);
float __builtin_atanf(float);
long double __builtin_atanl(long double);
double __builtin_ceil(double);
float __builtin_ceilf(float);
long double __builtin_ceill(long double);
double __builtin_cos(double);
float __builtin_cosf(float);
double __builtin_cosh(double);
float __builtin_coshf(float);
long double __builtin_coshl(long double);
long double __builtin_cosl(long double);
double __builtin_exp(double);
float __builtin_expf(float);
long double __builtin_expl(long double);
double __builtin_fabs(double);
float __builtin_fabsf(float);
long double __builtin_fabsl(long double);
double __builtin_floor(double);
float __builtin_floorf(float);
long double __builtin_floorl(long double);
float __builtin_fmodf(float, float);
long double __builtin_fmodl(long double, long double);
double __builtin_frexp(double, int*);
float __builtin_frexpf(float, int*);
long double __builtin_frexpl(long double, int*);
double __builtin_ldexp(double, int);
float __builtin_ldexpf(float, int);
long double __builtin_ldexpl(long double, int);
double __builtin_log(double);
double __builtin_log10(double);
float __builtin_log10f(float);
long double __builtin_log10l(long double);
float __builtin_logf(float);
long double __builtin_logl(long double);
float __builtin_modff(float, float*);
long double __builtin_modfl(long double, long double*);
float __builtin_powf(float, float);
long double __builtin_powl(long double, long double);
double __builtin_powi(double, int);
float __builtin_powif(float, int);
long double __builtin_powil(long double, int);
double __builtin_sin(double);
float __builtin_sinf(float);
double __builtin_sinh(double);
float __builtin_sinhf(float);
long double __builtin_sinhl(long double);
long double __builtin_sinl(long double);
double __builtin_sqrt(double);
float __builtin_sqrtf(float);
long double __builtin_sqrtl(long double);
double __builtin_tan(double);
float __builtin_tanf(float);
double __builtin_tanh(double);
float __builtin_tanhf(float);
long double __builtin_tanhl(long double);
long double __builtin_tanl(long double);
float __builtin_cabsf(float __complex__);
double __builtin_cabs(double __complex__);
long double __builtin_cabsl(long double __complex__);
float __builtin_cargf(float __complex__);
double __builtin_carg(double __complex__);
long double __builtin_cargl(long double __complex__);
int __builtin_ctz(int);
int __builtin_ctzl(long);
int __builtin_ctzll(long long);
int __builtin_popcount(int);
int __builtin_popcountl(long);
int __builtin_popcountll(long long);
float __complex__ __builtin_ccosf(float __complex__);
double __complex__ __builtin_ccos(double __complex__);
long double __complex__ __builtin_ccosl(long double __complex__);
float __complex__ __builtin_ccoshf(float __complex__);
double __complex__ __builtin_ccosh(double __complex__);
long double __complex__ __builtin_ccoshl(long double __complex__);
float __complex__ __builtin_cexpf(float __complex__);
double __complex__ __builtin_cexp(double __complex__);
long double __complex__ __builtin_cexpl(long double __complex__);
float __complex__ __builtin_clogf(float __complex__);
double __complex__ __builtin_clog(double __complex__);
long double __complex__ __builtin_clogl(long double __complex__);
float __complex__ __builtin_csinf(float __complex__);
double __complex__ __builtin_csin(double __complex__);
long double __complex__ __builtin_csinl(long double __complex__);
float __complex__ __builtin_csinhf(float __complex__);
double __complex__ __builtin_csinh(double __complex__);
long double __complex__ __builtin_csinhl(long double __complex__);
float __complex__ __builtin_csqrtf(float __complex__);
double __complex__ __builtin_csqrt(double __complex__);
long double __complex__ __builtin_csqrtl(long double __complex__);
float __complex__ __builtin_ctanf(float __complex__);
double __complex__ __builtin_ctan(double __complex__);
long double __complex__ __builtin_ctanl(long double __complex__);
float __complex__ __builtin_ctanhf(float __complex__);
double __complex__ __builtin_ctanh(double __complex__);
long double __complex__ __builtin_ctanhl(long double __complex__);
float __complex__ __builtin_cpowf(float __complex__, float __complex__);
double __complex__ __builtin_cpow(double __complex__, double __complex__);
long double __complex__ __builtin_cpowl(long double __complex__, long double
__complex__);
# 115 "<command line>" 2
# 1 "pair.cc"
# 1 "/usr/include/c++/4.2/utility" 1
# 63 "/usr/include/c++/4.2/utility"
# 64 "/usr/include/c++/4.2/utility" 3
# 4294967295 "/usr/include/c++/4.2/utility" 3
# 65 "/usr/include/c++/4.2/utility" 3
# 1 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 1 3
# 41 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 3
# 1 "/usr/include/c++/4.2/i486-linux-gnu/bits/os_defines.h" 1 3
# 44 "/usr/include/c++/4.2/i486-linux-gnu/bits/os_defines.h" 3
# 1 "/usr/include/features.h" 1 3
# 330 "/usr/include/features.h" 3
# 1 "/usr/include/sys/cdefs.h" 1 3
# 348 "/usr/include/sys/cdefs.h" 3
# 1 "/usr/include/bits/wordsize.h" 1 3
# 349 "/usr/include/sys/cdefs.h" 2 3
# 331 "/usr/include/features.h" 2 3
# 354 "/usr/include/features.h" 3
# 1 "/usr/include/gnu/stubs.h" 1 3
# 1 "/usr/include/bits/wordsize.h" 1 3
# 5 "/usr/include/gnu/stubs.h" 2 3
# 1 "/usr/include/gnu/stubs-32.h" 1 3
# 8 "/usr/include/gnu/stubs.h" 2 3
# 355 "/usr/include/features.h" 2 3
# 45 "/usr/include/c++/4.2/i486-linux-gnu/bits/os_defines.h" 2 3
# 42 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 2 3
# 1 "/usr/include/c++/4.2/i486-linux-gnu/bits/cpu_defines.h" 1 3
# 45 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 2 3
# 149 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 3
namespace std __attribute__ ((__visibility__ ("default"))) {
# 161 "/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h" 3
}
# 66 "/usr/include/c++/4.2/utility" 2 3
# 1 "/usr/include/c++/4.2/bits/stl_relops.h" 1 3
# 74 "/usr/include/c++/4.2/bits/stl_relops.h" 3
namespace std __attribute__ ((__visibility__ ("default"))) {
namespace rel_ops
{
# 90 "/usr/include/c++/4.2/bits/stl_relops.h" 3
template <class _Tp>
inline bool
operator!=(const _Tp& __x, const _Tp& __y)
{ return !(__x == __y); }
# 103 "/usr/include/c++/4.2/bits/stl_relops.h" 3
template <class _Tp>
inline bool
operator>(const _Tp& __x, const _Tp& __y)
{ return __y < __x; }
# 116 "/usr/include/c++/4.2/bits/stl_relops.h" 3
template <class _Tp>
inline bool
operator<=(const _Tp& __x, const _Tp& __y)
{ return !(__y < __x); }
# 129 "/usr/include/c++/4.2/bits/stl_relops.h" 3
template <class _Tp>
inline bool
operator>=(const _Tp& __x, const _Tp& __y)
{ return !(__x < __y); }
}
}
# 67 "/usr/include/c++/4.2/utility" 2 3
# 1 "/usr/include/c++/4.2/bits/stl_pair.h" 1 3
# 64 "/usr/include/c++/4.2/bits/stl_pair.h" 3
namespace std __attribute__ ((__visibility__ ("default"))) {
template<class _T1, class _T2>
struct pair
{
typedef _T1 first_type;
typedef _T2 second_type;
_T1 first;
_T2 second;
pair()
: first(), second() { }
pair(const _T1& __a, const _T2& __b)
: first(__a), second(__b) { }
template<class _U1, class _U2>
pair(const pair<_U1, _U2>& __p)
: first(__p.first), second(__p.second) { }
};
template<class _T1, class _T2>
inline bool
operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return __x.first == __y.first && __x.second == __y.second; }
template<class _T1, class _T2>
inline bool
operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return __x.first < __y.first
|| (!(__y.first < __x.first) && __x.second < __y.second); }
template<class _T1, class _T2>
inline bool
operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return !(__x == __y); }
template<class _T1, class _T2>
inline bool
operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return __y < __x; }
template<class _T1, class _T2>
inline bool
operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return !(__y < __x); }
template<class _T1, class _T2>
inline bool
operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
{ return !(__x < __y); }
# 142 "/usr/include/c++/4.2/bits/stl_pair.h" 3
template<class _T1, class _T2>
inline pair<_T1, _T2>
make_pair(_T1 __x, _T2 __y)
{ return pair<_T1, _T2>(__x, __y); }
}
# 68 "/usr/include/c++/4.2/utility" 2 3
# 2 "pair.cc" 2
*** error_message.txt
In file included from /usr/include/c++/4.2/utility:65,
from pair.cc:1:
/usr/include/c++/4.2/i486-linux-gnu/bits/c++config.h:149: error: syntax error
before `__attribute__'
In file included from /usr/include/c++/4.2/utility:66,
from pair.cc:1:
/usr/include/c++/4.2/bits/stl_relops.h:74: error: syntax error before `
__attribute__'
/usr/include/c++/4.2/bits/stl_relops.h:134: error: syntax error before `}'
token
In file included from /usr/include/c++/4.2/utility:67,
from pair.cc:1:
/usr/include/c++/4.2/bits/stl_pair.h:64: error: syntax error before `
__attribute__'
/usr/include/c++/4.2/bits/stl_pair.h:71: error: syntax error before `;' token
/usr/include/c++/4.2/bits/stl_pair.h:73: error: '_T1' is used as a type, but is
not defined as a type.
/usr/include/c++/4.2/bits/stl_pair.h:74: error: '_T2' is used as a type, but is
not defined as a type.
/usr/include/c++/4.2/bits/stl_pair.h: In function `int pair()':
/usr/include/c++/4.2/bits/stl_pair.h:81: error: only constructors take base
initializers
/usr/include/c++/4.2/bits/stl_pair.h:81: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** debug.txt
Using "/usr/bin/gccxml_cc1plus" as GCC-XML executable.
Using the following arguments to GCC-XML executable:
"-quiet"
"-fsyntax-only"
"-w"
"-o"
"/dev/null"
"-nostdinc"
"-D__GCCXML__=700"
"-D__GCCXML_GNUC__=3"
"-D__GCCXML_GNUC_MINOR__=3"
"-D__GCCXML_GNUC_PATCHLEVEL__=2"
"pair.cc"
"-D__DBL_MIN_EXP__=(-1021)"
"-D__FLT_MIN__=1.17549435e-38F"
"-D__DEC64_DEN__=0.000000000000001E-383DD"
"-D__CHAR_BIT__=8"
"-D__WCHAR_MAX__=2147483647"
"-D__DBL_DENORM_MIN__=4.9406564584124654e-324"
"-D__FLT_EVAL_METHOD__=2"
"-D__DBL_MIN_10_EXP__=(-307)"
"-D__FINITE_MATH_ONLY__=0"
"-D__GNUC_PATCHLEVEL__=3"
"-D__DEC64_MAX_EXP__=384"
"-D__SHRT_MAX__=32767"
"-D__LDBL_MAX__=1.18973149535723176502e+4932L"
"-D__UINTMAX_TYPE__=long long unsigned int"
"-D__linux=1"
"-D__DEC32_EPSILON__=1E-6DF"
"-D__unix=1"
"-D__LDBL_MAX_EXP__=16384"
"-D__linux__=1"
"-D__SCHAR_MAX__=127"
"-D__USER_LABEL_PREFIX__="
"-D__STDC_HOSTED__=1"
"-D__LDBL_HAS_INFINITY__=1"
"-D__DEC64_MIN_EXP__=(-383)"
"-D__DBL_DIG__=15"
"-D__FLT_EPSILON__=1.19209290e-7F"
"-D__GXX_WEAK__=1"
"-D__LDBL_MIN__=3.36210314311209350626e-4932L"
"-D__DEC32_MAX__=9.999999E96DF"
"-D__unix__=1"
"-D__DECIMAL_DIG__=21"
"-D__gnu_linux__=1"
"-D__LDBL_HAS_QUIET_NAN__=1"
"-D__GNUC__=4"
"-D__FLT_HAS_DENORM__=1"
"-D__DBL_MAX__=1.7976931348623157e+308"
"-D__DBL_HAS_INFINITY__=1"
"-D__DEC32_MIN_EXP__=(-95)"
"-D__LDBL_HAS_DENORM__=1"
"-D__cplusplus=1"
"-D__DEC128_MAX__=9.999999999999999999999999999999999E6144DL"
"-D__DEC32_MIN__=1E-95DF"
"-D__DEPRECATED=1"
"-D__DBL_MAX_EXP__=1024"
"-D__DEC128_EPSILON__=1E-33DL"
"-D__GNUG__=4"
"-D__LONG_LONG_MAX__=9223372036854775807LL"
"-D__GXX_ABI_VERSION=1002"
"-D__FLT_MIN_EXP__=(-125)"
"-D__DBL_MIN__=2.2250738585072014e-308"
"-D__FLT_MIN_10_EXP__=(-37)"
"-D__DBL_HAS_QUIET_NAN__=1"
"-D__DEC128_MIN__=1E-6143DL"
"-D__REGISTER_PREFIX__="
"-D__DBL_HAS_DENORM__=1"
"-D__NO_INLINE__=1"
"-D__DEC_EVAL_METHOD__=2"
"-D__i386=1"
"-D__FLT_MANT_DIG__=24"
"-D__VERSION__="4.2.3 20071123 (prerelease) (Debian 4.2.2-4)""
"-Di386=1"
"-D__DEC64_EPSILON__=1E-15DD"
"-D__DEC128_MIN_EXP__=(-6143)"
"-D__i486__=1"
"-Dunix=1"
"-D__i386__=1"
"-D__SIZE_TYPE__=unsigned int"
"-D__DEC32_DEN__=0.000001E-95DF"
"-D__ELF__=1"
"-D__FLT_RADIX__=2"
"-D__LDBL_EPSILON__=1.08420217248550443401e-19L"
"-D__LDBL_DIG__=18"
"-D__FLT_HAS_QUIET_NAN__=1"
"-D__FLT_MAX_10_EXP__=38"
"-D__LONG_MAX__=2147483647L"
"-D__FLT_HAS_INFINITY__=1"
"-D__DEC64_MAX__=9.999999999999999E384DD"
"-D__DEC64_MANT_DIG__=16"
"-D__DEC32_MAX_EXP__=96"
"-Dlinux=1"
"-D__DEC128_DEN__=0.000000000000000000000000000000001E-6143DL"
"-D__EXCEPTIONS=1"
"-D__LDBL_MANT_DIG__=64"
"-D__WCHAR_TYPE__=int"
"-D__FLT_DIG__=6"
"-D__INT_MAX__=2147483647"
"-D__i486=1"
"-D__FLT_MAX_EXP__=128"
"-D__DBL_MANT_DIG__=53"
"-D__DEC64_MIN__=1E-383DD"
"-D__WINT_TYPE__=unsigned int"
"-D__LDBL_MIN_EXP__=(-16381)"
"-D__LDBL_MAX_10_EXP__=4932"
"-D__DBL_EPSILON__=2.2204460492503131e-16"
"-D__INTMAX_MAX__=9223372036854775807LL"
"-D__FLT_DENORM_MIN__=1.40129846e-45F"
"-D__FLT_MAX__=3.40282347e+38F"
"-D__INTMAX_TYPE__=long long int"
"-D__DEC128_MAX_EXP__=6144"
"-D__GNUC_MINOR__=2"
"-D__DEC32_MANT_DIG__=7"
"-D__DBL_MAX_10_EXP__=308"
"-D__LDBL_DENORM_MIN__=3.64519953188247460253e-4951L"
"-D__STDC__=1"
"-D__PTRDIFF_TYPE__=int"
"-D__DEC128_MANT_DIG__=34"
"-D__LDBL_MIN_10_EXP__=(-4931)"
"-D__GNUC_GNU_INLINE__=1"
"-D_GNU_SOURCE=1"
"-iwrapper/usr/share/gccxml-0.7/GCC/4.1"
"-I/usr/include/c++/4.2"
"-I/usr/include/c++/4.2/i486-linux-gnu"
"-I/usr/include/c++/4.2/backward"
"-I/usr/local/include"
"-I/usr/lib/gcc/i486-linux-gnu/4.2.3/include"
"-I/usr/include"
"-include"
"/usr/share/gccxml-0.7/GCC/4.1/gccxml_builtins.h"
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gccxml depends on:
ii g++ 4:4.2.1-6 The GNU C++ compiler
ii libc6 2.7-3 GNU C Library: Shared libraries
ii libgcc1 1:4.2.2-4 GCC support library
ii libstdc++6 4.2.2-4 The GNU Standard C++ Library v3
gccxml recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]