Date: Sat, 16 Jan 2021 15:04:04 -0800 From: Mark Millard <marklmi@yahoo.com> To: bob prohaska <fbsd@www.zefox.net> Cc: Current FreeBSD <freebsd-current@freebsd.org>, freebsd-arm@freebsd.org Subject: Re: Invoking -v for clang during buildworld Message-ID: <C75D3D9C-4284-4BE3-B2CD-5DC6BBB60843@yahoo.com> In-Reply-To: <20210116220334.GA26756@www.zefox.net> References: <20210116043740.GA19523@www.zefox.net> <ED26508F-282D-439D-8A6A-65A136C76C84@yahoo.com> <20210116155538.GA24259@www.zefox.net> <F62027C8-0813-4E6F-934A-3088F966AF8C@yahoo.com> <20210116220334.GA26756@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Jan-16, at 14:03, bob prohaska <fbsd at www.zefox.net> 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 <fbsd at www.zefox.net> 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 <fbsd at www.zefox.net> = 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C75D3D9C-4284-4BE3-B2CD-5DC6BBB60843>