From nobody Wed Apr 03 12:17:54 2024 X-Original-To: bugs@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 4V8kKb1f4Pz5Ghb2 for ; Wed, 3 Apr 2024 12:17:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8kKb0Wk0z4NZc for ; Wed, 3 Apr 2024 12:17:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712146675; a=rsa-sha256; cv=none; b=gCFMLnQvROGMg4UfuwmYnziSqNHgsFuv1WgZG5+Bpn+/91PfYGnA5kTeeyWLgTJUvBG3Yc 2dSPsFP3wYHr3xAyL8DGuN0J1EtLtrTS/Gy2lcpiHTddmQ/3DAZD39kPN5VDrvv0w/54AH qDKLfqcLtSvG77pbDZ86QtF/czE+mbbXI08JbJhuIWKPcVCqrqWTcg6yZKVojjtNty9kyV bp8s3gBQ6Xh429ZGoXOG8N4OjPS2ANwKzyGIIKBzCLWuUVHj6nFVuEqGBJ2MhEJL7VoFdQ Od194sTpU3N6dVsIY8xiYcWpRzdfX5rULmvABEyihb3su0ZWjFLstmjtKNRZ0A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712146675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GPuPRgzo7ilJJDiPRfWa/DIGUA23RrC6SjOUP5Whpbo=; b=GpN9alm2cVoj9SdjdPEAm325pY0MaNbIioFCBFXUe1Iaq5ytNw9rgtyxGg6QIyeTf0s8Im bhFbrNIIFzee8sPdqSFkxkY4g60Khspv4oBGug6ImRzID/xoNJnYPYxlBj9Qa8mtXT8S91 JITX8gXVR7cn3C3xqOFtjAcMO3zy+Vr6+d/Kv6WMxWIrV1roCbIeY9016Ihv0jKBTinVGQ CYkqPGiGJ3VwV0rDmVAWvgwRjpYmLCAYtNa16iTnOMhAw+OAmGj5cfjyTVPYVqjz5lML9A z5Q7Ykgsii9E/hkL+1/67V9WDvmxfhLM0ziYGYMCl3hbo+j67T93whmDMxzK/Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V8kKb07M5zXtg for ; Wed, 3 Apr 2024 12:17:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 433CHsEg086983 for ; Wed, 3 Apr 2024 12:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 433CHsCK086965 for bugs@FreeBSD.org; Wed, 3 Apr 2024 12:17:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278141] stable/13: Incremental build sometimes gives "ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC" for ftpd(8) and sshd(8) Date: Wed, 03 Apr 2024 12:17:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278141 Bug ID: 278141 Summary: stable/13: Incremental build sometimes gives "ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC" for ftpd(8) and sshd(8) Product: Base System Version: 13.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: Trond.Endrestol@ximalas.info This might be caused by a race condition between libblacklist(3) and its in-tree consumers. --- ftpd.full --- ld: error: relocation R_X86_64_32S cannot be used against local symbol; recompile with -fPIC >>> defined in /usr/obj/usr/src/amd64.amd64/lib/libblacklist/libblacklist.a= (blacklist.o) >>> referenced by blacklist.c:67 (/usr/src/contrib/blacklist/lib/blacklist.= c:67) >>> blacklist.o:(blacklist_sa) in archive /usr/obj/usr/src/am= d64.amd64/lib/libblacklist/libblacklist.a Here are some technical details about our builder. It runs stable/13 amd64 built on 2024-02-26T00:30Z and it builds stable/13 amd64 using the aforementioned environment. It has two Intel(R) Xeon(R) Gold 6152 CPU @ 2.1= 0GHz (2095.08-MHz K8-class CPU). In other words, 2 package(s) x 22 core(s) x 2 hardware threads. The memory is at 1.5 TiB. (This server was donated to us.) Ccache 3.7.12_6 is in use with the cache's limit set to "128Gi". Previously, we ran "make buildworld buildkernel" at -j 176, and now we're b= ack at "sysctl -n hw.ncpu", i.e. 88. This might still be too many jobs when libblacklist(3) must be rebuilt. Maybe the cap should be at 64 jobs or lowe= r. Sometimes the build of sshd(8) could be affected. This was true at times wh= en we ran "make buildworld buildkernel" at -j 176. The last time this happened was on 2024-03-28T00:30Z. make(1) was running a= t -j 88. These changes were picked up that night: 285f941478d8..b5e7969b239f stable/13 -> freebsd/stable/13 usr.bin/truss/syscalls.c | 2 ++ usr.sbin/daemon/daemon.c | 14 +++++++++----- The previous run on the previous day (2024-03-27T00:30Z) was successful, and picked up these changes: b16cb28aca00..285f941478d8 stable/13 -> freebsd/stable/13 lib/libc/xdr/xdr_rec.c | 4 ++-- share/man/man4/cxgbe.4 | 2 +- share/man/man9/intr_event.9 | 2 +- A workaround might be to run "make buildworld buildkernel" one more time if= the previous attempt failed for whatever reason. I'll alter our build script shortly. /etc/src.conf contains these lines: WITH_CLANG_EXTRAS=3Dyes WITH_CLANG_FULL=3Dyes WITHOUT_CLEAN=3Dyes WITH_CTF=3Dyes WITH_DEBUG_FILES=3Dyes WITH_LIBCPLUSPLUS=3Dyes WITH_LLDB=3Dyes WITHOUT_REPRODUCIBLE_BUILD=3Dyes /etc/src-env.conf contains this line: WITH_META_MODE=3Dyes /etc/make.conf contains these lines: WITH_CCACHE_BUILD=3Dyes CCACHE_DIR?=3D/var/cache/ccache # DTrace for both base and ports. See https://wiki.freebsd.org/DTrace/KernelSupport. STRIP=3D CFLAGS+=3D-fno-omit-frame-pointer WITH_CTF=3D1 --=20 You are receiving this mail because: You are the assignee for the bug.=