[Bug 42436] New: Wine Wiki: Building Wine - Memory & Address Checkers
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Feb 12 17:50:42 CST 2017
https://bugs.winehq.org/show_bug.cgi?id=42436
Bug ID: 42436
Summary: Wine Wiki: Building Wine - Memory & Address Checkers
Product: WineHQ.org
Version: unspecified
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: www-unknown
Assignee: wine-bugs at winehq.org
Reporter: wylda at volny.cz
Distribution: ---
I don't know, if anyone tried recently follow wiki link:
https://wiki.winehq.org/Building_Wine#Memory_.26_Address_Checkers
This link mentions "...you only need to pass the -fsanitize=address flag to the
compiler when building"
../wine-source/configure CFLAGS="-g -O1 -fsanitize=address -other-flags"
But this fails soon in make_xftmpl.o: In function fatal_error':
..../tools/make_xftmpl.c:116: undefined reference to
`__asan_option_detect_stack_use_after_return'
..../tools/make_xftmpl.c:116: undefined reference to `__asan_stack_malloc_1'
Passing LIBS="-lasan" to configure fixes this, but build fails anyway at cca
63%:
..../dlls/ntdll/loader.c:2979: undefined reference to `pthread_sigmask'
Per some gentoo wiki:
Some configure scripts test the need of the -lpthread compiler flag by testing
whether the function pthread_create() is available without it. The Address
Sanitizer library (libasan) provides this function. However it does not have a
full pthread implementation, more advanced pthread functions aren't provided.
Therefore the compilation fails. A workaround is to add the -lpthread compiler
flag manually.
Passing LIBS="-lasan -lpthread" to configure fixes this issue, but anyway fails
at the end:
../tools/sfnt2fon/sfnt2fon -o coue1255.fon ../../wine_git_src/fonts/courier.ttf
-d 128 13,1255,8
Makefile:174: recipe for target 'coue1255.fon' failed
==16755==ASan runtime does not come first in initial library list; you should
either link runtime to your application or manually preload it with LD_PRELOAD.
make[1]: *** [coue1255.fon] Error 1
make: *** [fonts] Error 2
Did anyone tried to follow that Wiki? I tried that on Debian Stretch.
Gcc (Debian 6.3.0-6) 6.3.0 20170205
--
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