pkgsrc-Bugs archive

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

pkg/49598: perl5 build failures on powerpc 601



>Number:         49598
>Category:       pkg
>Synopsis:       perl5 build failures on powerpc 601
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 22 14:50:00 +0000 2015
>Originator:     scole_mail
>Release:        pkgsrc current around Jan 19 2015
>Organization:
>Environment:
NetBSD pm7200 7.99.4 NetBSD 7.99.4 (GENERIC-$Revision: 1.7 $) #25: Mon Jan 12 09:48:55 EST 2015  scole@dstar:/home/scole/nbsd/src/sys/arch/macppc/compile/obj/GENERIC_601 macppc
>Description:
Building perl-5.20.1 has build errors, first is with the macro __GNUC_PREREQ__

../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.so
Generating a Unix-style Makefile
Writing Makefile for Errno
Making all in ext/Errno
/mnt/disk1/package/bin/bmake all PERL_CORE=1 LIBPERL_A=libperl.so
../../miniperl "-I../../lib" "-I../../lib" Errno_pm.PL Errno.pm
/usr/include/sys/cdefs_elf.h:67:20: error: missing binary operator before token "("
 #if __GNUC_PREREQ__(4, 0)

second is about mallocwrap:
Running Makefile.PL in cpan/Term-Cap
../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.so
panic: memory wrap at /mnt/disk1/pkgsrc/lang/perl5/work/perl-5.20.1/lib/Config_heavy.pl line 1283.
Compilation failed in require at /mnt/disk1/pkgsrc/lang/perl5/work/perl-5.20.1/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 9.
BEGIN failed--compilation aborted at /mnt/disk1/pkgsrc/lang/perl5/work/perl-5.20.1/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm line 9.
Compilation failed in require at Makefile.PL line 7.
BEGIN failed--compilation aborted at Makefile.PL line 7.
65280 from cpan/Term-Cap's Makefile.PL at make_ext.pl line 508.
Warning: No Makefile!
bmake: don't know how to make config. Stop

The first error doesn't stop the compilation, the second does.

>How-To-Repeat:
cd .../pkgsrc/lang/perl5 && bmake install
>Fix:
Not sure about cdefs_elf.h, but changing line 67 from
     #if __GNUC_PREREQ__(4,0)
to
     #if 1
allows the compilation to continue.

For the wrap error, changing perl-5.20.1/hints/netbsd.sh not to use mallocwrap seems to work:
from
     '') usemallocwrap='define' ;;
to
     '') usemallocwrap=n ;;





Home | Main Index | Thread Index | Old Index