www.digitalmars.com         C & C++   DMDScript  

D.gnu - What's builtin-types.def?

reply Benjamin Herr <ben 0x539.de> writes:
Trying to compile gdc-0.10 with gcc-3.4.3 from Gentoo with

configure --enable-version-specific-runtime-libs --prefix=/usr 
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 
--host=x86_64-pc-linux-gnu --disable-altivec --enable-nls 
--without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu 
--with-system-zlib --disable-checking --disable-werror 
--disable-libunwind-exceptions --enable-shared --enable-threads=posix 
--enable-java-awt=gtk --enable-languages=c,c++,f77,objc,java,d 
--disable-multilib

fails with

In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:109:
../../src/gcc-3.4.3/gcc/builtin-types.def: In function d_init_builtins':
../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: parse error before 
'(' token
../../src/gcc-3.4.3/gcc/builtin-types.def:286: error: parse error before 
')' token
../../src/gcc-3.4.3/gcc/builtin-types.def:289: error: parse error before 
')' token
../../src/gcc-3.4.3/gcc/builtin-types.def:318: error: parse error before 
'(' token
../../src/gcc-3.4.3/gcc/builtin-types.def:319: error: parse error before 
')' token
../../src/gcc-3.4.3/gcc/builtin-types.def:323: error: parse error before 
')' token
In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:246:
../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: 
`BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG' undeclared (first 
use in this function)
../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: (Each undeclared 
identifier is reported only once
../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: for each function 
it appears in.)
../../src/gcc-3.4.3/gcc/builtin-types.def:286: error: called object is 
not a function
../../src/gcc-3.4.3/gcc/builtin-types.def:287: error: parse error before 
"DEF_FUNCTION_TYPE_6"
../../src/gcc-3.4.3/gcc/builtin-types.def:291: error: `BT_FN_VOID_VAR' 
undeclared (first use in this function)
../../src/gcc-3.4.3/gcc/builtin-types.def:318: error: 
`BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR' undeclared (first use in 
this function)
../../src/gcc-3.4.3/gcc/builtin-types.def:319: error: called object is 
not a function
../../src/gcc-3.4.3/gcc/builtin-types.def:321: error: parse error before 
"DEF_FUNCTION_TYPE_VAR_5"
../../src/gcc-3.4.3/gcc/builtin-types.def:325: error: 
`BT_PTR_FN_VOID_VAR' undeclared (first use in this function)
In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:326:
../../src/gcc-3.4.3/gcc/builtins.def:566: error: 
`BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR' undeclared (first use 
in this function)
../../src/gcc-3.4.3/gcc/builtins.def:568: error: 
`BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG' undeclared 
(first use in this function)
../../src/gcc-3.4.3/gcc/d/d-builtins.c:127: warning: unused variable 
`flag_isoc99'
../../src/gcc-3.4.3/gcc/d/d-builtins.c: At top level:
../../src/gcc-3.4.3/gcc/d/d-builtins.c:345: warning: unused parameter 
'attrs'
make[1]: *** [d/d-builtins.cglue.o] Error 1
make[1]: Leaving directory 
`/home/ben/code/packages/gcc-3.4.3.20050110/build/gcc'

I have no clue what is broken here and how I could fix it. :(

-ben
Feb 03 2005
parent reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
A security patch has been applied to the base 3.4.3 release.  I'll have 
to update gdc to account for this.  As a workaround, maybe you could 
prevent the patch from being applied?

David

Benjamin Herr wrote:
 Trying to compile gdc-0.10 with gcc-3.4.3 from Gentoo with
 
 configure --enable-version-specific-runtime-libs --prefix=/usr 
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.3 
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include 
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3 
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/man 
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/info 
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include/g++-v3 
 --host=x86_64-pc-linux-gnu --disable-altivec --enable-nls 
 --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu 
 --with-system-zlib --disable-checking --disable-werror 
 --disable-libunwind-exceptions --enable-shared --enable-threads=posix 
 --enable-java-awt=gtk --enable-languages=c,c++,f77,objc,java,d 
 --disable-multilib
 
 fails with
 
 In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:109:
 ../../src/gcc-3.4.3/gcc/builtin-types.def: In function d_init_builtins':
 ../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: parse error before 
 '(' token
 ../../src/gcc-3.4.3/gcc/builtin-types.def:286: error: parse error before 
 ')' token
 ../../src/gcc-3.4.3/gcc/builtin-types.def:289: error: parse error before 
 ')' token
 ../../src/gcc-3.4.3/gcc/builtin-types.def:318: error: parse error before 
 '(' token
 ../../src/gcc-3.4.3/gcc/builtin-types.def:319: error: parse error before 
 ')' token
 ../../src/gcc-3.4.3/gcc/builtin-types.def:323: error: parse error before 
 ')' token
 In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:246:
 ../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: 
 `BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG' undeclared (first 
 use in this function)
 ../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: (Each undeclared 
 identifier is reported only once
 ../../src/gcc-3.4.3/gcc/builtin-types.def:284: error: for each function 
 it appears in.)
 ../../src/gcc-3.4.3/gcc/builtin-types.def:286: error: called object is 
 not a function
 ../../src/gcc-3.4.3/gcc/builtin-types.def:287: error: parse error before 
 "DEF_FUNCTION_TYPE_6"
 ../../src/gcc-3.4.3/gcc/builtin-types.def:291: error: `BT_FN_VOID_VAR' 
 undeclared (first use in this function)
 ../../src/gcc-3.4.3/gcc/builtin-types.def:318: error: 
 `BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR' undeclared (first use in 
 this function)
 ../../src/gcc-3.4.3/gcc/builtin-types.def:319: error: called object is 
 not a function
 ../../src/gcc-3.4.3/gcc/builtin-types.def:321: error: parse error before 
 "DEF_FUNCTION_TYPE_VAR_5"
 ../../src/gcc-3.4.3/gcc/builtin-types.def:325: error: 
 `BT_PTR_FN_VOID_VAR' undeclared (first use in this function)
 In file included from ../../src/gcc-3.4.3/gcc/d/d-builtins.c:326:
 ../../src/gcc-3.4.3/gcc/builtins.def:566: error: 
 `BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR' undeclared (first use 
 in this function)
 ../../src/gcc-3.4.3/gcc/builtins.def:568: error: 
 `BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG' undeclared 
 (first use in this function)
 ../../src/gcc-3.4.3/gcc/d/d-builtins.c:127: warning: unused variable 
 `flag_isoc99'
 ../../src/gcc-3.4.3/gcc/d/d-builtins.c: At top level:
 ../../src/gcc-3.4.3/gcc/d/d-builtins.c:345: warning: unused parameter 
 'attrs'
 make[1]: *** [d/d-builtins.cglue.o] Error 1
 make[1]: Leaving directory 
 `/home/ben/code/packages/gcc-3.4.3.20050110/build/gcc'
 
 I have no clue what is broken here and how I could fix it. :(
 
 -ben

Feb 03 2005
parent Benjamin Herr <ben 0x539.de> writes:
David Friedman wrote:
 
 A security patch has been applied to the base 3.4.3 release.  I'll have 
 to update gdc to account for this.  As a workaround, maybe you could 
 prevent the patch from being applied?
 
 David

I see, thank you. gdc did indeed build now, and I am as far as I was before *g* (http://ilfirin.org/gdc) -ben
Feb 03 2005