NetBSD Problem Report #44106

From www@NetBSD.org  Wed Nov 17 15:40:07 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id BA2B363BCA1
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 Nov 2010 15:40:07 +0000 (UTC)
Message-Id: <20101117154007.95B2363BADB@www.NetBSD.org>
Date: Wed, 17 Nov 2010 15:40:07 +0000 (UTC)
From: bughunting@xs4all.nl
Reply-To: bughunting@xs4all.nl
To: gnats-bugs@NetBSD.org
Subject: Failed build in src/rescue on NetBSD 5.0.2 and 5.1_RC4 (but probably more)
X-Send-Pr-Version: www-1.0

>Number:         44106
>Category:       bin
>Synopsis:       Failed build in src/rescue on NetBSD 5.0.2 and 5.1_RC4 (but probably more)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 17 15:45:00 +0000 2010
>Closed-Date:    Sun Oct 02 19:41:24 +0000 2016
>Last-Modified:  Sun Oct 02 19:41:24 +0000 2016
>Originator:     Bug Hunting
>Release:        NetBSD 5.0.2 / NetBSD 5.1_RC4
>Organization:
>Environment:
>Description:
Executing
   "cd /usr/src/rescue; make USETOOLS=no cleandir dependall"
in NetBSD 5.0.2 (with a netbsd-5-0-2-RELEASE source checkout) and
NetBSD 5.1_RC4 (with a netbsd-5-1-RC4 source checkout) fails.
I suppose this is the case with other source trees as well, but these
were the ones I've checked.

I initially encountered this issue as part of applying
NetBSD-SA2010-007 (at the time of writing at version
1.5 2010/10/07 17:16:37), therefore _failing_ to apply it.  The
issue also occurs with `clean' netbsd-5-0-2-RELEASE and netbsd-5-1-RC4
source checkouts (which means not executing the (other)
cvs(1)- and make(1)-commands in the SA's instructions) though,
which would mean the SA is not actually involved in the failure.

Even is this is already fixed in (the upcoming) NetBSD 5.1
release (which i doubt) and / or NetBSD-current, this needs to be
fixed in previous, supported releases since it should be possible
to correctly apply SAs to them.
>How-To-Repeat:
Install NetBSD 5.0.2 (or NetBSD 5.1_RC4), check out the sources
from the netbsd-5-0-2-RELEASE (or netbsd-5-1-RC4) branch, then, as
root, execute:

# cd /usr/src/rescue; make USETOOLS=no cleandir dependall


It at some point fails with (formatting might get lost):

---
[LINES OF OUTPUT CUT]
mkdir ldd
( cd ldd; printf '.PATH: /usr/src/usr.bin/ldd\n.CURDIR:= /usr/src/usr.bin/ldd\n.include "${.CURDIR}/Makefile"\n' | make -f- CRUNCHEDPROG=1 DBG="-Os" depend )
#    create  ldd/ldd.d
mkdep -f ldd.d --      -I/usr/src/libexec/ld.elf_so -DLIBDIR=\"/usr/lib\" -D_RTLD_SOURCE  -DRESCUEDIR=\"/rescue\"   -DELFSIZE=32 /usr/src/usr.bin/ldd/ldd.c
#    create  ldd/.depend
rm -f .depend
mkdep -d -f .depend -s .o\ .ln ldd.d
depend ===> aout
depend ===> elf32
depend ===> elf64
( cd ldd; printf '.PATH: /usr/src/usr.bin/ldd\n.CURDIR:= /usr/src/usr.bin/ldd\n.include "${.CURDIR}/Makefile"\n' | make -f- CRUNCHEDPROG=1 DBG="-Os" ldd.ro )
#   compile  ldd/ldd.o
cc -Os  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings  -Werror   -I/usr/src/libexec/ld.elf_so -DLIBDIR=\"/usr/lib\" -D_RTLD_SOURCE  -DRES
CUEDIR=\"/rescue\"   -c   -DELFSIZE=32 /usr/src/usr.bin/ldd/ldd.c
make: don't know how to make /usr/src/usr.bin/ldd/aout/libldd_aout.a. Stop

make: stopped in /usr/src/rescue/ldd
*** Error code 2

Stop.
make: stopped in /usr/src/rescue
*** Error code 1

Stop.
make: stopped in /usr/src/rescue
*** Error code 1

Stop.
make: stopped in /usr/src/rescue
---


(The output above is from a NetBSD 5.0.2 system.)
>Fix:
Fix sources; apply on respective branches; make the SA apply cleanly.

>Release-Note:

>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: re: bin/44106: Failed build in src/rescue on NetBSD 5.0.2 and 5.1_RC4 (but probably more)
Date: Thu, 18 Nov 2010 16:16:03 +1100

 > #    create  ldd/.depend
 > rm -f .depend
 > mkdep -d -f .depend -s .o\ .ln ldd.d
 > depend ===> aout
 > depend ===> elf32
 > depend ===> elf64
 > ( cd ldd; printf '.PATH: /usr/src/usr.bin/ldd\n.CURDIR:= /usr/src/usr.bin/ldd\n.include "${.CURDIR}/Makefile"\n' | make -f- CRUNCHEDPROG=1 DBG="-Os" ldd.ro )
 > #   compile  ldd/ldd.o
 > cc -Os  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings  -Werror   -I/usr/src/libexec/
 ld.elf_so -DLIBDIR=\"/usr/lib\" -D_RTLD_SOURCE  -DRES
 > CUEDIR=\"/rescue\"   -c   -DELFSIZE=32 /usr/src/usr.bin/ldd/ldd.c
 > make: don't know how to make /usr/src/usr.bin/ldd/aout/libldd_aout.a. Stop

 try cleaning out the build dir for rescue?

 this looks like a dependancy issue with deleted files.


 .mrg.

State-Changed-From-To: open->feedback
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Tue, 03 May 2016 13:31:34 +0000
State-Changed-Why:
a question was asked


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 02 Oct 2016 19:41:24 +0000
State-Changed-Why:
Feedback timeout, likely local problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.