Open 3b3be5bc-be97-4c5a-a058-de8ddaf7c081 opened 3 years ago
mentioned in issue llvm/llvm-bugzilla-archive#50738
Bug llvm/llvm-bugzilla-archive#50738 has been marked as a duplicate of this bug.
The memory_manager.cpp test was disabled for x86_64-pc-linux-gnu
https://github.com/llvm/llvm-project/commit/ad0f6e1d984067a3dc81c17abcdd2fc3c7ff9946
I see this failure on Ubuntu 18.04 (both x86_64 and aarch64) and CentOS 7.7 (aarch64). I build LLVM with GCC 9.3. libelf and libffi development packages are provided by the operating systems.
This failure appears to affect newer distros. I see the same memory_manager.cpp failure with OpenSUSE Tumbleweed 20210428, gcc 10.3. The same system passes all tests under Ubuntu 20.4. Shilei suggested this could be related to Bug 48330 or elf64 using libffi.
Extended Description
FAIL: libomptarget :: offloading/memory_manager.cpp (84751 of 89700) **** TEST 'libomptarget :: offloading/memory_manager.cpp' FAILED **** Script:
: 'RUN: at line 1'; echo ignored-command : 'RUN: at line 2'; echo ignored-command : 'RUN: at line 3'; echo ignored-command : 'RUN: at line 4'; /home/nnelson/Documents/llvm-project/build/./bin/clang++ -fopenmp -pthread -fno-experimental-isel -I /home/nnelson/Documents/llvm-project/openmp/libomptarget/test -I /home/nnelson/Documents/llvm-project/build/projects/openmp/runtime/src -L /home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget -L /home/nnelson/Documents/llvm-project/build/lib -fopenmp-targets=x86_64-pc-linux-gnu /home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp -o /home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget/test/offloading/Output/memory_manager.cpp.tmp-x86_64-pc-linux-gnu && /home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget/test/offloading/Output/memory_manager.cpp.tmp-x86_64-pc-linux-gnu | /home/nnelson/Documents/llvm-project/build/./bin/FileCheck /home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp : 'RUN: at line 5'; echo ignored-command
Exit Code: 2
Command Output (stdout):
$ ":" "RUN: at line 1" note: command had no output on stdout or stderr $ "echo" "ignored-command"
command output:
ignored-command
$ ":" "RUN: at line 2" note: command had no output on stdout or stderr $ "echo" "ignored-command"
command output:
ignored-command
$ ":" "RUN: at line 3" note: command had no output on stdout or stderr $ "echo" "ignored-command"
command output:
ignored-command
$ ":" "RUN: at line 4" note: command had no output on stdout or stderr $ "/home/nnelson/Documents/llvm-project/build/./bin/clang++" "-fopenmp" "-pthread" "-fno-experimental-isel" "-I" "/home/nnelson/Documents/llvm-project/openmp/libomptarget/test" "-I" "/home/nnelson/Documents/llvm-project/build/projects/openmp/runtime/src" "-L" "/home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget" "-L" "/home/nnelson/Documents/llvm-project/build/lib" "-fopenmp-targets=x86_64-pc-linux-gnu" "/home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp" "-o" "/home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget/test/offloading/Output/memory_manager.cpp.tmp-x86_64-pc-linux-gnu" note: command had no output on stdout or stderr $ "/home/nnelson/Documents/llvm-project/build/projects/openmp/libomptarget/test/offloading/Output/memory_manager.cpp.tmp-x86_64-pc-linux-gnu"
command stderr:
memory_manager.cpp.tmp-x86_64-pc-linux-gnu: /home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp:37: int main(int, char **): Assertion `buffer[j] == i' failed.
error: command failed with exit status: -6 $ "/home/nnelson/Documents/llvm-project/build/./bin/FileCheck" "/home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp"
command stderr:
FileCheck error: '' is empty.
FileCheck command line: /home/nnelson/Documents/llvm-project/build/./bin/FileCheck /home/nnelson/Documents/llvm-project/openmp/libomptarget/test/offloading/memory_manager.cpp
error: command failed with exit status: 2 This bug obtained with the following processing. Xubuntu 20.10.
From the Ubuntu distribution clang++ --version Ubuntu clang version 11.0.0-2
git command executed close to 9pm Mar. 9, 2021, Mountain Standard Time. git clone https://github.com/llvm/llvm-project.git cd llvm-project mkdir build cd build
cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;llvm;clang-tools-extra;compiler-rt;flang;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;parallel-libs;polly;pstl;utils" -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE="Release" -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_LIBPFM=OFF -DRUN_HAVE_GNU_POSIX_REGEX=0 -DLLVM_LIBC_ENABLE_LINTING=ON -Wno-dev ../llvm &> ~/Documents/cmake.log
ninja -j 31 &> ~/Documents/ninja.log ninja -j 31 check-all &> ~/Documents/check-all.log
From check-all.log Failed Tests (11): Builtins-i386-linux :: muldc3_test.c HWAddressSanitizer-x86_64 :: TestCases/global.c SanitizerCommon-asan-i386-Linux :: Linux/crypt_r.cpp SanitizerCommon-asan-i386-Linux :: Posix/crypt.cpp SanitizerCommon-lsan-i386-Linux :: Linux/crypt_r.cpp SanitizerCommon-lsan-i386-Linux :: Posix/crypt.cpp SanitizerCommon-ubsan-i386-Linux :: Linux/crypt_r.cpp SanitizerCommon-ubsan-i386-Linux :: Posix/crypt.cpp libomptarget :: offloading/memory_manager.cpp libomptarget :: offloading/parallel_offloading_map.cpp lldb-api :: tools/lldb-vscode/runInTerminal/TestVSCode_runInTerminal.py
Testing Time: 467.65s Unsupported : 23487 Passed : 66034 Expectedly Failed: 168 Failed : 11