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
b_sanitize=address requires b_lundef=false? #764
Comments
I tested this on Ubuntu and GCC works fine with A good start would probably be to file a Clang bug about this difference. IMHO it should not complain about missing asan symbols if linker flag |
My environment is centos 7 with gcc 4.8.5 and clang 3.4.2. It works fine with gcc but not clang - same as you on ubuntu. |
It seems like there is no resolution in sight to this in the upstream bug report. One guys says:
Then someone says:
Which meson doesn't have to care about - right? So maybe it's safe to have meson remove the |
Meson does not have functionality to set the default value of an option based on another option. Adding it would take a fair bit of work. |
Maybe output a warning or info string then? It took a fair bit of googling to figure out what was happening when I came across this issue. |
setting |
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build dbus-broker with clang and ASan/UBsan on OSS-Fuzz (google/oss-fuzz#7860) without sed scripts. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily. mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build n-dhcp4 with clang and ASan. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily: mesonbuild/meson#764 To get it to work the c-siphash submodule has to be bumped to at least c-util/c-siphash@203347c as well but it should probably be delayed until the next release or something like that. Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build n-dhcp4 with clang and ASan. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily: mesonbuild/meson#764 Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
to make it possible to build n-dhcp4 with clang and ASan. -Wl,--no-undefined is still passed by meson by default unless -Db_lundef is set to false explictily: mesonbuild/meson#764 To get it to work the c-siphash submodule has to be bumped to at least c-util/c-siphash@203347c as well but it should probably be delayed until the next release or something like that. Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru> #38
If I don't specify
-Db_lundef=false
at the same time I specify-Db_sanitize=address
I get linker errors when building shared objects.This caught me by surprise and took a while to figure out why the linker was failing.
Is it reasonable to automatically set
b_lundef
to false ifb_sanitize
is set to address (and possibly others)?The text was updated successfully, but these errors were encountered: