NetBSD Problem Report #52202

From  Sat Apr 29 14:44:19 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 79AA97A217
	for <>; Sat, 29 Apr 2017 14:44:19 +0000 (UTC)
Message-Id: <>
Date: Sat, 29 Apr 2017 14:44:17 +0000 (UTC)
Subject: Autoconf fails build, sed can't find maybe not generated
X-Send-Pr-Version: www-1.0

>Number:         52202
>Category:       pkg
>Synopsis:       Autoconf fails build, sed can't find maybe not generated
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 29 14:45:00 +0000 2017
>Last-Modified:  Sun Apr 30 13:25:00 +0000 2017
>Originator:     Jonn Fox
>Release:        PKGSRC-2017Q1
NetBSD h4r6 7.1 NetBSD 7.1 (ODROID-C1.201703111743Z) evbarm
===> Configuring for autoconf-2.69nb7
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking build system type... armv7--netbsdelf-eabihf
checking host system type... armv7--netbsdelf-eabihf
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... h4r6
configure: autobuild timestamp... 20730727T180328Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/pkgsrc/devel/autoconf/work/.tools/bin/expr
checking for GNU M4 that supports accurate traces... /usr/pkg/bin/gm4
checking whether /usr/pkg/bin/gm4 accepts --gnu... yes
checking how m4 supports trace files... --debugfile
checking for perl... /usr/pkg/bin/perl
checking whether /usr/pkg/bin/perl Fcntl::flock is implemented... yes
checking for emacs... (cached) no
checking for emacs... no
checking where .elc files should go... no
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for a sed that does not truncate output... /usr/bin/sed
checking whether make is case sensitive... yes
configure: creating ./config.status
config.status: creating tests/Makefile
config.status: creating tests/atlocal
config.status: creating man/Makefile
config.status: creating lib/emacs/Makefile
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating lib/Autom4te/Makefile
config.status: creating lib/autoscan/Makefile
config.status: creating lib/m4sugar/Makefile
config.status: creating lib/autoconf/Makefile
config.status: creating lib/autotest/Makefile
config.status: creating bin/Makefile
config.status: executing tests/atconfig commands
===> Building for autoconf-2.69nb7
/usr/bin/make  all-recursive
Making all in bin
rm -f autom4te autom4te.tmp
srcdir='';  test -f ./ || srcdir=./;  sed  -e 's|@SHELL[@]|/bin/sh|g'  -e 's|@PERL[@]|/usr/pkg/bin/perl|g'  -e 's|@PERL_FLOCK[@]|yes|g'  -e 's|@bindir[@]|/usr/pkg/bin|g'  -e 's|@pkgdatadir[@]|/usr/pkg/share/autoconf|g'  -e 's|@prefix[@]|/usr/pkg|g'  -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g'  -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g'  -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g'  -e 's|@M4[@]|/usr/pkg/bin/gm4|g'  -e 's|@M4_DEBUGFILE[@]|--debugfile|g'  -e 's|@M4_GNU[@]|--gnu|g'  -e 's|@AWK[@]|/usr/bin/awk|g'  -e 's|@RELEASE_YEAR[@]|'`sed 's/^\([0-9][0-9][0-9][0-9]\).*/\1/;q' ../ChangeLog`'|g'  -e 's|@VERSION[@]|2.69|g'  -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g'  -e 's|@configure_input[@]|Generated from; do not edit by hand.|g' ${srcdir} >autom4te.tmp
chmod +x autom4te.tmp
chmod a-w autom4te.tmp
mv autom4te.tmp autom4te
cd ../lib && /usr/bin/make  autom4te.cfg
rm -f autom4te.cfg autom4te.tmp
sed  -e 's|@SHELL[@]|/bin/sh|g'  -e 's|@PERL[@]|/usr/pkg/bin/perl|g'  -e 's|@bindir[@]|/usr/pkg/bin|g'  -e 's|@pkgdatadir[@]|/usr/pkg/share/autoconf|g'  -e 's|@prefix[@]|/usr/pkg|g'  -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g'  -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g'  -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g'  -e 's|@M4[@]|/usr/pkg/bin/gm4|g'  -e 's|@AWK[@]|/usr/bin/awk|g'  -e 's|@VERSION[@]|2.69|g'  -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g' ./ >autom4te.tmp
chmod a-w autom4te.tmp
mv autom4te.tmp autom4te.cfg
cd ../lib/m4sugar && /usr/bin/make  version.m4
:;{  echo '# This file is part of -*- Autoconf -*-.' &&  echo '# Version of Autoconf.' &&  echo '# Copyright (C) 1999, 2000, 2001, 2002, 2006, 2007, 2009' &&  echo '# Free Software Foundation, Inc.' &&  echo  && echo 'm4_define([m4_PACKAGE_NAME],      [GNU Autoconf])' &&  echo 'm4_define([m4_PACKAGE_TARNAME],   [autoconf])' &&  echo 'm4_define([m4_PACKAGE_VERSION],   [2.69])' &&  echo 'm4_define([m4_PACKAGE_STRING],    [GNU Autoconf 2.69])' &&  echo 'm4_define([m4_PACKAGE_BUGREPORT], [])' &&  echo 'm4_define([m4_PACKAGE_URL],       [])' &&  echo 'm4_define([m4_PACKAGE_YEAR],      ['`sed 's/^\([0-9][0-9][0-9][0-9]\).*/\1/;q' ../../ChangeLog`'])';  } > version.m4-t
mv version.m4-t version.m4
autom4te_perllibdir='..'/lib                                     AUTOM4TE_CFG='../lib/autom4te.cfg'         ../bin/autom4te      -B '..'/lib -B '..'/lib --language M4sh --cache '' --melt ./ -o
rm -f autoconf autoconf.tmp
srcdir='';  test -f ./ || srcdir=./;  sed  -e 's|@SHELL[@]|/bin/sh|g'  -e 's|@PERL[@]|/usr/pkg/bin/perl|g'  -e 's|@PERL_FLOCK[@]|yes|g'  -e 's|@bindir[@]|/usr/pkg/bin|g'  -e 's|@pkgdatadir[@]|/usr/pkg/share/autoconf|g'  -e 's|@prefix[@]|/usr/pkg|g'  -e 's|@autoconf-name[@]|'`echo autoconf | sed 's,x,x,'`'|g'  -e 's|@autoheader-name[@]|'`echo autoheader | sed 's,x,x,'`'|g'  -e 's|@autom4te-name[@]|'`echo autom4te | sed 's,x,x,'`'|g'  -e 's|@M4[@]|/usr/pkg/bin/gm4|g'  -e 's|@M4_DEBUGFILE[@]|--debugfile|g'  -e 's|@M4_GNU[@]|--gnu|g'  -e 's|@AWK[@]|/usr/bin/awk|g'  -e 's|@RELEASE_YEAR[@]|'`sed 's/^\([0-9][0-9][0-9][0-9]\).*/\1/;q' ../ChangeLog`'|g'  -e 's|@VERSION[@]|2.69|g'  -e 's|@PACKAGE_NAME[@]|GNU Autoconf|g'  -e 's|@configure_input[@]|Generated from; do not edit by hand.|g' ${srcdir} >autoconf.tmp
sed: ./ No such file or directory
*** Error code 1

