From nobody Fri Oct 28 02:56:59 2022 X-Original-To: uboot@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 4Mz6dl3zKyz4gtfX for ; Fri, 28 Oct 2022 02:56:59 +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 4Mz6dl1jnSz3qnT for ; Fri, 28 Oct 2022 02:56:59 +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 4Mz6dl0gZXzMQ3 for ; Fri, 28 Oct 2022 02:56:59 +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 29S2uxIA002387 for ; Fri, 28 Oct 2022 02:56:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29S2ux8F002386 for uboot@FreeBSD.org; Fri, 28 Oct 2022 02:56:59 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: uboot@FreeBSD.org Subject: [Bug 266404] sysutils/edk2: on aarch64, edk2 fails to build for FreeBSD aarch64 libgcc_s.so.1 issues Date: Fri, 28 Oct 2022 02:56:59 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uboot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666925819; 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: in-reply-to:in-reply-to:references:references; bh=y4Kg41Htg/JqLAE4xPjCR0dh04NsBMz9YhR3Em4XZ0Y=; b=X22Skplyy2Cl351V5XeX+IfTMSL/EI0CLOC9QXPW/wKLk7BrxLxUc8Xm3K+OEZFUl5fDGn UE/oU1ncB44AduE3HXDw6BJXBoWgoyYpwcykda7zXUAXag7um7tWlB6fq/3UfJXnF2S2OU 46hjXx9P9QTUb8SEEhCNzY2FJjDpFQDcjnYpdoPM2MLuHaQJZd6uN3vJCV51RjZyT0cTEG dHN/LfQx9nP94mArenAfUWk3jSLBGnavnYew7pITfh3XCkcv2nxhExjpFPjcH6LDOQX1Z3 aOkr0anLn7fclGTr0iFCIObOs+sDIr8pxO2Z1hyJ9MTbsjmcsIMuQil10Cmtcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666925819; a=rsa-sha256; cv=none; b=jBhAV7fo/EZax/0aP33ElEFOCXCW+KLA5UXs7yCcwvqD6YyB0MMlrsuqmYrMZfaF5njiaD ahycpjFC+AeQYaelj982/LPxHJP1phs4Oj061GLRQdNg+XqY9FDUtNt4LdG6yuSmCJmnrm bdzGxT3dZ+vam/+uRH9IVRpmZjhjn6nVcL5nru/0uXNeUASJvXW4mSRvtbFSNPxMv0rIQp rBjYyL+fypwOgg2GyvyHVV/qufESE0JdQGnX7Qkxc8G8Hj298hzlfe2mO7D6f/PLLDldoV coDW9NPY2ZSAi/mWqLmtFyh+97uzwmNH6WipupwglpzNLuw4Z+FFltCgEis2XQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266404 --- Comment #22 from Mark Millard --- (In reply to Lorenzo Salvadore from comment #21) > a commit that I don't fully understand Just an FYI. I'll note that other ports than EDK2 have had issues with aarch64 FreeBSD's libgcc_s.so.1 being incomplete relative to GCC aarch64 code generation and have also needed to use a: /usr/local/lib/gcc*/libgcc_s.so.1 instead to supply all the required things that the GCC compiler expects to be supplied. "version GCC_4.5.0" is not the only missing thing in the aarch64 FreeBSD libgcc_s.so.1 . For example, in an aarch64 context, g++ use floating point support routines can be an issue, here code that was generated inside libstdc++.so . . . # more trivial.cpp // aarch64 g++12 example that shows the symbols missing for the // /usr/local/lib/gcc12/libstdc++.so.6 build involved : // // # g++12 -o trivial -L/usr/lib trivial.cpp // // This finds /usr/lib/libgcc_s.so , which in turn is a link // to /lib/libgcc_s.so.1 . int main() { } For example, in my context: # g++12 -o trivial -L/usr/lib trivial.cpp /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__floatunditf@GCC_4.2.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__subtf3@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__unordtf2@GCC_4.5.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__getf2@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__addtf3@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__letf2@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__fixunstfdi@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__multf3@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__eqtf2@GCC_3.0' /usr/local/bin/ld: /usr/local/lib/gcc12/gcc/aarch64-portbld-freebsd13.1/12.2.0/../../../libstd= c++.so: undefined reference to `__lttf2@GCC_3.0' collect2: error: ld returned 1 exit status If it turns out that GCC/G++ happens to not generate a reference to something that is missing, such build errors do not happen when /lib/libgcc_s.so.1 is being used. But if GCC/G++ generates a reference to such, a use of a /usr/local/lib/gcc*/libgcc_s.so.1 is needed. Some ports were likely marked broken instead of being fixed. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=