From nobody Sat Feb 17 04:51:17 2024 X-Original-To: gecko@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 4TcGbX6HtRz5BlHn for ; Sat, 17 Feb 2024 04:51:20 +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 4TcGbX4yRQz4Lkl for ; Sat, 17 Feb 2024 04:51:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708145480; 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=edMcczEDPaQRQzIqIQd5U4UiSfTe3uofbJnJu3wgPuY=; b=wxc/LTRJizOC8rNfiElqMcaFxPNelKc1luvs7pQeZ5lGiFDHqA1hGTaPAepqhLMISrlO5u jxuqjMtnpYnlW2Qr8XtObJNiKI+HGDy8eqA7Ekjj4qjgeiNdwnqQh9ulq4JxlJ71EPuFhC ynfWpYM4tAGBl0owEGsHnq73Wg22OEiOTShQxfuf+ox41m3LamRP8XKI3ZyboHT6u+11Fk Zrh9kmNGky1eqDE1GWJZFWjpCS857hYeyRB6WA1pHxokAhKiQbKc51iPj3absay/eSaP0A iBDMuTG9B8IpiztKNrvvx9Kw1+Enjh3VI0akwmv/BN13EqxsJSI3tA7RZIg9lQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708145480; a=rsa-sha256; cv=none; b=VkSIRHqzjIW6iwUrTgr14QgIR2uVPDizVFqtQOAmna+XW41CwZdr5/0E0BuDGBqSlbJjny elxPGMB8TElD4nNeWGisexDlbAV/tD0dKsxkeDxocDepTwJHOZ7G1xete2kRGhErppFVkZ sQOeFrz+gqcz8cx2qTNJkp11A6Z8/x2PThKLWCW6Mi720yTo9AzxXNRilC/Ho2XknMUh3d iamYUqH7QB9uUXGOOWODD5cRFZFlA9rdU96vMVMuQ4bzJT/DUK3EGVetOYvTOW23Njr8RI sDzBea4jA6LzLOAbwqI5HHjEgMshWItgi7SXuYNfcV6y9P6YmcVr/HAoZV2Xuw== 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 4TcGbX42yKztxp for ; Sat, 17 Feb 2024 04:51:20 +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 41H4pKc6091760 for ; Sat, 17 Feb 2024 04:51:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41H4pKJO091759 for gecko@FreeBSD.org; Sat, 17 Feb 2024 04:51:20 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: gecko@FreeBSD.org Subject: [Bug 277021] www/firefox: error on start after updating to 123.0 (rc1, rc2) Date: Sat, 17 Feb 2024 04:51:17 +0000 X-Bugzilla-Reason: 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: tatsuki_makino@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@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: Gecko Rendering Engine issues List-Archive: https://lists.freebsd.org/archives/freebsd-gecko List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gecko@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277021 --- Comment #63 from Tatsuki Makino --- (In reply to Ale from comment #62) A change here could be used as one of the workarounds, but it is not a fundamental solution. Because the presence or absence of -march changes whether /usr/local/lib/firefox/firefox is linked to libm or not. For example, write code that uses sin. The -O optimization hardcodes the computed result :) so... int main(int argc, char * argv[]) { double d; d =3D sin(atof(argv[1])); printf("%f\n", d); return 0; } When this is linked by clang, the -lm specification is mandatory. When this is linked by clang++, libm is automatically linked. Let's look at the results of the following command. clang++15 -E -x c -std=3Dgnu17 -dM /dev/null clang++15 -E -x c -std=3Dgnu17 -march=3Dhaswell -dM /dev/null These make a difference. The answer is the following. +#define __AVX2__ 1 +#define __AVX__ 1 +#define __BMI2__ 1 +#define __BMI__ 1 +#define __CRC32__ 1 +#define __F16C__ 1 +#define __FMA__ 1 +#define __FSGSBASE__ 1 +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 1 +#define __INVPCID__ 1 +#define __LAHF_SAHF__ 1 +#define __LZCNT__ 1 +#define __MOVBE__ 1 +#define __PCLMUL__ 1 +#define __POPCNT__ 1 +#define __RDRND__ 1 +#define __SSE3__ 1 +#define __SSE4_1__ 1 +#define __SSE4_2__ 1 +#define __SSSE3__ 1 +#define __XSAVEOPT__ 1 +#define __XSAVE__ 1 -#define __k8 1 -#define __k8__ 1 +#define __corei7 1 +#define __corei7__ 1 -#define __tune_k8__ 1 +#define __tune_corei7__ 1 The code that switches something by this is around firefox-123.0/mozglue/misc/SSE.h =E3=80=82 This may have prevented haswell from using functions that would have requir= ed libm. This may be why they don't link libm with firefox binary. In other words, a change to link libm to some binary that cannot avoid using libm sin would be a good solution. So much for what I have researched :) --=20 You are receiving this mail because: You are the assignee for the bug.=