[Bug 49588] Cannot build wine with GCC 10 and Address Sanitizer
WineHQ Bugzilla
wine-bugs at winehq.org
Tue Jul 21 06:49:13 CDT 2020
https://bugs.winehq.org/show_bug.cgi?id=49588
--- Comment #4 from Rafał Mikrut <mikrutrafal at protonmail.com> ---
Configuring Wine with commands like
```
./configure --enable-win64 CFLAGS="-Og -fsanitize=undefined"
LDFLAGS="-fsanitize=undefined"
./configure --enable-win64
```
works fine, but adding only -fsanitize=address to compiler flags broke
generating makefile
```
./configure --enable-win64 CFLAGS="-fsanitize=address"
```
It also doesn't work with GCC 9.3
There is another bug with compiling Wine with Undefined sanitizers support:
```
./configure --enable-win64 CFLAGS="-Og -fsanitize=undefined"
LDFLAGS="-fsanitize=undefined"
make -j8
```
make command cause this errors
```
/usr/bin/ld: preloader.o: in function `map_so_lib':
preloader.c:(.text+0x28bc): undefined reference to
`__ubsan_handle_pointer_overflow'
/usr/bin/ld: preloader.c:(.text+0x2aa5): undefined reference to
`__ubsan_handle_type_mismatch_v1'
/usr/bin/ld: preloader.c:(.text+0x2ab9): undefined reference to
`__ubsan_handle_pointer_overflow'
/usr/bin/ld: preloader.c:(.text+0x2acd): undefined reference to
`__ubsan_handle_type_mismatch_v1'
/usr/bin/ld: preloader.c:(.text+0x2ae1): undefined reference to
`__ubsan_handle_type_mismatch_v1'
```
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list