Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Apr 2024 08:58:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 278089] Crash with clang++ 16 building stockfish-official
Message-ID:  <bug-278089-29464-w8fxLWVG3x@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-278089-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-278089-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278089

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #2 from Dimitry Andric <dim@FreeBSD.org> ---
With just the files in the tarball, I cannot reproduce the crash, since the
profile data file "stockfish.profdata" is not available:

$ sh -x benchmark-d729e3.sh
+ /usr/bin/clang++ -cc1 -triple aarch64-unknown-freebsd14.0 -emit-llvm-bc
'-flto=3Dfull' -flto-unit -disable-free -clear-ast-before-backend
-disable-llvm-verifier -discard-value-names -main-file-name benchmark.cpp
-mrelocation-model static '-mframe-pointer=3Dnon-leaf' '-ffp-contract=3Don'
-fno-rounding-math -mconstructor-aliases '-funwind-tables=3D2' -target-cpu
generic -target-feature +neon -target-feature +v8.2a -target-feature +dotpr=
od
-target-abi aapcs -mllvm -treat-scalable-fixed-error-as-warning
'-debugger-tuning=3Dgdb' '-fprofile-instrument-use-path=3Dstockfish.profdat=
a'
'-fcoverage-compilation-dir=3D/home/paulf/scratch/Stockfish/src' -D USE_PTH=
READS
-D NDEBUG -D IS_64BIT -D USE_POPCNT -D 'USE_NEON=3D8' -D USE_NEON_DOTPROD -D
'GIT_SHA=3Dc964942d' -D 'GIT_DATE=3D20240330' -D 'ARCH=3Darmv8-dotprod' -O3=
 -Wall
-Wcast-qual -Wextra -Wshadow -Wmissing-declarations -pedantic '-std=3Dc++17'
-fdeprecated-macro '-fdebug-compilation-dir=3D/home/paulf/scratch/Stockfish=
/src'
-ferror-limit 19 -funroll-loops -fno-signed-char '-fgnuc-version=3D4.2.1'
-fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig
'-D__GCC_HAVE_DWARF2_CFI_ASM=3D1' -x c++ benchmark-d729e3.cpp
error: Error in reading profile stockfish.profdata: No such file or directo=
ry

If I remove the '-fprofile-instrument-use-path=3Dstockfish.profdata' option=
, the
compile succeeds with both clang 16.0.6 and 17.0.6.

So it must be something in the profiling data that is tripping it up.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278089-29464-w8fxLWVG3x>