Shadow_Fury Apprentice
Joined: 20 Apr 2021 Posts: 184 Location: 11.435765792823453, 143.05926743686274
|
Posted: Tue Aug 13, 2024 10:28 pm Post subject: LLVM fails to pass BasicAllignedArray unit test |
|
|
When building LLVM with the -test flag, it fails 1 unit test:
Code: |
********************
Failed Tests (1):
LLVM-Unit :: Support/./SupportTests/AlignOfTest/BasicAlignedArray
|
scrolling up in the build log gets me this (when building sys-devel/llvm-17.0.6) :
Code: |
******************** TEST 'LLVM-Unit :: Support/./SupportTests/0/21' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm_build-abi_x86_32.x86/unittests/Support/./SupportTests-LLVM-Unit-3356-0-21.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=21 GTEST_SHARD_INDEX=0 /var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm_build-abi_x86_32.x86/unittests/Support/./SupportTests
--
Script:
--
/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm_build-abi_x86_32.x86/unittests/Support/./SupportTests --gtest_filter=AlignOfTest.BasicAlignedArray
--
/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm/unittests/Support/AlignOfTest.cpp:132: Failure
Expected equality of these values:
alignof(T<long long>)
Which is: 4
alignof(AlignedCharArrayUnion<long long>)
Which is: 8
/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm/unittests/Support/AlignOfTest.cpp:140: Failure
Expected equality of these values:
alignof(T<double>)
Which is: 4
alignof(AlignedCharArrayUnion<double>)
Which is: 8
/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm/unittests/Support/AlignOfTest.cpp:132
Expected equality of these values:
alignof(T<long long>)
Which is: 4
alignof(AlignedCharArrayUnion<long long>)
Which is: 8
/var/tmp/portage/sys-devel/llvm-17.0.6/work/llvm/unittests/Support/AlignOfTest.cpp:140
Expected equality of these values:
alignof(T<double>)
Which is: 4
alignof(AlignedCharArrayUnion<double>)
Which is: 8
********************
|
when building 18.1.8-r1, the same test errors, but with the following instead:
Code: |
******************** TEST 'LLVM-Unit :: Support/./SupportTests/0/21' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
File "/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/utils/lit/lit/worker.py", line 76, in _execute_test_handle_errors
result = test.config.test_format.execute(test, lit_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/utils/lit/lit/formats/googletest.py", line 247, in execute
test_out = get_test_stdout(testname)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/utils/lit/lit/formats/googletest.py", line 223, in get_test_stdout
assert False, f"gtest did not report the result for " + test_name
^^^^^
AssertionError: gtest did not report the result for AlignOfTest.BasicAlignedArray
|
running /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-abi_x86_32.x86/unittests/Support/SupportTests gives the following:
Code: |
[----------] 1 test from AlignOfTest
[ RUN ] AlignOfTest.BasicAlignedArray
/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/unittests/Support/AlignOfTest.cpp:132: Failure
Expected equality of these values:
alignof(T<long long>)
Which is: 4
alignof(AlignedCharArrayUnion<long long>)
Which is: 8
/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/unittests/Support/AlignOfTest.cpp:140: Failure
Expected equality of these values:
alignof(T<double>)
Which is: 4
alignof(AlignedCharArrayUnion<double>)
Which is: 8
[ FAILED ] AlignOfTest.BasicAlignedArray (0 ms)
[----------] 1 test from AlignOfTest (0 ms total)
|
/var/tmp/portage/sys-devel/llvm-18.1.8-r1/temp/build.log
/var/tmp/portage/sys-devel/llvm-17.0.6/temp/build.log
this is a hardened LLVM-based system
any help figuring this out is appreciated. if you need more details, i'm happy to provide. |
|