Subject: pkg/29622: lang/perl58 build failure on hpcarm with no swap
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <nakaji@jp.freebsd.org>
List: pkgsrc-bugs
Date: 03/08/2005 02:12:00
>Number:         29622
>Category:       pkg
>Synopsis:       lang/perl58 build failure on hpcarm with no swap
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 08 02:12:00 +0000 2005
>Originator:     NAKAJI Hiroyuki
>Release:        NetBSD 2.99.16 (current)
>Organization:
>Environment:
NetBSD 2.99.16 (JORNADA728) #0: Fri Mar  4 20:55:23 JST 2005
	root@kature.heimat.gr.jp:/usr/obj/sys/arch/hpcarm/compile.hpcarm/JORNADA728
>Description:
I installed NetBSD-current on my Jornada 728 and now I'm installing some softwares using pkgsrc.

Some packages require lang/perl58 for their dependency but on my Jornada the build of lang/perl58 fails with terrible signal 11.

===> Building for perl-5.8.6nb3
LD_LIBRARY_PATH=/usr/pkgsrc/lang/perl58/work.arm/perl-5.8.6 ./miniperl -Ilib configpm configpm.tmp
[1]   Segmentation fault      LD_LIBRARY_PATH=...
*** Error code 139

Stop.
make: stopped in /usr/pkgsrc/lang/perl58/work.arm/perl-5.8.6
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/perl58

I found miniperl.core and read it with gdb, but I saw only 'signal 11'.

$ sudo gdb ./miniperl miniperl.core 
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "arm--netbsdelf"...(no debugging symbols found)...
Core was generated by `miniperl'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/pkgsrc/lang/perl58/work.arm/perl-5.8.6/libperl.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkgsrc/lang/perl58/work.arm/perl-5.8.6/libperl.so
Reading symbols from /usr/lib/libm.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.0
Reading symbols from /usr/lib/libcrypt.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.0
Reading symbols from /usr/lib/libpthread.so.0...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.12
Cannot access memory at address 0xbfffde1c
Cannot access memory at address 0xbfffde1c
#0  0x01010000 in ?? ()
(gdb) bt
#0  0x01010000 in ?? ()
Cannot access memory at address 0x0
(gdb) 

>How-To-Repeat:
1. Install NetBSD/hpcarm onto Jornada
2. cd /usr/pkgsrc/lang/perl58
3. make install

>Fix:
I need much help.