NetBSD Problem Report #49997

From tsutsui@ceres.dti.ne.jp  Tue Jun 23 17:00:56 2015
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5AFB4A654F
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 23 Jun 2015 17:00:56 +0000 (UTC)
Message-Id: <201506231700.t5NH0nCS027029@mirage.localdomain>
Date: Wed, 24 Jun 2015 02:00:49 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: pkgsrc/lang/perl 5.22.0 build failure on NetBSD/m68k 7.0_RC1
X-Send-Pr-Version: 3.95

>Number:         49997
>Category:       pkg
>Synopsis:       pkgsrc/lang/perl 5.22.0 build failure on NetBSD/m68k 7.0_RC1
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 23 17:05:00 +0000 2015
>Closed-Date:    Sun May 27 04:22:36 +0000 2018
>Last-Modified:  Sun May 27 04:22:36 +0000 2018
>Originator:     Izumi Tsutsui
>Release:        NetBSD 7.0_RC1 + pkgsrc HEAD around 20150620
>Organization:
>Environment:
System: NetBSD lunachild 7.0_RC1 NetBSD 7.0_RC1 (GENERIC.201506190427Z) luna68k
Architecture: m68k
Machine: luna68k
>Description:
make package in pkgsrc/lang/perl fails:
---
rm -f ../../lib/auto/Opcode/Opcode.so
gcc  -shared  -L/usr/pkg/lib -fstack-protector Opcode.o  -o ../../lib/auto/Opcode/Opcode.so              
chmod 755 ../../lib/auto/Opcode/Opcode.so
/usr/obj.luna68k/pkgsrc/lang/perl5/work.m68k/perl-5.22.0/ext/Opcode/../../miniperl "-I../../lib" "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- Opcode.bs ../../lib/auto/Opcode/Opcode.bs 644
LD_LIBRARY_PATH=/usr/obj.luna68k/pkgsrc/lang/perl5/work.m68k/perl\-5.22.0 ./miniperl -Ilib make_ext.pl lib/auto/POSIX/POSIX.so  MAKE="/usr/bin/make" LIBPERL_A=libperl.so LINKTYPE=dynamic
Processing hints file hints/netbsd.pl
Warning (mostly harmless): No library found for -lcposix
Generating a Unix-style Makefile
Writing Makefile for POSIX
Running Mkbootstrap for POSIX ()
chmod 644 "POSIX.bs"
"../../miniperl" "-I../../lib" "-I../../lib" "../../lib/ExtUtils/xsubpp" -noprototypes -typemap "../../lib/ExtUtils/typemap" -typemap "typemap"  POSIX.xs > POSIX.xsc && mv POSIX.xsc POSIX.c
gcc -c    -O2 -fno-reorder-blocks -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -DSTRUCT_TM_HASZONE -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -O2 -fno-reorder-blocks -pthread -I/usr/include    -DVERSION=\"1.53\"  -DXS_VERSION=\"1.53\" -DPIC -fPIC "-I../.."   POSIX.c
In file included from POSIX.xs:38:0:
/usr/include/fenv.h:31:2: error: #error "fenv.h is currently not supported for this architecture"
 #error "fenv.h is currently not supported for this architecture"
  ^
In file included from POSIX.xs:38:0:
/usr/include/fenv.h:38:26: fatal error: machine/fenv.h: No such file or directory
 #include <machine/fenv.h>
                          ^
compilation terminated.
*** Error code 1

Stop.
make[1]: stopped in /usr/obj.luna68k/pkgsrc/lang/perl5/work.m68k/perl-5.22.0/ext/POSIX
gcc -c    -O2 -fno-reorder-blocks -pthread -I/usr/include -fwrapv -fno-strict-aliasing -pipe -fstack-protector -D_FORTIFY_SOURCE=2 -DSTRUCT_TM_HASZONE -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -O2 -fno-reorder-blocks -pthread -I/usr/include    -DVERSION=\"1.53\"  -DXS_VERSION=\"1.53\" -DPIC -fPIC "-I../.."   POSIX.c
In file included from POSIX.xs:38:0:
/usr/include/fenv.h:31:2: error: #error "fenv.h is currently not supported for this architecture"
 #error "fenv.h is currently not supported for this architecture"
  ^
