From: Colin P. A. <co...@co...> - 2007-12-23 17:53:28
|
For the tree formatter example, if I try: geant -v compile_ge I get: Loading Project's configuration from build.eant Loading Project's configuration from /home/colin/gobo/misc/eiffel.eant Loading Project's configuration from /home/colin/gobo/misc/ge2e.eant Building Project eiffel.init: [set] eiffel=ge eiffel.init_eiffel: [set] eiffel=ise eiffel.init_os: eiffel.init_unix: [set] exe= formatter.init_system: [set] system=formatter [set] library=xml [set] system_dir=/home/colin/gobo/example/xml/tree/formatter eiffel.prepare_compile: eiffel.compile_ge: [set] eiffel=ge eiffel.xace: [gexace] gexace --define="GOBO_EIFFEL=ge GOBO_OS=unix GOBO_CC=gcc" --system="ge" --output="compile_ge.ace" /home/colin/gobo/example/xml/tree/formatter/system.xace [delete] formatter [set] finalize=true [set] split=true [gec] gec --finalize --cc=no compile_ge.ace [exec] ./formatter.sh formatter3.c: In function $(B!F(Bfile_mkdir$(B!G(B: formatter3.c:11672: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c:11672: error: (Each undeclared identifier is reported only once formatter3.c:11672: error: for each function it appears in.) formatter3.c: In function $(B!F(Bfile_rename$(B!G(B: formatter3.c:11737: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_link$(B!G(B: formatter3.c:11750: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_unlink$(B!G(B: formatter3.c:11763: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_open$(B!G(B: formatter3.c:11863: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_dopen$(B!G(B: formatter3.c:11876: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_reopen$(B!G(B: formatter3.c:11891: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_close$(B!G(B: formatter3.c:11903: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_flush$(B!G(B: formatter3.c:11913: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_fd$(B!G(B: formatter3.c:11924: error: $(B!F(BEN_EXT$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gc$(B!G(B: formatter3.c:11934: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gs$(B!G(B: formatter3.c:11954: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gw$(B!G(B: formatter3.c:12008: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_lh$(B!G(B: formatter3.c:12056: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Beif_file_size$(B!G(B: formatter3.c:12074: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_tnil$(B!G(B: formatter3.c:12092: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_tell$(B!G(B: formatter3.c:12105: error: $(B!F(BEN_EXT$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_utime$(B!G(B: formatter3.c:12143: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_stat$(B!G(B: formatter3.c:12156: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_perm$(B!G(B: formatter3.c:12229: error: $(B!F(BEN_EXT$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_chmod$(B!G(B: formatter3.c:12310: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_chown$(B!G(B: formatter3.c:12326: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_chgrp$(B!G(B: formatter3.c:12343: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_tnwl$(B!G(B: formatter3.c:12354: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_append$(B!G(B: formatter3.c:12368: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_ps$(B!G(B: formatter3.c:12397: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pc$(B!G(B: formatter3.c:12409: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_go$(B!G(B: formatter3.c:12419: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_recede$(B!G(B: formatter3.c:12430: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_move$(B!G(B: formatter3.c:12441: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bswallow_nl$(B!G(B: formatter3.c:12577: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gi$(B!G(B: formatter3.c:12593: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gr$(B!G(B: formatter3.c:12606: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gd$(B!G(B: formatter3.c:12619: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pi$(B!G(B: formatter3.c:12631: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pr$(B!G(B: formatter3.c:12641: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pd$(B!G(B: formatter3.c:12651: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Beif_group_in_list$(B!G(B: formatter3.c:12680: error: $(B!F(BEN_IO$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gib$(B!G(B: formatter3.c:12922: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_grb$(B!G(B: formatter3.c:12934: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_gdb$(B!G(B: formatter3.c:12946: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_binary_open$(B!G(B: formatter3.c:12958: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_binary_dopen$(B!G(B: formatter3.c:12976: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_binary_reopen$(B!G(B: formatter3.c:12995: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pib$(B!G(B: formatter3.c:13011: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_prb$(B!G(B: formatter3.c:13021: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) formatter3.c: In function $(B!F(Bfile_pdb$(B!G(B: formatter3.c:13031: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) gcc: formatter3.o: No such file or directory -- Colin Adams Preston Lancashire |
From: Eric B. <er...@go...> - 2007-12-23 21:05:16
|
Colin Paul Adams wrote: > For the tree formatter example, if I try: > > geant -v compile_ge > > I get: > > Loading Project's configuration from build.eant > Loading Project's configuration from /home/colin/gobo/misc/eiffel.eant > Loading Project's configuration from /home/colin/gobo/misc/ge2e.eant > Building Project > > eiffel.init: > > [set] eiffel=ge > > eiffel.init_eiffel: > > [set] eiffel=ise > > eiffel.init_os: > > > eiffel.init_unix: > > [set] exe= > > formatter.init_system: > > [set] system=formatter > [set] library=xml > [set] system_dir=/home/colin/gobo/example/xml/tree/formatter > > eiffel.prepare_compile: > > > eiffel.compile_ge: > > [set] eiffel=ge > > eiffel.xace: > > [gexace] gexace --define="GOBO_EIFFEL=ge GOBO_OS=unix GOBO_CC=gcc" --system="ge" --output="compile_ge.ace" /home/colin/gobo/example/xml/tree/formatter/system.xace > [delete] formatter > [set] finalize=true > [set] split=true > [gec] gec --finalize --cc=no compile_ge.ace > [exec] ./formatter.sh > formatter3.c: In function $(B!F(Bfile_mkdir$(B!G(B: > formatter3.c:11672: error: $(B!F(Berrno$(B!G(B undeclared (first use in this function) > formatter3.c:11672: error: (Each undeclared identifier is reported only once > formatter3.c:11672: error: for each function it appears in.) In fact this is strange because the code that it is complaining about is exactly the same that it compiled in the generated C code for all applications. It is a copy of file $GOBO/tool/gec/runtime/c/eif_file.c. The generated .h file should contain a copy of the file $GOBO/tool/gec/runtime/c/eif_except.h which has an include of <errno.h>, which itself should declared 'errno'. There is no problem when compiling under Windows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\DriveE\gobo\gobo\example\xml\tree\formatter>geant -v compile_ge Loading Project's configuration from build.eant Loading Project's configuration from C:\DriveE\gobo\gobo/misc/eiffel.eant Loading Project's configuration from C:\DriveE\gobo\gobo/misc/ge2e.eant Building Project eiffel.init: [set] eiffel=ge eiffel.init_eiffel: [set] eiffel=ge eiffel.init_os: eiffel.init_windows: [set] exe=.exe formatter.init_system: [set] system=formatter [set] library=xml [set] system_dir=C:\DriveE\gobo\gobo/example/xml/tree/formatter eiffel.prepare_compile: eiffel.compile_ge: [set] eiffel=ge eiffel.xace: [gexace] gexace --define="GOBO_EIFFEL=ge GOBO_OS=windows" --system="ge" --output="compile_ge.ace" C:\DriveE\gobo\gobo\example\xml\tree\formatter\system.xace [delete] formatter.exe [set] finalize=true [set] split=true [gec] gec --finalize --cc=no --catcall=error compile_ge.ace [exec] .\formatter.bat formatter3.c formatter2.c formatter1.c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |
From: Colin A. <col...@go...> - 2008-01-14 08:46:17
|
I just tried again, and this time there was no problem. Strange indeed. On 23/12/2007, Eric Bezault <er...@go...> wrote: > In fact this is strange because the code that it is complaining > about is exactly the same that it compiled in the generated > C code for all applications. It is a copy of file > $GOBO/tool/gec/runtime/c/eif_file.c. The generated .h file > should contain a copy of the file $GOBO/tool/gec/runtime/c/eif_except.h > which has an include of <errno.h>, which itself should declared > 'errno'. > > There is no problem when compiling under Windows: |