Another Jammy specific build failure I am scratching my head with based on the Deb packaging scripts you linked to above is the following llvm (patched runtime build related?) failure that happens when building with an attempted Jammy specific debian package build configuration I made (is happening with a debian/control unmodified from the focal build, is not happening when building with the docker run steps you describe above, so I am guessing whatever is the focal/jammy difference boils down to something I am including / not including amongst package build dependencies in my Jammy specific debian/control which makes the ABI detection fail?):
build_1 | [3832/4434][ 86%][625.140s] cd /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-stamps//compiler-rt-patch
build_1 | [3832/4434][ 86%][625.140s] cd /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-bins && /usr/bin/cmake -DCMAKE_C_COMPILER=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang -DCMAKE_CXX_COMPILER=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang++ -DCMAKE_ASM_COMPILER=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/ninja-build/ninja -DLLVM_CONFIG_PATH=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/llvm-config "-DLLVM_LIT_ARGS=-v --time-tests -j 64" -DCOMPILER_RT_OUTPUT_DIR=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./lib/clang/13.0.0 -DCOMPILER_RT_EXEC_OUTPUT_DIR=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin -DCOMPILER_RT_INSTALL_PATH:PATH=lib/clang/13.0.0 -DCOMPILER_RT_INCLUDE_TESTS=ON -DCMAKE_INSTALL_PREFIX=/usr/lib/swiftlang/5.7.2 -DLLVM_LIBDIR_SUFFIX= -DLLVM_RUNTIME_OUTPUT_INTDIR=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT:PATH= -DCOMPILER_RT_INTERCEPT_LIBDISPATCH=ON -DCOMPILER_RT_PREFIX=/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/projects/compiler-rt -DCOMPILER_RT_SRC_ROOT=/tmp/swift-deb-builder/swiftlang-5.7.2/llvm-project/llvm/../compiler-rt -GNinja /tmp/swift-deb-builder/swiftlang-5.7.2/llvm-project/llvm/../compiler-rt && /usr/bin/cmake -E touch /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-stamps//compiler-rt-configure
build_1 | Re-run cmake no build system arguments
build_1 | -- The C compiler identification is Clang 13.0.0
build_1 | -- The CXX compiler identification is Clang 13.0.0
build_1 | -- The ASM compiler identification is Clang with GNU-like command-line
build_1 | -- Found assembler: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang
build_1 | -- Detecting C compiler ABI info
build_1 | -- Detecting C compiler ABI info - failed
build_1 | -- Check for working C compiler: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang
build_1 | -- Check for working C compiler: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang - broken
build_1 | CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
build_1 | The C compiler
build_1 |
build_1 | "/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang"
build_1 |
build_1 | is not able to compile a simple test program.
build_1 |
build_1 | It fails with the following output:
build_1 |
build_1 | Change Dir: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-bins/CMakeFiles/CMakeTmp
build_1 |
build_1 | Run Build Command(s):/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/ninja-build/ninja cmTC_f7244 && [1/2][ 50%][0.109s] Building C object CMakeFiles/cmTC_f7244.dir/testCCompiler.c.o
build_1 | clang-13: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
build_1 | clang-13: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
build_1 | [2/2][100%][0.182s] Linking C executable cmTC_f7244
build_1 | FAILED: cmTC_f7244
build_1 | : && /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/./bin/clang -g -O2 -ffile-prefix-map=/tmp/swift-deb-builder/swiftlang-5.7.2=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro CMakeFiles/cmTC_f7244.dir/testCCompiler.c.o -o cmTC_f7244 && :
build_1 | /usr/bin/ld: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/bin/../lib/LLVMgold.so: error loading plugin: /tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/bin/../lib/LLVMgold.so: cannot open shared object file: No such file or directory
build_1 | clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
build_1 | ninja: build stopped: subcommand failed.
build_1 |
build_1 |
build_1 |
build_1 |
build_1 |
build_1 | CMake will not be able to correctly generate this project.
build_1 | Call Stack (most recent call first):
build_1 | CMakeLists.txt:10 (project)
build_1 |
build_1 |
build_1 | -- Configuring incomplete, errors occurred!
build_1 | See also "/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-bins/CMakeFiles/CMakeOutput.log".
build_1 | See also "/tmp/swift-deb-builder/swiftlang-5.7.2/build/buildbot_linux/llvm-linux-x86_64/tools/clang/runtime/compiler-rt-bins/CMakeFiles/CMakeError.log".
My latest attempted build dependencies in the attempted debian/control (happens also with an unmodified debian/control from the focal package as noted above):
Build-Depends: debhelper-compat (= 12), devscripts,
build-essential,
clang, cmake, git, icu-devtools, ninja-build, pkg-config,
libcurl4-openssl-dev, libedit-dev, libicu-dev, libncurses5-dev,
libpython3-dev, libsqlite3-dev, libxml2-dev,
python2, python2-dev, python-six, python3-six, python3-distutils, python3-psutil,
systemtap-sdt-dev, tzdata, unzip, uuid-dev,
libgcc-9-dev, libstdc++-9-dev, libxml2-dev, zlib1g-dev, binutils, pkg-config
What might I be missing?