From owner-svn-src-all@freebsd.org Thu Oct 17 19:05:55 2019 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 29E2815B5B1; Thu, 17 Oct 2019 19:05:55 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vJXg0ClPz4bP0; Thu, 17 Oct 2019 19:05:54 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oi1-f178.google.com with SMTP id a15so3143287oic.0; Thu, 17 Oct 2019 12:05:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xSFHWSaQQDqzLfmEeVLgMnOLiUTtk4rBV/37YdDyxXM=; b=f42evAp3vwQENV/FcSe24B1UQkaspFCenbSK4HhRIhMa80kZeUoXMOx18sLXm82ZDu iy33iKzJeMdjReSU9H0ItV5H2L6c4nG21HjJujMNd3EEnbXhA1WkmZ4lFwlQ1c9Mq844 K++UT6JaaLKwt9fkjgQypBE6CEl0PtR/5DkMO3Y1xVxDUZxEztx2WDaEQ/u7zhIMqnD8 O4GkItQxLBWMuWsMYD/YwStQYTu2Klyka9b2T76QoWnRp4uDp3LfGMfsePHxvClaDpX4 KPgakZHvW4AsJ13xrUQ9OxKCddTwIspmjdAuDPdFwCKo7HKtKKq0uwXOtuE4WUn70BrF +rSg== X-Gm-Message-State: APjAAAV/AR3+jeeT4qAVHDrVJkUOcRbDZMrR881nyZhiH9rLiXwm6wm6 acabg/wjUjdd+/cUY8oP1I9iN9LXKbFXWWk1BrZv5HPhmLc= X-Google-Smtp-Source: APXvYqwS+jeBsVnhZTtg/D+6Ca+U3yM5taZPUvQbQCGVyWx0O9fk/x2Y7t3mckLdhBOZVJV/jgeSgpgrUfXDQYZrhFY= X-Received: by 2002:aca:4302:: with SMTP id q2mr4355304oia.173.1571339153624; Thu, 17 Oct 2019 12:05:53 -0700 (PDT) MIME-Version: 1.0 References: <201909301728.x8UHS0QF070658@repo.freebsd.org> <20191017174801.GA6447@raichu> In-Reply-To: From: Alan Somers Date: Thu, 17 Oct 2019 13:05:42 -0600 Message-ID: Subject: Re: svn commit: r352909 - in head: contrib/elftoolchain/nm usr.bin/nm To: Ian Lepore Cc: Mark Johnston , src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 46vJXg0ClPz4bP0 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2019 19:05:55 -0000 On Thu, Oct 17, 2019 at 12:48 PM Ian Lepore wrote: > On Thu, 2019-10-17 at 12:17 -0600, Alan Somers wrote: > > There might be something wrong with my environment: > > /usr/include/libcasper.h is absent. But still, shouldn't the build > > be > > using the version from the source tree, instead of from the > > environment? > > -Alan > > > > There should be copies of libcasper.h in your objdir: > > obj/arm.armv7/tmp/legacy/usr/include/libcasper.h > obj/arm.armv7/tmp/usr/include/libcasper.h > > -- Ian Uh, I found the problem. I had WITHOUT_CASPER=1 in /etc/src.conf. So the problem is that nm can't build without casper. Perhaps the #include should be guarded, as it is in usr.bin/kdump/kdump.c. But plenty of other programs, like usr.bin/tail and usr.bin/wc, don't have such guards. And looking at lib/libcasper/libcasper/Makefile, it seems as though libcasper.h should be installed regardless. So I still need to figure out why it wasn't installed on my system. -Alan