From owner-freebsd-arm@freebsd.org Sat Jan 16 23:04:14 2021 Return-Path: Delivered-To: freebsd-arm@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 C8C5B4EE4FF for ; Sat, 16 Jan 2021 23:04:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.gq1.yahoo.com (sonic305-21.consmr.mail.gq1.yahoo.com [98.137.64.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DJDBj3x6tz3FYj for ; Sat, 16 Jan 2021 23:04:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1610838251; bh=hHZ5CinCtaShIyM6hI7BfI6/RQaEGbZg3kkiVWTsKqo=; h=Subject:From:Date:To:From:Subject:Reply-To; b=mE8gLFLTnSFK6DlqrDOtziUMQJmy+bCUGyolYrSQZ8OlAIJWNSmNXTtkpp0KL7kDUlsAsWsCS2QrVU/J9GEDCLoFPbPXgfrSqJMvZpcrM/SR6GSsov4qhSKn0osHBkzOkvoeCy/WuB+5apOJPSCD22OdeYvog7NCYDnvlHzijxcHm9YyC/LBHKG5uttzRJsVT1cVIPDQwFJ0mqvQ8LRBF5Vfsoc3HqFkgrQoqORrLfU4hUjUKEgHg8J+boL4O1lEAVS/IvQnMFDZVRNtNHxd7+5pkSvR0gRaAEYnpfxjVIFJ4AdDHt/QitSAwEMU/Ool4iTI3W70INdrlRkxOal36A== X-YMail-OSG: u9ifeasVM1kxDLYq.tqFHmzYefQPsN9JhC3XMFX9VFFTPmhfq9DlXLpE4Deh3ii 7v52JFpWLddFLTBVMTwesadCf259pCziVWh6.yz0ruhznztDwcp03mTm9b5QixhTfLlGdk7D7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0wZB9Kl.b0mKgg.2r9Hcq1Xgsv9.XBZjPj.eotVnoIOe8mZ4_iz3ioVxRMH4JUJd8fgfX X1NjJy2hBrP223wZgv2n7jtIZqCbjk1nGLsq2BrqDOXgqsRQ01wHCn95p_cBZq9M3CHJBhcCUXUL g.dM.qpCyOavlB7ntz_6VNi9fonZPc0rb8kf5v8SG8R_OUPakv7oroq8gSCipW4O6r7lwhDLnvSR lV4TyGH_N.V_RPZKwDkdJ5sBGliBuYZf6dby6kTOBOGah9vTB5CLjFOG3MhuMZac9mISgao0b4Ng ncExHjJDkOI4doKUtMFJaDuz9GqCKaIldyWHaFDzqohHdvHmuPvLXubt1e3iYLhaWzhfhfz6wFcU Zoa7LtpB43u3w Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Sat, 16 Jan 2021 23:04:11 +0000 Received: by smtp413.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 1ed56a052300f92045faf73230058b70; Sat, 16 Jan 2021 23:04:07 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: Invoking -v for clang during buildworld From: Mark Millard In-Reply-To: <20210116220334.GA26756@www.zefox.net> Date: Sat, 16 Jan 2021 15:04:04 -0800 Cc: Current FreeBSD , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210116043740.GA19523@www.zefox.net> <20210116155538.GA24259@www.zefox.net> <20210116220334.GA26756@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Rspamd-Queue-Id: 4DJDBj3x6tz3FYj X-Spamd-Bar: - X-Spamd-Result: default: False [-1.50 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.64.84:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.64.84:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.84:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.84:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2021 23:04:14 -0000 On 2021-Jan-16, at 14:03, bob prohaska wrote: > On Sat, Jan 16, 2021 at 11:17:52AM -0800, Mark Millard wrote: >>=20 >>=20 >> On 2021-Jan-16, at 07:55, bob prohaska wrote: >>=20 >>> On Fri, Jan 15, 2021 at 09:25:00PM -0800, Mark Millard wrote: >>>>=20 >>>> On 2021-Jan-15, at 20:37, bob prohaska = wrote: >>>>=20 >>>>> While playing with -current on armv7 using a raspberry pi 2 v1.1=20= >>>>> an error crops up with recent kernels while building world: >>>>>=20 >>>>> ++: error: linker command failed with exit code 1 (use -v to see = invocation) >>>>> *** [clang.full] Error code 1 >>>>>=20 >>>>> make[5]: stopped in /usr/freebsd-src/usr.bin/clang/clang >>>>>=20 >>>>> How does one invoke -v in this situation? >>>>=20 >>>> Going a different direction: Going to publish the build log >>>> someplace? There is likely more there of interest to isolating >>>> the issue(s). >>>>=20 >>> I've put what I hope is a useful picture at >>> http://www.zefox.net/~fbsd/rpi2/buildworld/ >>=20 >> Looks to me like your -DNO_CLEAN based build is reusing one or >> more files with inappropriate/incomplete contents that need to >> be regenerated: there are a number of undefined symbols stopping >> the linker during its attempt to build the "usr.bin/clang/clang >> (all)" material. See below. >>=20 > [examples snipped] >>=20 >> FYI: >>=20 >> I found this by noting the "all_subdir_usr.bin" below and >> searching backwards for prior examples and seeing what was >> after those examples. >>=20 >> --- all_subdir_usr.bin --- >> c++: error: linker command failed with exit code 1 (use -v to see = invocation) >> *** [clang.full] Error code 1 >>=20 >>=20 >=20 > It never dawned that I wasn't looking at the first error message. Other than -j1 style builds (or equivalent), one pretty much always needs to go looking around for a non-panic failure. It is uncommon for all the material to be together in the build log in such contexts. >>=20 >> The undefined symbols seem unlikely to be a voltage problem. >>=20 >> The zeros are from the units for the integers not being volts >> but micro volts. (Which is not the same as saying measurements >> reach that scale of accuracy.) >>=20 >=20 > So long as they're measured values they might be worth keeping track = of. > I thought maybe they were some sort of input or placeholder values. I do not know what FreeBSD does with the values. But the RPi firmware may be still doing something despite FreeBSD being what was booted. (I've no clue if such is the case.) >>>> I use META_MODE builds. One thing they do is record the >>>> command used to try to produce each file. So in that kind >>>> of context, identifying what it was trying to build allows >>>> finding the related NAME.meta file and looking in it. >>>>=20 >=20 > Not needed now, but worth remembering for the future. META_MODE also notices more causes of needing to rebuild something. It actually compares the old command to the new one to notice differences. It also has information to compare about files opened during the prior build of the file, more than make tracks on its own. (Such is based on filemon.ko being loaded and then in use.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)