-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lld test failures in release/18.x branch on MacOS #81967
Comments
@llvm/issue-subscribers-lld-elf Author: Tom Stellard (tstellar)
There are some lld tests that are failing on the release/18.x branch:
lld :: ELF/build-id.s It looks like something has changed the way that the build-ids are being calculated. I'm unable to bisect, because when I re-test commits that used to pass, they now fail. Full build logs are here: https://github.com/tstellar/llvm-project/actions/runs/7923959063/job/21634702772 cc @MaskRay |
tl;dr I suspect that The two tests compute a build ID and compare the output with a golden value.
This failure indicates that the linker output
Only 20 bytes (the build ID) are different. All the other bytes are equal. On a macOS 11 arm64 machine, the BLAKE3 result matches the value observed on Linux machines.
|
@tstellar CFLAGS/CXXFLAGS If
Cc @akyrtzi who added BLAKE3. |
@MaskRay The macos-13 builders are x86, will that option have any effect there? |
OK. Then perhaps check which SIMD implementation the macos-13 builder uses and macros BLAKE3_NO_SSE41/BLAKE3_NO_AVX2/BLAKE3_NO_AVX512 can be useful. |
I ran a test on every version of macOS available: I did another test with -DLLVM_DISABLE_ASSEMBLY_FILES=ON and this fixes the tests on macos-13, but it causes the Linux build to fail. It seems like it could be a bug in the assembler on macos-13? I can try to get the object files to compare between the different version of macOS. |
Here are the blake object files from macOS-12 (Good) and macOS-13 (Bad). |
The macOS-12 and macOS-13 runners both use the exact same CPU, and the blake3 feature detection reports AVX2 for both. |
The default compiler on macOS-12 is Apple Clang 14.0.0. so I tried using that compiler on macOS-13 and the tests pass. So there is some change between Apple Clang 14.0.0 and Apple Clang 15.0.0 compiler that caused this test to fail. |
Bump. Since release/18.x is approaching and the Apple Clang bug seems serious (BLAKE3 correctness), some actions need to taken. The easiest is probably to force |
This seems like a good idea to me 👍 |
…ang (#129) Two build-id related LLD tests are failing on the MacOS builder I am trying to bring up apparently due to a bug in the version of Apple clang installed on the machine. (See llvm/llvm-project#83940 and llvm/llvm-project#81967). The suggested workaround of adding `-DLLVM_DISABLE_ASSEMBLY_FILES=ON` seems to work on the bot, so add that to the configuration.
I noticed that Apple pushed out an update to the command line tools today which updated the clang version from |
See llvm#81967 (cherry picked from commit 175b533)
See llvm/llvm-project#81967. Adapted from upstream commit 175b533.
See llvm/llvm-project#81967. Adapted from upstream commit 175b533.
There are some lld tests that are failing on the release/18.x branch:
lld :: ELF/build-id.s
lld :: ELF/partition-notes.s
It looks like something has changed the way that the build-ids are being calculated. I'm unable to bisect, because when I re-test commits that used to pass, they now fail.
Full build logs are here: https://github.com/tstellar/llvm-project/actions/runs/7923959063/job/21634702772
Attached are some of the binary files produced by the failing tests.
lld-artifacts.zip
cc @MaskRay
The text was updated successfully, but these errors were encountered: