Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2022 12:16:44 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-current <freebsd-current@freebsd.org>, Mark Johnston <markj@freebsd.org>
Subject:   Re: buildworld fail: ld: error: undefined symbol: test_no_kevents
Message-ID:  <15688335-6503-4120-985A-34A7BF3FBEA7@FreeBSD.org>
In-Reply-To: <172777947.19.1654509576898@localhost>
References:  <172777947.19.1654509576898@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_FC031E41-3ECE-4BFA-9A79-2135E56E7574
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_0C76B5A0-363E-4083-BBA8-EF5CDCA8C939"


--Apple-Mail=_0C76B5A0-363E-4083-BBA8-EF5CDCA8C939
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Looks like it might be using an old version of =
tests/sys/kqueue/libkqueue/common.h, after =
https://cgit.freebsd.org/src/commit/?id=3Dc728c56c870abe230e45cee5c477f0d8=
90ebacef ?

Without seeing how the .o files have been compiled, specifically with =
which -I flags, it is impossible to see what is going wrong, though.

-Dimitry

> On 6 Jun 2022, at 11:59, Ronald Klop <ronald-lists@klop.ws> wrote:
>=20
> Hi,
>=20
> Building on aarch64/14-CURRENT fails with this error on my rpi4.
> It failed on incremental build and tried a clean build today.
>=20
> First failure was on "World build started on Sun May 29 00:25:17 UTC =
2022".
>=20
> This weekend it still fails (I'm building weekly in Jenkins).
> 10:04:44 =3D=3D=3D> tests/sys/kqueue/libkqueue (all)
> 10:04:44 --- kqueue_test ---
> 10:04:44 (cd /usr/src/tests/sys/kqueue/libkqueue &&  =
DEPENDFILE=3D.depend.kqueue_test  NO_SUBDIR=3D1 /usr/bin/make -f =
/usr/src/tests/sys/kqueue/libkqueue/Makefile _RECURSING_PROGS=3Dt  =
PROG=3Dkqueue_test )
> 10:04:44 --- kqueue_test.full ---
> 10:04:44 cc -target aarch64-unknown-freebsd14.0 =
--sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp =
-B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common -fPIE =
-g -gz=3Dzlib -std=3Dgnu99 -Wno-format-zero-length =
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes =
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch =
-Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts =
-Wnested-externs -Wold-style-definition -Wno-pointer-sign =
-Wmissing-variable-declarations -Wthread-safety -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-error=3Dunused-but-set-variable -Qunused-arguments  -pie  -o =
kqueue_test.full main.o read.o timer.o vnode.o proc.o signal.o user.o
> 10:04:44 ld: error: undefined symbol: test_no_kevents
> 10:04:45 >>> referenced by read.c:169 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:169)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced by read.c:75 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:75)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced by read.c:137 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:137)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced 31 more times
> 10:04:45 >>> did you mean: _test_no_kevents
> 10:04:45 >>> defined in: main.o
> 10:04:45
> 10:04:45 ld: error: undefined symbol: kevent_cmp
> 10:04:45 >>> referenced by read.c:72 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:72)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced by read.c:145 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:145)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced by read.c:193 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:193)
> 10:04:45 >>>               read.o:(test_evfilt_read)
> 10:04:45 >>> referenced 14 more times
> 10:04:45 >>> did you mean: _kevent_cmp
> 10:04:45 >>> defined in: main.o
> 10:04:45 cc: error: linker command failed with exit code 1 (use -v to =
see invocation)
> 10:04:45       668.58 real       125.97 user        62.12 sys
> 10:04:45
> 10:04:45 make[1]: stopped in /usr/src
> 10:04:45
> 10:04:45 make: stopped in /usr/src
> 10:04:45 Build step 'Execute shell' marked build as failure
> 10:04:46 Skipped archiving because build is not successful
> 10:04:46 Sending e-mails to: xxxx@yyyy.zzz
> 10:04:47 Finished: FAILURE
>=20
> Any thoughts? Similar experience?
>=20
> Regards,
> Ronald.
>=20
>=20


--Apple-Mail=_0C76B5A0-363E-4083-BBA8-EF5CDCA8C939
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">Looks like it might be using an old version of =
tests/sys/kqueue/libkqueue/common.h, after <a =
href=3D"https://cgit.freebsd.org/src/commit/?id=3Dc728c56c870abe230e45cee5=
c477f0d890ebacef" =
class=3D"">https://cgit.freebsd.org/src/commit/?id=3Dc728c56c870abe230e45c=
ee5c477f0d890ebacef</a> ?</div><div class=3D""><br class=3D""></div><div =
class=3D"">Without seeing how the .o files have been compiled, =
specifically with which -I flags, it is impossible to see what is going =
wrong, though.</div><div class=3D""><br class=3D""></div><div =
class=3D"">-Dimitry</div><div class=3D""><br =
class=3D""></div><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 6 Jun 2022, at 11:59, Ronald Klop &lt;<a =
href=3D"mailto:ronald-lists@klop.ws" =
class=3D"">ronald-lists@klop.ws</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D"">Hi,<br=
 class=3D"">
