NetBSD Problem Report #47103
From ryo_on@yk.rim.or.jp Mon Oct 22 07:28:57 2012
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 2F72363CA81
for <gnats-bugs@gnats.netbsd.org>; Mon, 22 Oct 2012 07:28:57 +0000 (UTC)
Message-Id: <20121022072857.2F72363CA81@www.NetBSD.org>
Date: Mon, 22 Oct 2012 07:28:57 +0000 (UTC)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: devel/libffi build fails on OpenIndiana 151a7 and SmartOS 20121018
X-Send-Pr-Version: 3.95
>Number: 47103
>Category: pkg
>Synopsis: devel/libffi build fails on OpenIndiana 151a7 and SmartOS 20121018
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 22 07:30:01 +0000 2012
>Last-Modified: Sat Oct 27 17:20:04 +0000 2012
>Originator: Ryo ONODERA
>Release: pkgsrc-current
>Organization:
>Environment:
System:
OpenIndiana/i386 151a7
SmartOS/amd64 20121018
>Description:
On OpenIndiana 151a7 and SmartOS 20121018, build of pkgsrc/devel/libffi
freezes with the following message.
/bin/ksh: line 1: : cannot execute [Is a directory]
This is from all-all target in libffi's Makefile
And freeze is from next grep command in all-all target.
I cannot find libffi error in recent SmartOS bulk build report.
But it is reproduceable for me.
Full log with PKG_DEBUG_LEVEL=1 on SmartOS is here.
http://www.netbsd.org/~ryoon/121022-libffi-on-SunOS.log
gcc on OpenIndiana is gcc46 from SFE.
gcc on SmartOS is gcc47 installed with pkgin.
>How-To-Repeat:
cd pkgsrc/devel/libffi
bmake
>Fix:
I have no idea.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Mon, 22 Oct 2012 07:43:22 +0000
Responsible-Changed-Why:
Problem on OpenIndiana/SmartOS.
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47103 (devel/libffi build fails on OpenIndiana 151a7 and
SmartOS 20121018)
Date: Sun, 28 Oct 2012 02:17:16 +0900 (JST)
With following patch (patch-aa) works fine on OpenIndiana 151a7
and NetBSD current.
Which environment requires the outer double quotations in BUILD lines of
patches/patch-aa,
; BUILD="$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x" \\\\\\
and
; BUILD="$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x" ; fi \\\\\\
?
Can we remove these "s?
$NetBSD$
--- configure.orig 2012-04-12 03:13:17.000000000 +0000
+++ configure
@@ -13158,7 +13158,7 @@ case "$host" in
TARGET=FRV; TARGETDIR=frv
;;
- hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
+ hppa*-*-linux* | hppa*-*-netbsd* | parisc*-*-linux* | hppa*-*-openbsd*)
TARGET=PA_LINUX; TARGETDIR=pa
;;
hppa*64-*-hpux*)
@@ -13208,7 +13208,7 @@ case "$host" in
mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
TARGET=MIPS; TARGETDIR=mips
;;
- mips*-*-linux* | mips*-*-openbsd*)
+ mips*-*-linux* | mips*-*-netbsd* | mips*-*-openbsd*)
# Support 128-bit long double for NewABI.
HAVE_LONG_DOUBLE='defined(__mips64)'
TARGET=MIPS; TARGETDIR=mips
@@ -13233,7 +13233,7 @@ case "$host" in
powerpc-*-aix* | rs6000-*-aix*)
TARGET=POWERPC_AIX; TARGETDIR=powerpc
;;
- powerpc-*-freebsd* | powerpc-*-openbsd*)
+ powerpc-*-freebsd* | powerpc-*-netbsd* | powerpc-*-openbsd*)
TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
;;
powerpc64-*-freebsd*)
@@ -13247,7 +13247,7 @@ case "$host" in
TARGET=S390; TARGETDIR=s390
;;
- sh-*-* | sh[34]*-*-*)
+ sh-*-* | shle-*-* | sh[34]*-*-*)
TARGET=SH; TARGETDIR=sh
;;
sh64-*-* | sh5*-*-*)
@@ -14402,7 +14402,7 @@ case "$target" in
$as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
;;
- *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
+ *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-netbsd* | *-*-openbsd* | *-pc-solaris*)
$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
@@ -16446,13 +16448,13 @@ s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-a
/-all-all/d
a\\
@ HOST="\$(HOST)\" \\\\\\
- ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
+ ; test ".\$\$HOST" = "." && HOST="$x sh $ax_enable_builddir_auxdir/config.guess $x" \\\\\\
; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
- ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
- ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
+ ; use="$x basename "\$\@" -all $x"; n="$x echo \$\$BUILD | wc -w $x" \\\\\\
+ ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test \$\$n = "0" ; then : \\\\\\
; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
- ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
+ ; test "\$\$use" = "\$\@" && BUILD="$x echo "\$\$BUILD" | tail -1 $x" \\\\\\
; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
/dist-all *:/a\\
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.