This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20723] Static linking fails on Haswell and Sandy Bridge
- From: "rlcamp.pdx at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 20 Oct 2016 12:53:35 +0000
- Subject: [Bug math/20723] Static linking fails on Haswell and Sandy Bridge
- Auto-submitted: auto-generated
- References: <bug-20723-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20723
--- Comment #1 from rlcamp.pdx at gmail dot com ---
The following code example and compile line triggers the error. Code is taken
verbatim from the glibc wiki:
#include <math.h>
int N = 3200;
double b[3200];
double a[3200];
int main (void)
{
int i;
for (i = 0; i < N; i += 1)
{
b[i] = sin (a[i]);
}
return (0);
}
cc -static -Ofast -march=haswell -o test test.c -lm
/tmp/ccIWFVL3.o: In function `main':
test.c:(.text.startup+0x14a): undefined reference to `_ZGVdN4v_sin'
collect2: error: ld returned 1 exit status
--
You are receiving this mail because:
You are on the CC list for the bug.