In file included from POSIX.xs:38:0:
/usr/include/fenv.h:38:26: fatal error: machine/fenv.h: No such file or directory
 #include <machine/fenv.h>
                          ^
compilation terminated.
*** Error code 1

Stop.
make[1]: stopped in /usr/obj.luna68k/pkgsrc/lang/perl5/work.m68k/perl-5.22.0/ext/POSIX
Unsuccessful make(ext/POSIX): code=256 at make_ext.pl line 574.
*** Error code 25

Stop.
make: stopped in /usr/obj.luna68k/pkgsrc/lang/perl5/work.m68k/perl-5.22.0
*** Error code 1

Stop.
make[4]: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make[3]: stopped in /usr/pkgsrc/lang/perl5
*** Error code 1

Stop.
make[2]: stopped in /usr/pkgsrc/devel/bison
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/shells/bash
*** Error code 1

Stop.

---

/usr/include/fenv.h in NetBSD 7.0_RC1 has:
---
#if !defined(__aarch64__) && !defined(__arm__) && !defined(__i386__) \
    && !defined(__hppa__) \
    && !defined(__sparc__) && !defined(__x86_64__)
#error  "fenv.h is currently not supported for this architecture"
#endif
---
so I guess alpha, mips, powerpc, sh3 and vax also fail to build perl,
i.e. pkgsrc is almost unusable.


>How-To-Repeat:
cd /usr/pkgsrc/lang/perl && make package

>Fix:
No idea, but "to implement <fenv.h> for all NetBSD MACHINE_ARCH" is
too late because 7.0_RC1 is already out.

---

>Release-Note:

>Audit-Trail:
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49997: pkgsrc/lang/perl 5.22.0 build failure on NetBSD/m68k
 7.0_RC1
Date: Fri, 26 Aug 2016 08:55:35 +0000

 Hi,
 Is this still an issue?

 m68k+FPU seems to have fenv now.
 is this no FPU case?

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49997: pkgsrc/lang/perl 5.22.0 build failure on NetBSD/m68k7.0_RC1
Date: Sat, 27 Aug 2016 11:05:49 +0900

 coypu@ wrote:

 >  m68k+FPU seems to have fenv now.

 Even in netbsd-7 branches?

 ---
 Izumi Tsutsui

From: coypu@SDF.ORG
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/49997: pkgsrc/lang/perl 5.22.0 build failure on
 NetBSD/m68k7.0_RC1
Date: Sat, 27 Aug 2016 02:15:34 +0000

 On Sat, Aug 27, 2016 at 02:10:01AM +0000, Izumi Tsutsui wrote:
 > The following reply was made to PR pkg/49997; it has been noted by GNATS.
 > 
 > From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
 > To: gnats-bugs@NetBSD.org
 > Cc: tsutsui@ceres.dti.ne.jp
 > Subject: Re: pkg/49997: pkgsrc/lang/perl 5.22.0 build failure on NetBSD/m68k7.0_RC1
 > Date: Sat, 27 Aug 2016 11:05:49 +0900
 > 
 >  coypu@ wrote:
 >  
 >  >  m68k+FPU seems to have fenv now.
 >  
 >  Even in netbsd-7 branches?
 >  
 >  ---
 >  Izumi Tsutsui
 >  

 It seems that it's only in -current.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/49997: pkgsrc/lang/perl 5.22.0 build failure onNetBSD/m68k7.0_RC1
Date: Sat, 27 Aug 2016 12:39:46 +0900

 This PR is for pkg not port-m68k, and I already wrote in the original PR:
 > >Fix:
 > No idea, but "to implement <fenv.h> for all NetBSD MACHINE_ARCH" is
 > too late because 7.0_RC1 is already out.

 If fenv is mandatory for perl 5.22.0 and later, close this as invalid.
 If perl can be built on poor systems which don't have fenv(3)
 (but have <fenv.h> header), it would be better.

 ---
 Izumi Tsutsui

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sun, 27 May 2018 04:22:36 +0000
State-Changed-Why:
IIRC pkgsrc-2017Q1 pkgsrc/lang/perl5 built on NetBSD/luna68k 7.1.2.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.