Port-amiga archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Interesting perl compilation problem



Hi,

I think this is just strange, so I figured I'd put it out there. When trying to compile pkgsrc/lang/perl5 on various m68k machines, I'm getting different results. On an m68040 mac68k machine and on one m68060 Amiga, I'm seeing success (in spite of warnings):

`sh  cflags "optimize='-O2 -O2 -m68040 -pthread -I/usr/include'" toke.o` -DPIC 
-fPIC toke.c
CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -I/usr/local/include -std=c89 -O2 -O2 -m68040 -pthread -I/usr/include -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
{standard input}: Assembler messages:
{standard input}:27331: Warning: .word .L4086-.L4112+0 didn't fit
{standard input}:27331: Warning: .word .L4087-.L4112+0 didn't fit
{standard input}:27331: Warning: .word .L4086-.L4112+0 didn't fit
{standard input}:27331: Warning: .word .L4087-.L4112+0 didn't fit

or

`sh  cflags "optimize='-O2 -pthread -I/usr/include'" toke.o` -DPIC -fPIC toke.c
CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -I/usr/local/include -std=c89 -O2 -pthread -I/usr/include -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
{standard input}: Assembler messages:
{standard input}:27302: Warning: .word .L4086-.L4112+0 didn't fit
{standard input}:27302: Warning: .word .L4087-.L4112+0 didn't fit
{standard input}:27302: Warning: .word .L4086-.L4112+0 didn't fit
{standard input}:27302: Warning: .word .L4087-.L4112+0 didn't fit


On another m68060 Amiga, it failed:

`sh cflags "optimize='-O2 -O2 -m68060 -pthread -I/usr/include'" toke.o` -DPIC -fPIC toke.c CCCMD = cc -DPERL_CORE -c -fno-strict-aliasing -pipe -I/usr/local/include -std=c89 -O2 -O2 -m68060 -pthread -I/usr/include -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat
toke.c: In function 'Perl_yylex':
toke.c:6909: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
*** Error code 1

However, for toke.o, if I drop the optimization level down to -O, it compiles. It doesn't compile with -O2 even if I unlimit, but it compiles without unlimiting on the mac68k machine and the other Amiga.

All three systems are running NetBSD 5 from a few days ago. The Amiga which succeeds has 128 megs of memory (Amiga 4000 with Cyberstorm), and the Amiga which fails is an Amiga 1200 with 256 megs (Blizzard 1260).

Interesting, huh?

John


Home | Main Index | Thread Index | Old Index