[Bug 1028744] New: -fsanitize=address does not seem to work on non-x86
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744 Bug ID: 1028744 Summary: -fsanitize=address does not seem to work on non-x86 Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: msuchanek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- On armv7 aarch64 and s390x gcc complains -fsanitize=address is not supported which is generally fine and should be detected by the upstream build system. On ppc64 I get this: [ 25s] [25/26] cc -fsanitize=address -ggdb3 -fvar-tracking-assignments -flto -Og -ggdb3 -fvar-tracking-assignments -o illum-ctl .build-illum-ctl/main-ctl.c.o -lev -levdev [ 25s] FAILED: cc -fsanitize=address -ggdb3 -fvar-tracking-assignments -flto -Og -ggdb3 -fvar-tracking-assignments -o illum-ctl .build-illum-ctl/main-ctl.c.o -lev -levdev [ 25s] /usr/lib64/gcc/powerpc64le-suse-linux/4.8/../../../../powerpc64le-suse-linux/bin/ld: cannot find libasan_preinit.o: No such file or directory [ 25s] /usr/lib64/gcc/powerpc64le-suse-linux/4.8/../../../../powerpc64le-suse-linux/bin/ld: cannot find -lasan https://build.opensuse.org/package/live_build_log/home:michals/illum-asan/op... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
Michal Suchanek
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c1
--- Comment #1 from Michal Suchanek
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c2
Richard Biener
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c3
--- Comment #3 from Richard Biener
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c4
--- Comment #4 from Richard Biener
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c5
--- Comment #5 from Richard Biener
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c6
Michal Suchanek
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c7
Richard Biener
I cannot make it to build with the devel:gcc gcc.
I even removed the Leap repo but OBS still installs 22.2 revision of the compiler while devel:gcc has 174.1.
Installing the compiler in SLE does not give working environment because SLE does not have the libraries for building the package.
Still it can be tested much easier:
touch test.c gcc -fsanitize=address test.c test.c:1:0: warning: -fsanitize=address not supported for this target [enabled by default] /usr/lib64/gcc/powerpc64le-suse-linux/4.8/../../../../powerpc64le-suse-linux/ bin/ld: cannot find libasan_preinit.o: No such file or directory /usr/lib64/gcc/powerpc64le-suse-linux/4.8/../../../../powerpc64le-suse-linux/ bin/ld: cannot find -lasan collect2: error: ld returned 1 exit status gcc --version gcc (SUSE Linux) 4.8.5 rpm -qi gcc48 Name : gcc48 Version : 4.8.5 Release : 174.1
meaning it's still broken unless I am missing a library/plugin which does not have a strict dependency so would not be pulled with gcc.
Hm? It now works as expected (same behavior as on arm, now including the warning). -fsanitize=address is _not_ supported on ppc64le with GCC 4.8. Were you expecting it to work? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744
http://bugzilla.opensuse.org/show_bug.cgi?id=1028744#c8
Michal Suchanek
participants (1)
-
bugzilla_noreply@novell.com