GCC and UBsan for Hurd?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GCC and UBsan for Hurd?

Jeffrey Walton-3
Hi Everyone,

I'm trying to build a debug configuration with UBsan:

$ g++ -DDEBUG -g2 -O1 -fsanitize=undefined TestPrograms/test_cxx.cxx
/usr/bin/ld: cannot find -lubsan

Apt-cache is returning a lot of hits for UBsan, but they seem to be
for cross-compiles.

What package do I use for Hurd?

Thanks in advance.

-----

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Hurd buster/sid
Release:        unstable
Codename:       sid

$ apt-cache search ubsan
lib32ubsan0-amd64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan0-s390x-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib64ubsan0-i386-cross - UBSan -- undefined behaviour sanitizer (64bit)
libubsan0-amd64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-arm64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-armel-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-armhf-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-i386-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-ppc64el-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-s390x-cross - UBSan -- undefined behaviour sanitizer (runtime)
libx32ubsan0-amd64-cross - UBSan -- undefined behaviour sanitizer (x32)
libx32ubsan0-i386-cross - UBSan -- undefined behaviour sanitizer (x32)
lib32ubsan0-ppc64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan0-sparc64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan0-x32-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib64ubsan0-powerpc-cross - UBSan -- undefined behaviour sanitizer (64bit)
lib64ubsan0-x32-cross - UBSan -- undefined behaviour sanitizer (64bit)
libubsan0-powerpc-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-ppc64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-sparc64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan0-x32-cross - UBSan -- undefined behaviour sanitizer (runtime)
lib32ubsan1-amd64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan1-s390x-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib64ubsan1-i386-cross - UBSan -- undefined behaviour sanitizer (64bit)
libubsan1-amd64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-arm64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-armel-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-armhf-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-i386-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-ppc64el-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-s390x-cross - UBSan -- undefined behaviour sanitizer (runtime)
libx32ubsan1-amd64-cross - UBSan -- undefined behaviour sanitizer (x32)
libx32ubsan1-i386-cross - UBSan -- undefined behaviour sanitizer (x32)
lib32ubsan1-ppc64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan1-sparc64-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib32ubsan1-x32-cross - UBSan -- undefined behaviour sanitizer (32bit)
lib64ubsan1-powerpc-cross - UBSan -- undefined behaviour sanitizer (64bit)
lib64ubsan1-x32-cross - UBSan -- undefined behaviour sanitizer (64bit)
libubsan1-powerpc-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-ppc64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-sparc64-cross - UBSan -- undefined behaviour sanitizer (runtime)
libubsan1-x32-cross - UBSan -- undefined behaviour sanitizer (runtime)

Reply | Threaded
Open this post in threaded view
|

Re: GCC and UBsan for Hurd?

Samuel Thibault-8
Hello,

Jeffrey Walton, le dim. 03 févr. 2019 10:20:19 -0500, a ecrit:
> I'm trying to build a debug configuration with UBsan:
>
> $ g++ -DDEBUG -g2 -O1 -fsanitize=undefined TestPrograms/test_cxx.cxx
> /usr/bin/ld: cannot find -lubsan

I don't think anybody took the time to fix the missing bits for gcc's
usan on GNU/Hurd

Samuel