Skip to content
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

ld.lld: error: undefined symbol: __ubsan_handle_type_mismatch_v1 #26975

Closed
tpgxyz opened this issue Mar 24, 2023 · 4 comments
Closed

ld.lld: error: undefined symbol: __ubsan_handle_type_mismatch_v1 #26975

tpgxyz opened this issue Mar 24, 2023 · 4 comments
Labels
bug 🐛 Programming errors, that need preferential fixing not-our-bug

Comments

@tpgxyz
Copy link
Contributor

tpgxyz commented Mar 24, 2023

systemd version the issue has been seen with

git shapshot from 2023-03-24

Used distribution

OpenMandriva cooker

Linux kernel version used

6.2.7-server-1omv2390

CPU architectures issue was seen on

None

Component

No response

Expected behaviour you didn't see

Compile and link without errors

Unexpected behaviour you saw

https://gist.github.com/tpgxyz/0536fedb0b06fbcf7d4bebe9f278ab21

Steps to reproduce the problem

Compile with LLVM/clang-16.x a systemd git snapshot form 2023-03-24
Full logs avaiable here https://abf.openmandriva.org/build_lists/296258

Additional program output to the terminal or log subsystem illustrating the issue

https://gist.github.com/tpgxyz/0536fedb0b06fbcf7d4bebe9f278ab21
@tpgxyz tpgxyz added the bug 🐛 Programming errors, that need preferential fixing label Mar 24, 2023
@medhefgo
Copy link
Contributor

medhefgo commented Mar 24, 2023

With clang you need to pass -Db_lundef=false to meson to make sanitizers work.

See: mesonbuild/meson#3853

And indeed, the meson logs contains a warning:

meson.build:4906: WARNING: Trying to use undefined sanitizer on Clang with b_lundef.

@medhefgo
Copy link
Contributor

Closing this, as it's a meson bug.

@tpgxyz
Copy link
Contributor Author

tpgxyz commented Mar 26, 2023

@medhefgo hi i tried to build systemd with -Db_lundef=false and meson warning is gone, yet systemd fails to build as with the same error as original. Please take a second look.

https://abf.openmandriva.org/build_lists/296356

@medhefgo
Copy link
Contributor

LDFLAGS contains -Wl,--no-undefined. Either strip that or append -z undefs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing not-our-bug
Development

No branches or pull requests

2 participants