On Sat, Sep 15, 2001 at 06:44:38PM +0300, Jarkko Hietaniemi wrote:
> On Sat, Sep 15, 2001 at 04:35:49PM +0100, Simon Cozens wrote:
> > On Sat, Sep 15, 2001 at 06:18:38PM +0300, Jarkko Hietaniemi wrote:
> > > do { foo [ 0 ] = end ; foo [ 1 ] = set_i_ic ; foo [ 2 ] = set_i ; foo [ 3 ]
>= add_i ; foo [ 4 ] = sub_i ; foo [ 5 ] = mul_i ; foo [ 6 ] = div_i ; foo [ 7 ] = ...
> >
> > Your op.h needs rebuilding. It builds fine on Tru64 here.
>
> The question is why was it wrong after a fresh checkout? (also in Linux)
>
> Another observation is that after 'rm op.h; make op.h' the thing
> builds but with some gnashing of the teeth:
>
> cc: Warning: interpreter.c, line 97: In this statement, the referenced type of the
>pointer value "Parrot_op_end" is "function (pointer to long, pointer to struct
>Perl_Interp) returning pointer to long", which is not compatible with "void".
>(ptrmismatch)
> BUILD_TABLE(foo);
> ----^
Urgle. Celebrated too early -- it builds but then:
kosh:/tmp/jhi/parrot ; ./test_prog test.pbc
zsh: 5870 segmentation fault (core dumped) ./test_prog test.pbc
kosh:/tmp/jhi/parrot ; gdb ./test_prog core.test_prog.kosh.0
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-dec-osf4.0), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `test_prog'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/shlib/libgdbm.so...done.
Reading symbols from /usr/shlib/libdb.so...done.
Reading symbols from /usr/shlib/libm.so...done.
Reading symbols from /usr/shlib/libiconv.so...done.
Reading symbols from /usr/shlib/libc.so...done.
#0 0x120007748 in read_constants_table (program_code=0x11ffff408)
at bytecode.c:66
66 IV len = GRAB_IV(program_code);
(gdb) where
#0 0x120007748 in read_constants_table (program_code=0x11ffff408)
at bytecode.c:66
#1 0x120007950 in init_bytecode (program_code=0x8000101b8) at bytecode.c:154
#2 0x120008434 in main (argc=2, argv=0x11ffff4c8) at test_main.c:75
(gdb)
--
$jhi++; # http://www.iki.fi/jhi/
# There is this special biologist word we use for 'stable'.
# It is 'dead'. -- Jack Cohen