Subject: Re: perl on arm problem?
To: Ignatios Souvatzis <is@netbsd.org>
From: Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk>
List: port-arm
Date: 05/06/2005 09:36:20
On Fri, 06 May 2005 08:41:10 +0200, Ignatios Souvatzis wrote:
> Can't build perl on my Shark:
>
> > ... ./miniperl -w -Ilib -MExporter -e '<?>' || /usr/bin/make minitest
> > Attempt to free unreferenced skalar: SV 0x3b5b8, Perl interpreter: 0x2b000.
> > *** Error code 1 (ignored)
> > ..../miniperl -Ilib configpm configpm.tmp
> > [1] Segmentation fault (core dumped) LD_LIBRARY_PATH=...
> > *** Error code 139
>
> thats perl-5.8.6nb3 building on netbsd-2.0.2 /arm
>
> Known problem?
> -is
>
> --
> seal your e-mail: http://www.gnupg.org/
>
Hmm, I thought I'd submitted a PR for this, but I can't find it off-hand.
There's definitely a PR filed for GCC on this, but it's not been processed
yet.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16152
Here's a work-around:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl58/Makefile,v
retrieving revision 1.68.2.2
diff -p -r1.68.2.2 Makefile
*** Makefile 5 Feb 2005 17:22:21 -0000 1.68.2.2
--- Makefile 6 May 2005 08:34:20 -0000
*************** CONFIGURE_ARGS+= -Dprefix="${PREFIX}"
*** 51,57 ****
--- 51,61 ----
CONFIGURE_ARGS+= -Dscriptdir="${PREFIX}/bin"
CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}"
CONFIGURE_ARGS+= -Dcc="${CC}"
+ .if ${MACHINE_ARCH} == arm
+ CONFIGURE_ARGS+= -Doptimize="${CFLAGS} -fno-cse-skip-blocks"
+ .else
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
+ .endif
CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5"
CONFIGURE_ARGS+= -Duseshrplib
CONFIGURE_ARGS+= -Ui_malloc