[Ecls-list] build-faiulre & dpp

Sean Champ schamp at users.sourceforge.net
Sun Mar 9 16:57:05 UTC 2003


Hello.


DPP seemed to want to make 'foo-bar' when given 'foo_bar', although
g++ didn't seem to like 'foo-bar' as a symbol name. I'm wondering, now,
about the following lines in dpp.c :

248:	if (name[i] == '_')
249:		c[i] = '-';

295:	if (c == '_') c = '-';

343:	if (c == '_') c = '-';

..and about why we'd need to generate 

   #line 276
   cl_object copy-symbol(int narg, cl_object sym, ...)

when given what's in symbol.c



There were other problems with the build; I'm not sure how much of it has to
do with what dpp's made.  


So, what follows is some of what 'make' turned out, when it encountered
errors from g++ while trying to build ecl. I don't know what to make of it,
myself, besides the questions about dpp.


This was done on a Debian 3.0 installation, using gcc/g++ 2.95.4


The ecl sources were updated from the ecl trunk, today
-- Sunday, March  9, 2003


--
make[2]: Entering directory `/mnt/src/lang/lambda/ecl/ecl/build/c'
<<snip>>
dpp: /mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d -> symbol.c
g++ -c -I../h -I/mnt/src/lang/lambda/ecl/ecl/src/c -I/mnt/src/lang/lambda/ecl/ecl/src/h  -O3 -fstrict-aliasing -Dlinux -o symbol.o symbol.c
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:276: syntax error before `-'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:279: parse error before `.'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: ANSI C++ forbids declaration `x' with no type
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: conflicting types for `int x'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: previous declaration as `union lispunion * x'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: initialization to `int' from `lispunion *' lacks a cast
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: `sym' was not declared in this scope
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: ANSI C++ forbids declaration `assert_type_symbol' with no type
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: `int assert_type_symbol' redeclared as different kind of symbol
/mnt/src/lang/lambda/ecl/ecl/src/h/external.h:1292: previous declaration of `void assert_type_symbol(lispunion *)'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:279: ANSI C++ forbids declaration `x' with no type
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:279: redefinition of `int x'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:278: `int x' previously defined here
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:279: `sym' was not declared in this scope
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:280: parse error before `if'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:282: syntax error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:283: parse error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:284: syntax error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:285: parse error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:286: syntax error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d: In function `union lispunion * cl_symbol_package(lispunion *)':
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:354: `assert_type_symbol' cannot be used as a function
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d: In function `union lispunion * si_set_symbol_plist(lispunion *, lispunion *)':
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:397: `assert_type_symbol' cannot be used as a function
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d: In function `union lispunion * si_putprop(lispunion *, lispunion *, lispunion *)':
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:405: `assert_type_symbol' cannot be used as a function
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d: At top level:
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:410: syntax error before `::'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:414: parse error before `.'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:415: `sym' was not declared in this scope
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:415: `prop' was not declared in this scope
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:415: ANSI C++ forbids declaration `putprop' with no type
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:415: `int putprop' redeclared as different kind of symbol
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:164: previous declaration of `union lispunion * putprop(lispunion *, lispunion *, lispunion *)'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:415: initializer list being treated as compound expression
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:416: syntax error before `--'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:422: parse error before `)'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:427: syntax error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:428: `sym' was not declared in this scope
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:428: ANSI C++ forbids declaration `remf' with no type
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:428: `int remf' redeclared as different kind of symbol
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:182: previous declaration of `bool remf(lispunion **, lispunion *)'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:428: initializer list being treated as compound expression
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:429: parse error before `return'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:433: parse error before `,'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:440: syntax error before `->'
/mnt/src/lang/lambda/ecl/ecl/src/c/symbol.d:441: parse error before `->'
make[2]: *** [symbol.o] Error 1
rm main.c symbol.c
make[2]: Leaving directory `/mnt/src/lang/lambda/ecl/ecl/build/c'
make[1]: *** [libecl.a] Error 2
make[1]: Leaving directory `/mnt/src/lang/lambda/ecl/ecl/build'
make: *** [all] Error 2
--




More information about the ecl-devel mailing list