Closed Bug 1899227 Opened 20 days ago Closed 18 days ago

Perma toolchain trunk x86-crt-trunk CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message): The C compiler is not able to compile a simple test program. | followed by Linking C executable cmTC_56804 FAILED

Categories

(Firefox Build System :: Toolchains, defect)

defect

Tracking

(firefox128 affected)

RESOLVED WORKSFORME
Tracking Status
firefox128 --- affected

People

(Reporter: imoraru, Assigned: glandium)

Details

Attachments

(1 obsolete file)

Failure summary is empty in treeherder.

[task 2024-05-28T02:34:44.665Z] patching file compiler-rt/lib/sanitizer_common/sanitizer_flags.inc
[task 2024-05-28T02:34:44.666Z] + read p
[task 2024-05-28T02:34:44.666Z] + eval cmake /builds/worker/fetches/llvm-project/compiler-rt -GNinja -DCMAKE_C_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/builds/worker/build/compiler-rt-i686-unknown-linux-gnu -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_CONFIG_PATH=/builds/worker/fetches/clang/bin/llvm-config -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DLLVM_TABLEGEN=/builds/worker/fetches/clang/bin/llvm-tblgen -DCMAKE_SYSROOT=/builds/worker/fetches/sysroot-i686-linux-gnu -DCMAKE_LINKER=/builds/worker/fetches/clang/bin/ld.lld -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_C_COMPILER=/builds/worker/fetches/clang/bin/clang -DCMAKE_CXX_COMPILER=/builds/worker/fetches/clang/bin/clang++ -DCMAKE_AR=/builds/worker/fetches/clang/bin/llvm-ar -DCMAKE_RANLIB=/builds/worker/fetches/clang/bin/llvm-ranlib
[task 2024-05-28T02:34:44.666Z] + cmake /builds/worker/fetches/llvm-project/compiler-rt -GNinja -DCMAKE_C_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=i686-unknown-linux-gnu -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/builds/worker/build/compiler-rt-i686-unknown-linux-gnu -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_CONFIG_PATH=/builds/worker/fetches/clang/bin/llvm-config -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF -DLLVM_TABLEGEN=/builds/worker/fetches/clang/bin/llvm-tblgen -DCMAKE_SYSROOT=/builds/worker/fetches/sysroot-i686-linux-gnu -DCMAKE_LINKER=/builds/worker/fetches/clang/bin/ld.lld -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_C_COMPILER=/builds/worker/fetches/clang/bin/clang -DCMAKE_CXX_COMPILER=/builds/worker/fetches/clang/bin/clang++ -DCMAKE_AR=/builds/worker/fetches/clang/bin/llvm-ar -DCMAKE_RANLIB=/builds/worker/fetches/clang/bin/llvm-ranlib
[task 2024-05-28T02:34:44.706Z] -- The C compiler identification is Clang 19.0.0
[task 2024-05-28T02:34:44.733Z] -- The CXX compiler identification is Clang 19.0.0
[task 2024-05-28T02:34:44.769Z] -- The ASM compiler identification is Clang with GNU-like command-line
[task 2024-05-28T02:34:44.770Z] -- Found assembler: /builds/worker/fetches/clang/bin/clang
[task 2024-05-28T02:34:44.781Z] -- Detecting C compiler ABI info
[task 2024-05-28T02:34:44.833Z] -- Detecting C compiler ABI info - failed
[task 2024-05-28T02:34:44.833Z] -- Check for working C compiler: /builds/worker/fetches/clang/bin/clang
[task 2024-05-28T02:34:44.884Z] -- Check for working C compiler: /builds/worker/fetches/clang/bin/clang - broken
[task 2024-05-28T02:34:44.884Z] CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
[task 2024-05-28T02:34:44.884Z]   The C compiler
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]     "/builds/worker/fetches/clang/bin/clang"
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]   is not able to compile a simple test program.
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]   It fails with the following output:
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]     Change Dir: /builds/worker/build/CMakeFiles/CMakeScratch/TryCompile-6MibHY
[task 2024-05-28T02:34:44.884Z]     
[task 2024-05-28T02:34:44.884Z]     Run Build Command(s):/usr/bin/ninja cmTC_56804 && [1/2] Building C object CMakeFiles/cmTC_56804.dir/testCCompiler.c.o
[task 2024-05-28T02:34:44.884Z]     [2/2] Linking C executable cmTC_56804
[task 2024-05-28T02:34:44.884Z]     FAILED: cmTC_56804 
[task 2024-05-28T02:34:44.884Z]     : && /builds/worker/fetches/clang/bin/clang --target=i686-unknown-linux-gnu --sysroot=/builds/worker/fetches/sysroot-i686-linux-gnu  -fuse-ld=lld CMakeFiles/cmTC_56804.dir/testCCompiler.c.o -o cmTC_56804   && :
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: cannot open crtbeginS.o: No such file or directory
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: unable to find library -lgcc
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: unable to find library -lgcc_s
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: unable to find library -lgcc
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: unable to find library -lgcc_s
[task 2024-05-28T02:34:44.884Z]     ld.lld: error: cannot open crtendS.o: No such file or directory
[task 2024-05-28T02:34:44.884Z]     clang: error: linker command failed with exit code 1 (use -v to see invocation)
[task 2024-05-28T02:34:44.884Z]     ninja: build stopped: subcommand failed.
[task 2024-05-28T02:34:44.884Z]     
[task 2024-05-28T02:34:44.884Z]     
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]   
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z]   CMake will not be able to correctly generate this project.
[task 2024-05-28T02:34:44.884Z] Call Stack (most recent call first):
[task 2024-05-28T02:34:44.884Z]   CMakeLists.txt:16 (project)
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.884Z] 
[task 2024-05-28T02:34:44.885Z] -- Configuring incomplete, errors occurred!
[task 2024-05-28T02:34:44.885Z] See also "/builds/worker/build/CMakeFiles/CMakeOutput.log".
[task 2024-05-28T02:34:44.885Z] See also "/builds/worker/build/CMakeFiles/CMakeError.log".
[taskcluster 2024-05-28 02:34:54.739Z] === Task Finished ===
[taskcluster 2024-05-28 02:34:54.804Z] Artifact "public/build" not found at "/builds/worker/artifacts/": (HTTP code 404) no such container - Could not find the file /builds/worker/artifacts/ in container f61a30fdc7cd870062005111eb720268bfdab9471eca73b6230db5c6969e810c 
[taskcluster 2024-05-28 02:34:54.873Z] Unsuccessful task run with exit code: 1 completed in 141.545 seconds

Hi Mike! Can you please take a look at this? Can't figure out what started this.
Thank you!

Flags: needinfo?(mh+mozilla)

Unblock the clang trunk builds until we find the right fix on our end.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/449dd1f336ba
Work around clang trunk no linking the i686-linux target with our i686 sysroot. r=firefox-build-system-reviewers,ahochheiden

Backout because "the issue it was working around was fixed upstream and the change now conflicts"
Backout link: https://hg.mozilla.org/mozilla-central/rev/abdb14987e23f88107f437b130d0817eea873199

Flags: needinfo?(mh+mozilla)

... which also means the bug doesn't happen anymore.

Status: ASSIGNED → RESOLVED
Closed: 18 days ago
Flags: needinfo?(mh+mozilla)
Resolution: --- → WORKSFORME
Attachment #9404241 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: