From nobody Sat Oct 08 07:39:21 2022 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 4Mkxrp2g16z4dnBv for ; Sat, 8 Oct 2022 07:39:22 +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 4Mkxrp0jcvz3L6t for ; Sat, 8 Oct 2022 07:39:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4Mkxrn6PFGzsc7 for ; Sat, 8 Oct 2022 07:39:21 +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 2987dLxr064556 for ; Sat, 8 Oct 2022 07:39:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2987dLqi064555 for bugs@FreeBSD.org; Sat, 8 Oct 2022 07:39:21 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 266900] WITHOUT_MACHDEP_OPTIMIZATION build option fails on error: undefined symbol: __stpcpy Date: Sat, 08 Oct 2022 07:39:21 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: editor@callfortesting.org 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 attachments.created 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665214762; 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=7bkucABq7pd7fRU4L2/PeI/F/Nbw7/HnY2LwOE0iw3Y=; b=CYzlDONyUMIyfGfngN5HUUadQU2SVqLE/4eU/zR3TwIjXEqWK/lAqRfoKo+Y3kf2lc1CD7 awnyphT0KPeqN0wUfkUMvikuSb8dXJtXKKGVyqZ7ckYWOuDMDgQgqbGhIynTA16WJpPwyn iICPx3LN4Nok/grrZ0Mp0qOosEB7LK4d4EVbEaFOh9CPLUlUj+oxqGf93e2z99uvqxHJv0 e4aSyVpL189iyWi2t5ljIbh57OQUPQTVuQwAGSYXXg+bGgMwE1/xozhcS8x7RAAPGiUhs/ B+fg53Rhf8DlEY+LR6OPnYJ2GBG3r2Qxfbthzlle/l0mNJL5SLKQJ/U/XAS7/Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665214762; a=rsa-sha256; cv=none; b=vV53rbtLUfWeczEor8CeG3PiCUT8NgCZFLMVHwSkEavxQzN8OxsHvKOL5VGofdH4vbj1AY 4TgbVc8mxHBrprSQbJDjLULUDYNLlbv12d/xDly0eKKYl4KxuWmOyZEDTzNvkiyCnKi1CJ pIwNwW1Zgik8MYTkgrEw2VxcZlXxs4qfJA3VUwbeAiJHyGE+Tb4/cnyvHsh3jZv0quQ6VJ UBGl6d+FqW+69P4R+OTVoeAaO9PCje6tMKcOMw2S/ZcKTQUWlJea/Mqd0BTBrEleoQuXR3 +jZxPyaiUHZArKx86LbpPz+5rw1fGbTTsvL4QB+6Q7UAGLstw+ShflC1fGzZLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266900 Bug ID: 266900 Summary: WITHOUT_MACHDEP_OPTIMIZATION build option fails on error: undefined symbol: __stpcpy Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: editor@callfortesting.org Created attachment 237151 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237151&action= =3Dedit src.conf that will reproduce the issue Context: FreeBSD buildworld will succeed with all WITHOUT_* build options enable, minus WITHOUT_AUTO_OBJ WITHOUT_UNIFIED_OBJDIR WITHOUT_INSTALLLIB. T= his provides a far more efficient exercise of the the available build options t= han the /usr/src/tools/tools/build_option_survey This commit and review causes the WITHOUT_MACHDEP_OPTIMIZATION build option= to fail on "error: undefined symbol: __stpcpy": https://reviews.freebsd.org/D36463 https://cgit.freebsd.org/src/commit/?id=3Dc65e42dbde4198ce46aef7ddac061390a= be672dc Xin LI is aware of this issue and has kindly offered this clarification and requested this ticket: "The build broke because some MD files were used, and some were not. For strcpy()'s case, on amd64, it's a wrapper around the MD stpcpy() and natura= lly it calls __stpcpy() which itself gets (correctly) excluded. The MD C source was used because this line which is common for Makefile.inc= 's in the subdirectories in libc: .PATH: ${LIBC_SRCTOP}/${LIBC_ARCH}/string ${LIBC_SRCTOP}/string which basically means, if you have foo.c in the MD directory, it's used in favor of the MI version. So these need to be fixed for ${MK_MACHDEP_OPTIMIZATIONS} =3D=3D no case to= o. I think this could have been avoided if the initial testing was done with t= wo clean buildworld builds with and without the new option; for build infrastructure changes like this, I'd recommend doing full universe runs locally or on universe14{a,b} at cluster in the future before pushing." Thank you Xin for looking into this! Attachments: a src.conf that reproduces the issue on main and stable/13 --=20 You are receiving this mail because: You are the assignee for the bug.=