Hi Andrew,

I just svn-ed the latest and I got the same error. I'm no parrot expert 
but it appears it's looking for the include file
  .include 'src/abc_gen.pir'
and there's no such file.  It appears the generated (?) abc_gen.pir file 
isn't there. Other langs have that (lua/src/lua.pir) so my guess is its 
generated. So, at the top level I ran:
/parrot # find . -name pgc.pir 

and saw:
./languages/abc/config/makefiles/root.in:       $(PARROT) 
$(PGE_DIR)/pgc.pir --output=src/abc_gen.pir src/abc.pg

so I ran:
parrot/ #./parrot compilers/pge/pgc.pir 
--output=languages/abc/src/abc_gen.pir languages/abc/src/abc.pg

and now I 've got the abc_gen.pir file. Soooo looking in that 
makefiles/root.in file, there's also a line for PASTGrammar_gen.pir, 
another needed, generated file so:
parrot/ # ./parrot compilers/tge/tgc.pir 
--output=languages/abc/src/PASTGrammar_gen.pir 
languages/abc/src/PASTGrammar.tg

and then create the abc.pbc (a test?):
parrot/ #cd languages/abc
parrot/languages/abc # ../../parrot -o abc.pbc abc.pir 

and it works!
parrot/languages/abc # ../../parrot abc.pir
> 1 + 2
3
> ^D

a

Note, I had to modify
config/init/hints/linux.pm

to comment out the -fvisibility=hidden cflag
   else {
         # hide non-exported symbols
        #$cflags .= ' -fvisibility=hidden';

as my perl Makefile.pl got a test.cco
c1: error: unrecognized option `-fvisibility=hidden'

for a test.c of:
*
    * testparrotfuncptr.c - figure out if the compiler will let us do
    *                       non-ansi function pointer casts.
    */

It fails at:
Determining whether lex is 
installed...............................skipped.
Determining whether yacc is 
installed..............................skipped.
Determining if your C compiler is actually gcc...
step auto::gcc died during execution: C compiler failed (see test.cco) at 
lib/Parrot/Configure/Step.pm line 505
        Parrot::Configure::Step::cc_build() called at config/auto/gcc.pm 
line 37
 
auto::gcc::runstep('auto::gcc=HASH(0x838de04)','Parrot::Configure=HASH(0x823b470)')
 
called at lib/Parrot/Configure.pm line 266
        eval {...} called at lib/Parrot/Configure.pm line 260
 
Parrot::Configure::_runstep('Parrot::Configure=HASH(0x823b470)','Parrot::Configure::Task=HASH(0x827c104)','undef','undef','undef',11)
 
called at lib/Parrot/Configure.pm line 192
        Parrot::Configure::runsteps('Parrot::Configure=HASH(0x823b470)') 
called at Configure.pl line 350

 at Configure.pl line 350

and goes south from there.

Andy Bach
Systems Mangler
Internet: [EMAIL PROTECTED]
VOICE: (608) 261-5738  FAX 264-5932

The competent programmer is fully aware of the strictly limited size of
his own skull; therefore he approaches the programming task in full
humility, and among other things he avoids clever tricks like the
plague. -- Edsger Dijkstra

Reply via email to