pkgsrc-Bugs archive

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

Re: pkg/49598: perl5 build failures on powerpc 601



The following reply was made to PR pkg/49598; it has been noted by GNATS.

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/49598: perl5 build failures on powerpc 601
Date: Sat, 24 Jan 2015 01:09:20 -0600 (CST)

 Building perl on NetBSD/powerpc ports has been a pain for a long time,
 not just on PPC601.  I've wrestled with the "panic: memory wrap" failure
 on G3 and G4 powermacs, even with 2GB real memory and plenty of swap.
 
 So, I've recently gotten my PowerMac G4 (AGP Graphics) online again and
 am updating packages.  Naturally, I run into the memory wrap panic again.
 
 Just for grins, I took a look at "lang/perl5/hacks.mk" and see a powerpc
 hack that's been in place for over 10 years.  It disables all optimization.
 
 I figured I'd try disabling the hack (comment out the BUILDLINK_TRANSFORM
 line) like this:
 
 +Index: lang/perl5/hacks.mk
 +===================================================================
 +RCS file: /cvsroot/pkgsrc/lang/perl5/hacks.mk,v
 +retrieving revision 1.14
 +diff -u -p -r1.14 hacks.mk
 +--- lang/perl5/hacks.mk	15 Dec 2014 11:46:35 -0000	1.14
 ++++ lang/perl5/hacks.mk	24 Jan 2015 07:03:47 -0000
 +@@ -35,7 +35,7 @@ CFLAGS+=	-DDEBUGGING -g -msoft-quad-floa
 + ###
 + .if !empty(CC_VERSION:Mgcc*) && !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
 + PKG_HACKS+=		powerpc-codegen
 +-BUILDLINK_TRANSFORM+=	rm:-O[0-9]*
 ++#BUILDLINK_TRANSFORM+=	rm:-O[0-9]*
 + .endif
 + 
 + ### [Mon May 9 15:35:44 UTC 2005 : jlam]
 
 
 I didn't suffer a single memory wrap panic the whole time.
 
 There was one hang-up, literally.  At one point, 'miniperl' was just
 spinning on the CPU.  I hit ctrl-C and it exited.  I restarted the
 build and it completed.
 
 My perl installation is now updated.
 
 Perhaps try this on your 601-based system?
 
 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645
 


Home | Main Index | Thread Index | Old Index