make[2]: stopped in /usr/pkgsrc/devel/autoconf/work/autoconf-2.69/bin
*** Error code 1

make[1]: stopped in /usr/pkgsrc/devel/autoconf/work/autoconf-2.69
*** Error code 1

make: stopped in /usr/pkgsrc/devel/autoconf/work/autoconf-2.69
*** Error code 1

make[1]: stopped in /usr/pkgsrc/devel/autoconf
*** Error code 1

make: stopped in /usr/pkgsrc/devel/autoconf
Nothing special required. Build autoconf native on Odroid-C1+.
Originally thought the problem was the SDcard. The problem persists over NFS. I ensured that the board has propper voltage. However, I can not tell if there is an issue with the board beyond the obvious means.
The immediate fix is to use a prebuilt autoconf package. I don't know why there is a problem building on the native machine.

The BananaPi build of autoconf completes fine. Since the problem doesn't exsist on the BananaPi, I am lead to believe that it is possible my board is faulty. I have no one to check this with. The board seems to run other systems fine (binary package builds). 

I am trying the binary for autoconf from If the issue is not a fault in the board I have, then it would seem to be an issue in the difference between a cross compile and native build. Since the cross build package for autoconf pkgsrc-2017Q1 (7.1) does exsist.

I can't imagine how being detected as "armv7--netbsdelf-eabihf" could cause not to be generated. Everything else seems to be building fine with that designation. If this is a package source issue, then it must be a very small issue. But autoconf is pretty important.

If it can be confirmed that the issue must somehow be related to my manifacture of this board (Odroid C1+), it would be nice if someone could pass that along. That way I know that other bugs (if any found) are irrelevant to report. If the case is that of a simple pkgsrc fix, I wouldn't mind knowing that either (how).

For what it is worth, Thanks



Responsible-Changed-From-To: port-evbarm-maintainer->pkg-manager
Responsible-Changed-When: Sun, 30 Apr 2017 10:13:21 +0000
Over to the pkgsrc folks, more likely to get resolved there

From: Joerg Sonnenberger <>
Subject: Re: port-evbarm/52202: Autoconf fails build, sed can't find maybe not generated
Date: Sun, 30 Apr 2017 15:20:14 +0200

 On Sat, Apr 29, 2017 at 02:45:00PM +0000, wrote:
 > >Synopsis:       Autoconf fails build, sed can't find maybe not generated

 Have you made sure that the system time is correct?



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.