Re: [ats-lang-users] ats 0.1.3 on AIX (compilation error)
Unleashing the potentials of types and templates
Status: Beta
Brought to you by:
ats-hwxi
From: sam l. <sk...@gm...> - 2009-04-01 14:50:05
|
I'm using Linux and I can compile. So, this might not be relevant to AIX. testcase.c: typedef void *ats_ptr_type ; static ats_ptr_type ref_make_elt$1199__ats_ptr_type (ats_ptr_type arg0) ; int main() { return 0; } $ gcc -Wextra -Werror -pedantic -ansi testcase.c testcase.c:2:21: error: '$' in identifier or number my gcc is aliased to "gcc -Wextra -pedantic -ansi". Note no -Werror option. And I could build the latest release. I'm using gcc (GCC) 4.3.3 You might want to check if your gcc is aliased to something with -Werror option. If you relax gcc flags a little, it might build. On Wed, Apr 1, 2009 at 7:51 AM, emil artin <emi...@we...> wrote: > Hi, > > I have tried to compile the last stable version of ATS on AIX. > After changing "make" to "gmake" in the Makefile and setting ATSHOME > I executed "gmake all" and got the following error message: > -------------------------------------------------------------------------------------- > .... > gcc -I"/tmp/ats-lang-anairiats-0.1.3" -I"/tmp/ats-lang-anairiats-0.1.3"/ccomp/runtime -O2 -o libats_lex_lexing_dats.o -c libats_lex_lexing_dats.c > gcc -I"/tmp/ats-lang-anairiats-0.1.3" -I"/tmp/ats-lang-anairiats-0.1.3"/ccomp/runtime -O2 -o libats_lex_tables_dats.o -c libats_lex_tables_dats.c > libats_lex_tables_dats.c:91: error: stray '$' in program > libats_lex_tables_dats.c:91:34: error: invalid suffix "__ats_ptr_type" on integer constant > libats_lex_tables_dats.c:91: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant > libats_lex_tables_dats.c:109: error: stray '$' in program > libats_lex_tables_dats.c:109:14: error: invalid suffix "__ats_ptr_type" on integer constant > libats_lex_tables_dats.c:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant > libats_lex_tables_dats.c:114: error: stray '$' in program > libats_lex_tables_dats.c:114:24: error: invalid suffix "__ats_ptr_type" on integer constant > libats_lex_tables_dats.c: In function 'new_tbloptref_some': > libats_lex_tables_dats.c:131: error: stray '$' in program > libats_lex_tables_dats.c:131:21: error: invalid suffix "__ats_ptr_type" on integer constant > libats_lex_tables_dats.c:131: error: 'ref_make_elt' undeclared (first use in this function) > libats_lex_tables_dats.c:131: error: (Each undeclared identifier is reported only once > libats_lex_tables_dats.c:131: error: for each function it appears in.) > libats_lex_tables_dats.c:131: error: expected ';' before numeric constant > gmake[1]: *** [libats_lex_tables_dats.o] Error 1 > gmake[1]: Leaving directory `/tmp/ats-lang-anairiats-0.1.3/bootstrap1' > mv: 0653-401 Cannot rename atsopt to /tmp/ats-lang-anairiats-0.1.3/bin/atsopt: > A file or directory in the path name does not exist. > gmake: *** [atsopt1] Error 1 > -------------------------------------------------------------------------------------- > It seems that the character '$' as part of identifier in source code causes the problem! > Any help is very much appreciated. > > I am using gcc 4.2.4 on AIX 5.3. > > Regards, > E.A. > > ____________________________________________________________________ > Psssst! Schon vom neuen WEB.DE MultiMessenger gehört? > Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123 > > > ------------------------------------------------------------------------------ > _______________________________________________ > ats-lang-users mailing list > ats...@li... > https://lists.sourceforge.net/lists/listinfo/ats-lang-users > |