<br class=3D"">
Building on aarch64/14-CURRENT fails with this error on my rpi4.<br =
class=3D"">
It failed on incremental build and tried a clean build today.<br =
class=3D"">
<br class=3D"">
First failure was on "World build started on Sun May 29 00:25:17 UTC =
2022".<br class=3D"">
<br class=3D"">
This weekend it still fails (I'm building weekly in Jenkins).
<div class=3D"clear" id=3D"page-body">
<div id=3D"main-panel" class=3D"">
<pre class=3D"console-output"><span class=3D"timestamp"><b =
class=3D"">10:04:44</b> </span>=3D=3D=3D&gt; tests/sys/kqueue/libkqueue =
(all)
<span class=3D"timestamp"><b class=3D"">10:04:44</b> </span>--- =
kqueue_test ---
<span class=3D"timestamp"><b class=3D"">10:04:44</b> </span>(cd =
/usr/src/tests/sys/kqueue/libkqueue &amp;&amp;  =
DEPENDFILE=3D.depend.kqueue_test  NO_SUBDIR=3D1 /usr/bin/make -f =
/usr/src/tests/sys/kqueue/libkqueue/Makefile _RECURSING_PROGS=3Dt  =
PROG=3Dkqueue_test )
<span class=3D"timestamp"><b class=3D"">10:04:44</b> </span>--- =
kqueue_test.full ---
<span class=3D"timestamp"><b class=3D"">10:04:44</b> </span>cc -target =
aarch64-unknown-freebsd14.0 --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp=
 -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common =
-fPIE -g -gz=3Dzlib -std=3Dgnu99 -Wno-format-zero-length =
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k =
-W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes =
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch =
-Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts =
-Wnested-externs -Wold-style-definition -Wno-pointer-sign =
-Wmissing-variable-declarations -Wthread-safety -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-error=3Dunused-but-set-variable -Qunused-arguments  -pie  -o =
kqueue_test.full main.o read.o timer.o vnode.o proc.o signal.o user.o =20=

<span class=3D"timestamp"><b class=3D"">10:04:44</b> </span>ld: error: =
undefined symbol: test_no_kevents
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:169 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:169)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:75 (/usr/src/tests/sys/kqueue/libkqueue/read.c:75)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:137 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:137)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced 31 more times
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
did you mean: _test_no_kevents
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
defined in: main.o
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>ld: error: =
undefined symbol: kevent_cmp
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:72 (/usr/src/tests/sys/kqueue/libkqueue/read.c:72)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:145 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:145)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced by read.c:193 =
(/usr/src/tests/sys/kqueue/libkqueue/read.c:193)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
              read.o:(test_evfilt_read)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
referenced 14 more times
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
did you mean: _kevent_cmp
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>&gt;&gt;&gt; =
defined in: main.o
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>cc: error: =
linker command failed with exit code 1 (use -v to see invocation)
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>      668.58 =
real       125.97 user        62.12 sys
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>make[1]: =
stopped in /usr/src
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>make: =
stopped in /usr/src
<span class=3D"timestamp"><b class=3D"">10:04:45</b> </span>Build step =
'Execute shell' marked build as failure
<span class=3D"timestamp"><b class=3D"">10:04:46</b> </span>Skipped =
archiving because build is not successful
<span class=3D"timestamp"><b class=3D"">10:04:46</b> </span>Sending =
e-mails to: <a href=3D"mailto:xxxx@yyyy.zzz" class=3D"">xxxx@yyyy.zzz</a>
<span class=3D"timestamp"><b class=3D"">10:04:47</b> </span>Finished: =
FAILURE
</pre>
</div>
</div>
<br class=3D"">
Any thoughts? Similar experience?<br class=3D"">
<br class=3D"">
Regards,<br class=3D"">
Ronald.<br class=3D"">
<br class=3D"">
&nbsp;</div></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_0C76B5A0-363E-4083-BBA8-EF5CDCA8C939--

--Apple-Mail=_FC031E41-3ECE-4BFA-9A79-2135E56E7574
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYp3UDAAKCRCwXqMKLiCW
o1I2AJwJMW3SfAwL4GUN7oQO8/XNLyBf+QCfQwoMeDLapJBvjIkv1+BC+2NUseQ=
=U2JT
-----END PGP SIGNATURE-----

--Apple-Mail=_FC031E41-3ECE-4BFA-9A79-2135E56E7574--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15688335-6503-4120-985A-34A7BF3FBEA7>