From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 19 23:47:32 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BD315CB for ; Wed, 19 Nov 2014 23:47:32 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00AC09DE for ; Wed, 19 Nov 2014 23:47:31 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XrEy9-000DSn-S7; Wed, 19 Nov 2014 23:47:30 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sAJNlS32009425; Wed, 19 Nov 2014 16:47:28 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18ZrZtMsAkOQ9T0q75o8yKu X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Running 8 building 10 part2: ctfmerge hangs From: Ian Lepore To: Dieter BSD In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Wed, 19 Nov 2014 16:47:28 -0700 Message-ID: <1416440848.1147.156.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 23:47:32 -0000 On Wed, 2014-11-19 at 15:11 -0800, Dieter BSD wrote: > amd64 running 8.2 > Attempting to build 10.1 kernel in chroot > I copied 8.2's /bin/sh to the chroot to avoid F_DUPFD_CLOEXEC problem. > cd /usr/src [ in chroot ] > nice -20 make buildkernel KERNCONF=GENERIC >> $LOGFILE 2>&1 > > It grinds away awhile, then ctfmerge hangs. > > End of logfile: > ctfconvert -L VERSION -g vers.o > linking kernel.debug > ctfmerge -L VERSION -g -o kernel.debug locore.o [ ...] hack.So vers.o > > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > root 10007 0.0 0.1 23224 4580 10 IN+ 11:25AM 0:00.07 [ctfmerge] > > -rwxr-xr-x 1 root wheel 117461957 Nov 19 11:25 kernel.debug > > It is now 12:12pm. > > The machine is otherwise idle. > > Copied the 8.2 ctfmerge to the chroot, added -v and removed most of > the arguments, and it still hangs. > > cd /usr/obj/usr/src/sys/GENERIC > VERSION="FreeBSD 10.1-RELEASE amd64 1001000" > /tmp/ctfmerge -v -L VERSION -o kernel.debug.verbose cam.o > > Added a bunch of debugging printfs to ctfmerge.c, but trapped in > header file hell trying to get it to compile. There may be no path to success from 8.2. I have a vague memory that a colleague at work starting running into problems like this (ctfmerge was one of them I think), and we played with things for a few hours (WITHOUT_CTF in make.conf only got us on to a new problem). Eventually we gave up and updated his machine to 8.4. That was for building 11-current but it may apply to 10 as well. -- Ian