Sorry for the delayed reply -- The dev meeting kept me pretty busy the last couple of days.
When I run your repro.sh script (thank you for taking the time to add all the container config code by the way, that's very helpful!) I see:
% ./repro.sh
-- Starting docker container --
Using default tag: latest
latest: Pulling from ossia/score-package-linux
Digest: sha256:aca4c255d4d5a6926e5cd4f50a1a57f6e262a3c931efaaf94a62066784e5424c
Status: Image is up to date for ossia/score-package-linux:latest
-- Compiling example to bc --
-- Building --
-- The CXX compiler identification is Clang 11.0.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/score-sdk/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM 11.0.0
-- Using LLVMConfig.cmake in: /opt/score-sdk/llvm/lib/cmake/llvm
-- Configuring done
-- Generating done
-- Build files have been written to: /repro/build
Scanning dependencies of target repro_ffastmath_llvm
[ 50%] Building CXX object CMakeFiles/repro_ffastmath_llvm.dir/main.cpp.o
[100%] Linking CXX executable repro_ffastmath_llvm
[100%] Built target repro_ffastmath_llvm
-- Running from within the container : ok
/repro/build.sh: line 48: 45 Illegal instruction ./repro_ffastmath_llvm
-- Leaving container --
-- Running from within the host system fails:
./repro.sh: line 10: ./repro_ffastmath_llvm: cannot execute binary file
Is that the same failure that you're seeing for this reproduction case? I was expecting "Symbols not found: [ __log_finite, __exp2_finite ]".
-- Lang.