This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/59962] New: --with-build-config=bootstrap-asan doesn't work
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Jan 2014 20:19:21 +0000
- Subject: [Bug sanitizer/59962] New: --with-build-config=bootstrap-asan doesn't work
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59962
Bug ID: 59962
Summary: --with-build-config=bootstrap-asan doesn't work
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
When GCC is configured with --with-build-config=bootstrap-asan,
bootstrap fails with
/export/build/gnu/gcc-asan/build-x86_64-linux/./gcc/xgcc
-B/export/build/gnu/gcc-asan/build-x86_64-linux/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -static-libstdc++
-static-libgcc -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o
fixlib.o fixopts.o ../libiberty/libiberty.a
../libiberty/libiberty.a(regex.o): In function `byte_compile_range':
/export/gnu/import/git/gcc/libiberty/regex.c:4495: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4449: undefined reference to
`__asan_report_load8'
/export/gnu/import/git/gcc/libiberty/regex.c:4499: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4499: undefined reference to
`__asan_report_store1'
/export/gnu/import/git/gcc/libiberty/regex.c:4499: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4499: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4495: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4495: undefined reference to
`__asan_report_load1'
/export/gnu/import/git/gcc/libiberty/regex.c:4489: undefined reference to
`__asan_report_load1'
../libiberty/libiberty.a(regex.o): In function
`byte_common_op_match_null_string_p':
...
fixincl isn't compiled/linked with -fsanitize=address, but libiberty
it linked against is. A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2012-11/msg02467.html