This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20539] New: GCC 7 -static -lm fails to link at -O3
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 30 Aug 2016 17:56:45 +0000
- Subject: [Bug math/20539] New: GCC 7 -static -lm fails to link at -O3
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20539
Bug ID: 20539
Summary: GCC 7 -static -lm fails to link at -O3
Product: glibc
Version: 2.24
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: andrew.n.senkevich at gmail dot com
Target Milestone: ---
Since SIMD is enabled via bits/math-vector.h with GCC 7 at -O3,
-static -lm fails to link with:
foo.c:(.text+0x2525): undefined reference to `_ZGVbN2v___exp_finite'
Without -static, -lm implies libmvec.so.1:
[hjl@gnu-4 ~]$ cat /usr/lib64/libm.so
/* GNU ld script
*/
OUTPUT_FORMAT(elf64-x86-64)
GROUP ( /lib64/libm.so.6 AS_NEEDED ( /usr/lib64/libmvec_nonshared.a
/lib64/libmvec.so.1 ) )
[hjl@gnu-4 ~]$
Should "make install" add libmvec.a to libm.a?
--
You are receiving this mail because:
You are on the CC list for the bug.