From nobody Mon Jun 06 11:42:40 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id ACA811BDC638 for ; Mon, 6 Jun 2022 11:42:44 +0000 (UTC) (envelope-from SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LGs6q4hHLz4vW7; Mon, 6 Jun 2022 11:42:42 +0000 (UTC) (envelope-from SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl) Date: Mon, 6 Jun 2022 13:42:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1654515760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TCkKrAj0dldnduA74cM4jb/hApY/ptaN3gNq+YIzYrQ=; b=lt8/3K5LuNLCslxP2qEwHZLMgmZCbYPRBtD7Ij9Dt5d9rJ1dOzYos4h7YNpbyeeM+xOJqs SqFkFGAD7sqPsWqxvLos4TWgHYU+KeCxbKT9fz8EiWp49LzL10YHuLsD/f8eI1s0PuBk9H AkAtbKpLMesSzGpdn3QRIlJDYFwlM8tNhCoPssxKywZf4Gzxn7X+oD5owY4ns5pRHao4+w Dd+NsiPomfJWlUzgSFOSPICdJEzauCLpaC5XsWMrFeXyUcFHrg2mb8C+6TYNh8SXTYPvu/ zw1dWF3QPj6osEvBBeGeQMt0aE56bhOMlYdYxfJCmDFhtYcQBrI1wN9ckdH4wA== From: Ronald Klop To: Dimitry Andric Cc: Mark Johnston , freebsd-current Message-ID: <1606971861.46.1654515760545@localhost> In-Reply-To: <15688335-6503-4120-985A-34A7BF3FBEA7@FreeBSD.org> References: <172777947.19.1654509576898@localhost> <15688335-6503-4120-985A-34A7BF3FBEA7@FreeBSD.org> Subject: Re: buildworld fail: ld: error: undefined symbol: test_no_kevents List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45_1775458143.1654515760488" X-Mailer: Realworks (609.137.522ccc0) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4LGs6q4hHLz4vW7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b="lt8/3K5L"; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-2.96 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.791]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-0.98)[-0.976]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MLMMJ_DEST(0.00)[freebsd-current]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=jgwc=WN=klop.ws=ronald-lists@realworks.nl] X-ThisMailContainsUnwantedMimeParts: N ------=_Part_45_1775458143.1654515760488 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi, Mmm, took another look. I doubt my clean build was clean as "wipe out workspace" did not work because the Jenkins agent was offline. The problem might be PEBCAK[1]. :-) Doing another build with a fresh Jenkins workspace now. Will take 10+ hours to compile clang for the millionth time. Ronald. [1] https://en.wiktionary.org/wiki/PEBCAK Van: Dimitry Andric Datum: maandag, 6 juni 2022 12:16 Aan: Ronald Klop CC: freebsd-current , Mark Johnston Onderwerp: Re: buildworld fail: ld: error: undefined symbol: test_no_kevents > > Looks like it might be using an old version of tests/sys/kqueue/libkqueue/common.h, after https://cgit.freebsd.org/src/commit/?id=c728c56c870abe230e45cee5c477f0d890ebacef ? > > 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 wrote: >> >> Hi, >> >> Building on aarch64/14-CURRENT fails with this error on my rpi4. >> It failed on incremental build and tried a clean build today. >> >> First failure was on "World build started on Sun May 29 00:25:17 UTC 2022". >> >> This weekend it still fails (I'm building weekly in Jenkins). >> 10:04:44 ===> tests/sys/kqueue/libkqueue (all) >> 10:04:44 --- kqueue_test --- >> 10:04:44 (cd /usr/src/tests/sys/kqueue/libkqueue && DEPENDFILE=.depend.kqueue_test NO_SUBDIR=1 /usr/bin/make -f /usr/src/tests/sys/kqueue/libkqueue/Makefile _RECURSING_PROGS=t PROG=kqueue_test ) >> 10:04:44 --- kqueue_test.full --- >> 10:04:44 cc -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common -fPIE -g -gz=zlib -std=gnu99 -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=unused-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 >> >> Any thoughts? Similar experience? >> >> Regards, >> Ronald. >> >> > > ------=_Part_45_1775458143.1654515760488 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

Mmm, took another look. I doubt my clean build was clean as "wipe out workspace" did not work because the Jenkins agent was offline.

The problem might be PEBCAK[1]. :-)

Doing another build with a fresh Jenkins workspace now. Will take 10+ hours to compile clang for the millionth time.

Ronald.
[1] https://en.wiktionary.org/wiki/PEBCAK
 

Van: Dimitry Andric <dim@FreeBSD.org>
Datum: maandag, 6 juni 2022 12:16
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: freebsd-current <freebsd-current@freebsd.org>, Mark Johnston <markj@freebsd.org>
Onderwerp: Re: buildworld fail: ld: error: undefined symbol: test_no_kevents

Looks like it might be using an old version of tests/sys/kqueue/libkqueue/common.h, after https://cgit.freebsd.org/src/commit/?id=c728c56c870abe230e45cee5c477f0d890ebacef ?
 
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:
 
Hi,

Building on aarch64/14-CURRENT fails with this error on my rpi4.
It failed on incremental build and tried a clean build today.

First failure was on "World build started on Sun May 29 00:25:17 UTC 2022".

This weekend it still fails (I'm building weekly in Jenkins).
10:04:44 ===> tests/sys/kqueue/libkqueue (all)
10:04:44 --- kqueue_test ---
10:04:44 (cd /usr/src/tests/sys/kqueue/libkqueue &&  DEPENDFILE=.depend.kqueue_test  NO_SUBDIR=1 /usr/bin/make -f /usr/src/tests/sys/kqueue/libkqueue/Makefile _RECURSING_PROGS=t  PROG=kqueue_test )
10:04:44 --- kqueue_test.full ---
10:04:44 cc -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/usr/src/arm64.aarch64/tmp -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -O2 -pipe -fno-common -fPIE -g -gz=zlib -std=gnu99 -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=unused-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

Any thoughts? Similar experience?

Regards,
Ronald.

 
 
------=_Part_45_1775458143.1654515760488--