[flang-commits] [flang] [flang][test] Fix ASAN error in unit tests (PR #218917)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Wed Sep 2 03:05:26 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-build-only` running on `AMD-bb-w-01` while building `flang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/226/builds/18755
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
-- Performing Test PLATFORM_HAS_AMDGPU
-- Performing Test PLATFORM_HAS_AMDGPU - Success
CMake Warning at /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/offload/unittests/Conformance/tests/CMakeLists.txt:2 (message):
Cannot run conformance tests without the LLVM C library
-- Configuring done (52.9s)
-- Generating done (0.3s)
-- Build files have been written to: /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins
[8760/8769] Linking CXX executable bin/flang-24
FAILED: bin/flang-24
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition -Wl,--export-dynamic -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o tools/flang/tools/flang-driver/CMakeFiles/flang.dir/fc1_main.cpp.o -o bin/flang-24 -L/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,-rpath,"\$ORIGIN/../lib:\$ORIGIN/../lib/x86_64-unknown-linux-gnu:/home/botworker/bbot/amdgpu-offload-build-only/build/./lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:" lib/libLLVMAMDGPUDisassembler.so.24.0git lib/libLLVMX86Disassembler.so.24.0git -lpthread lib/libflangFrontendTool.so.24.0git lib/libclangDriver.so.24.0git lib/libflangFrontend.so.24.0git lib/libclangOptions.so.24.0git lib/libLLVMOption.so.24.0git lib/libclangBasic.so.24.0git lib/libLLVMX86CodeGen.so.24.0git lib/libLLVMX86AsmParser.so.24.0git lib/libLLVMX86Desc.so.24.0git lib/libLLVMX86Info.so.24.0git lib/libLLVMAMDGPUCodeGen.so.24.0git lib/libLLVMAMDGPUAsmParser.so.24.0git lib/libLLVMAMDGPUDesc.so.24.0git lib/libLLVMAMDGPUUtils.so.24.0git lib/libLLVMAMDGPUInfo.so.24.0git lib/libLLVMSPIRVCodeGen.so.24.0git lib/libLLVMSPIRVDesc.so.24.0git lib/libLLVMSPIRVInfo.so.24.0git lib/libLLVMMC.so.24.0git lib/libLLVMTargetParser.so.24.0git lib/libLLVMSupport.so.24.0git -lpthread -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/flang/tools/flang-driver/CMakeFiles/flang.dir/fc1_main.cpp.o: undefined reference to symbol '_ZN7Fortran5lower15LoweringOptionsC1Ev'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/botworker/bbot/amdgpu-offload-build-only/build/./lib/libFortranLower.so.24.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8761/8769] Linking CXX executable bin/bbc
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
-- Performing Test PLATFORM_HAS_NVPTX
-- Performing Test PLATFORM_HAS_NVPTX - Failed
-- Performing Test PLATFORM_HAS_AMDGPU
-- Performing Test PLATFORM_HAS_AMDGPU - Success
CMake Warning at /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/offload/unittests/Conformance/tests/CMakeLists.txt:2 (message):
Cannot run conformance tests without the LLVM C library
-- Configuring done (52.9s)
-- Generating done (0.3s)
-- Build files have been written to: /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins
[8760/8769] Linking CXX executable bin/flang-24
FAILED: bin/flang-24
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -O3 -DNDEBUG -fno-semantic-interposition -Wl,--export-dynamic -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o tools/flang/tools/flang-driver/CMakeFiles/flang.dir/fc1_main.cpp.o -o bin/flang-24 -L/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,-rpath,"\$ORIGIN/../lib:\$ORIGIN/../lib/x86_64-unknown-linux-gnu:/home/botworker/bbot/amdgpu-offload-build-only/build/./lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib:" lib/libLLVMAMDGPUDisassembler.so.24.0git lib/libLLVMX86Disassembler.so.24.0git -lpthread lib/libflangFrontendTool.so.24.0git lib/libclangDriver.so.24.0git lib/libflangFrontend.so.24.0git lib/libclangOptions.so.24.0git lib/libLLVMOption.so.24.0git lib/libclangBasic.so.24.0git lib/libLLVMX86CodeGen.so.24.0git lib/libLLVMX86AsmParser.so.24.0git lib/libLLVMX86Desc.so.24.0git lib/libLLVMX86Info.so.24.0git lib/libLLVMAMDGPUCodeGen.so.24.0git lib/libLLVMAMDGPUAsmParser.so.24.0git lib/libLLVMAMDGPUDesc.so.24.0git lib/libLLVMAMDGPUUtils.so.24.0git lib/libLLVMAMDGPUInfo.so.24.0git lib/libLLVMSPIRVCodeGen.so.24.0git lib/libLLVMSPIRVDesc.so.24.0git lib/libLLVMSPIRVInfo.so.24.0git lib/libLLVMMC.so.24.0git lib/libLLVMTargetParser.so.24.0git lib/libLLVMSupport.so.24.0git -lpthread -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/flang/tools/flang-driver/CMakeFiles/flang.dir/fc1_main.cpp.o: undefined reference to symbol '_ZN7Fortran5lower15LoweringOptionsC1Ev'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /home/botworker/bbot/amdgpu-offload-build-only/build/./lib/libFortranLower.so.24.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[8761/8769] Linking CXX executable bin/bbc
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
yield
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
run_command(["ninja"])
File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
util.report_run_cmd(cmd, cwd=directory)
File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
subprocess.check_call(cmd, shell=shell, *args, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=155.105272
```
</details>
https://github.com/llvm/llvm-project/pull/218917
More information about the flang-commits
mailing list