[Bug 278089] Crash with clang++ 16 building stockfish-official

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 02 Apr 2024 08:58:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278089

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=full' -flto-unit -disable-free -clear-ast-before-backend
-disable-llvm-verifier -discard-value-names -main-file-name benchmark.cpp
-mrelocation-model static '-mframe-pointer=non-leaf' '-ffp-contract=on'
-fno-rounding-math -mconstructor-aliases '-funwind-tables=2' -target-cpu
generic -target-feature +neon -target-feature +v8.2a -target-feature +dotprod
-target-abi aapcs -mllvm -treat-scalable-fixed-error-as-warning
'-debugger-tuning=gdb' '-fprofile-instrument-use-path=stockfish.profdata'
'-fcoverage-compilation-dir=/home/paulf/scratch/Stockfish/src' -D USE_PTHREADS
-D NDEBUG -D IS_64BIT -D USE_POPCNT -D 'USE_NEON=8' -D USE_NEON_DOTPROD -D
'GIT_SHA=c964942d' -D 'GIT_DATE=20240330' -D 'ARCH=armv8-dotprod' -O3 -Wall
-Wcast-qual -Wextra -Wshadow -Wmissing-declarations -pedantic '-std=c++17'
-fdeprecated-macro '-fdebug-compilation-dir=/home/paulf/scratch/Stockfish/src'
-ferror-limit 19 -funroll-loops -fno-signed-char '-fgnuc-version=4.2.1'
-fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig
'-D__GCC_HAVE_DWARF2_CFI_ASM=1' -x c++ benchmark-d729e3.cpp
error: Error in reading profile stockfish.profdata: No such file or directory

If I remove the '-fprofile-instrument-use-path=stockfish.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.

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