#1046: Configure.pl allows sizeof(INTVAL) != sizeof(void *), but parrot requires
them to be equal.
-----------------------+----------------------------------------------------
Reporter: doughera | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: configure | Version: 1.6.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-----------------------+----------------------------------------------------
Comment(by jkeenan):
Replying to [ticket:1046 doughera]:
> See [http://rt.perl.org/rt3/Ticket/Display.html?id=56484 Original RT]
> for more details.
>
> On Linux/x86, the problem can be reproduced by running
> {{{
> perl Configure.pl --intval="long long int" --opcode="long long int"
> }}}
I reproduced this tonight. ''Configure.pl'' told me:
{{{
auto::sizes - Determine some sizes...
Hmm, I see your chosen INTVAL isn't the same size as your pointers.
Parrot should still compile and run, but you may see a ton of warnings.
............................done.
}}}
... and I did indeed get a ton of warnings. But then Parrot failed to
build:
{{{
./parrot -o runtime/parrot/library/PCT/HLLCompiler.pbc
compilers/pct/src/PCT/HLLCompiler.pir
/usr/local/bin/perl -e "" > compilers/pge/PGE/builtins_gen.pir
./parrot -o runtime/parrot/library/PGE.pbc compilers/pge/PGE.pir
./parrot runtime/parrot/library/PGE/Perl6Grammar.pir
--output=compilers/pge/PGE/builtins_gen.pir
compilers/pge/PGE/builtins.pg
make: *** [runtime/parrot/library/PGE.pbc] Segmentation fault
make: *** Deleting file `runtime/parrot/library/PGE.pbc'
Finished
}}}
(Of course, the build failure may have been due to the inappropriateness
of those command-line options for my box.)
So, would the proper course of action be to require that `sizeof(INTVAL)
== sizeof(void *)`?
Thank you very much.
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1046#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets