From nobody Tue Dec 31 00:44:54 2024 X-Original-To: toolchain@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 4YMZ4Q6sFWz5jFrk for ; Tue, 31 Dec 2024 00:44:54 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YMZ4Q3cc4z4ZlL for ; Tue, 31 Dec 2024 00:44:54 +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=1735605894; 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=hLjr3IyLaRWHq6ZvbwCL7w4jFIpla2hh9+n5ZAOjEQc=; b=e/p4Czo9S0zk0nkPyVFm5VuSht4nUEGG3t1fzoixt4CiBsZlReKbWc7rw9PxDhbRUmcLRD U25PQP2CuBtDE0LpaQqOyf4HnXRntgCv026Zj5fb3a8wcomxcNgtbWAX0YM1h7gENJVV+k MfAj1fQy4cphxaCL3mrDcHJFMOytSEYbeJwe1p3gBUSyMkl1bzTQ4FIMZ+vzMcrnBzfuaG zVRn+zMadGVK4IGbQOyMkfj9RakCycFe/Ey3dIE9lUSAIsuur30NHalanbiwasQGTfjoUc NjV707J2RKjd5IvHfvLC9h3lF45RAuzEesm8mtpg48IjicVVbUU/axIaP6/D+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735605894; a=rsa-sha256; cv=none; b=hdMEQW3SwrSsQrQtaAMmS6MKwNUarfxlBKXPj9yzkxfXh1g8fatvjdYfFYbA2bS/29R9xS HQw16jgkXtLhZL3S4NS/8KQEuRxyLVZwGrhcCLMXytk7NZ4DGwJrcm86dyr8GPCrZ4NFV8 OmxqTk0IN9UPBVRe+250tc/R1XERmjI5SYeRI2SDNtL0ygxm/C+6YQWlmUAix05xXWKiKA 47ezEKC8HGI3KybyhSyb0UDpM3vTsJ54dsFfK6r9bQ7VIlquLNtUW+D2a+Y7jp0nBACtLX PCGgz4B2MHX0cRXN4hOEvUp0WMLyLF7OGsMi6rN1w5eMmHcpwu68M/6hllb0Zg== 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 4YMZ4Q34JPzHTm for ; Tue, 31 Dec 2024 00:44:54 +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 4BV0isp8034878 for ; Tue, 31 Dec 2024 00:44:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BV0isH1034877 for toolchain@FreeBSD.org; Tue, 31 Dec 2024 00:44: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: toolchain@FreeBSD.org Subject: [Bug 276170] LLVM bug prevents from enabling PGO optimization for Python 3.11+ Date: Tue, 31 Dec 2024 00:44:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276170 --- Comment #31 from Mark Millard --- (In reply to Guillaume Outters from comment #30) I tried the following with the final WANRINGs at the end shown below: # tar -xpf Python-3.13.1.tar.xz -C ./ # cd Python-3.13.1 # ./configure --enable-optimizations . . . configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly. configure: WARNING: Platform "aarch64-unknown-freebsd15.0" with compiler "clang" is not support= ed by the CPython core team, see https://peps.python.org/pep-0011/ for more informati= on. I then did the same in another directory tree, using export CC=3Dclang before the "./configure --enable-optimizations". I also captured and diff'd the outputs of the 2 runs, other than "cc" vs. "clang" text, they matched. # diff -rq Python-3.13.1-noCC/ Python-3.13.1-CC_clang/ | more Files Python-3.13.1-noCC/Makefile and Python-3.13.1-CC_clang/Makefile differ Files Python-3.13.1-noCC/Makefile.pre and Python-3.13.1-CC_clang/Makefile.p= re differ Files Python-3.13.1-noCC/config.log and Python-3.13.1-CC_clang/config.log differ Files Python-3.13.1-noCC/config.status and Python-3.13.1-CC_clang/config.st= atus differ There are interesting Makefile differences and Makefile.pre differences, both, in part, tied to PGO_* and LLVM_PROF_* definition differences: # diff -r Python-3.13.1-noCC/ Python-3.13.1-CC_clang/ | less diff -r Python-3.13.1-noCC/Makefile Python-3.13.1-CC_clang/Makefile 38,39c38,39 < CC=3D cc -pthread < CXX=3D c++ -pthread --- > CC=3D clang -pthread > CXX=3D clang++ -pthread 51,54c51,54 < PGO_PROF_GEN_FLAG=3D < PGO_PROF_USE_FLAG=3D < LLVM_PROF_MERGER=3D < LLVM_PROF_FILE=3D --- > PGO_PROF_GEN_FLAG=3D-fprofile-instr-generate > PGO_PROF_USE_FLAG=3D-fprofile-instr-use=3D"$(shell pwd)/code.profclangd" > LLVM_PROF_MERGER=3D /usr/bin/llvm-profdata merge -output=3D"$(shell pwd)/= code.profclangd" "$(shell pwd)"/*.profclangr=20 > LLVM_PROF_FILE=3DLLVM_PROFILE_FILE=3D"$(shell pwd)/code-%p.profclangr" 377c377 < CONFIG_ARGS=3D '--enable-optimizations' --- > CONFIG_ARGS=3D '--enable-optimizations' 'CC=3Dclang' diff -r Python-3.13.1-noCC/Makefile.pre Python-3.13.1-CC_clang/Makefile.pre 37,38c37,38 < CC=3D cc -pthread < CXX=3D c++ -pthread --- > CC=3D clang -pthread > CXX=3D clang++ -pthread 50,53c50,53 < PGO_PROF_GEN_FLAG=3D < PGO_PROF_USE_FLAG=3D < LLVM_PROF_MERGER=3D < LLVM_PROF_FILE=3D --- > PGO_PROF_GEN_FLAG=3D-fprofile-instr-generate > PGO_PROF_USE_FLAG=3D-fprofile-instr-use=3D"$(shell pwd)/code.profclangd" > LLVM_PROF_MERGER=3D /usr/bin/llvm-profdata merge -output=3D"$(shell pwd)/= code.profclangd" "$(shell pwd)"/*.profclangr=20 > LLVM_PROF_FILE=3DLLVM_PROFILE_FILE=3D"$(shell pwd)/code-%p.profclangr" 376c376 < CONFIG_ARGS=3D '--enable-optimizations' --- > CONFIG_ARGS=3D '--enable-optimizations' 'CC=3Dclang' This much does not seem to be a FreeBSD issue. --=20 You are receiving this mail because: You are the assignee for the bug.=