This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/20469] New: [x86_64] Link fail with -fopenmp and -ffast-math
- From: "guanx.bac at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 14 Aug 2016 19:33:02 +0000
- Subject: [Bug math/20469] New: [x86_64] Link fail with -fopenmp and -ffast-math
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20469
Bug ID: 20469
Summary: [x86_64] Link fail with -fopenmp and -ffast-math
Product: glibc
Version: 2.24
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: guanx.bac at gmail dot com
CC: andrew.n.senkevich at gmail dot com, hjl.tools at gmail dot com,
jsm28 at gcc dot gnu.org, kirill.yukhin at intel dot com
Target Milestone: ---
+++ This bug was initially created as a clone of Bug #19058 +++
-bash-4.2$ cat test.c
#include <math.h>
#define size 4096
double x[size];
double y[size];
__attribute__((noinline))
int foo()
{
int i;
#pragma omp simd
for (i = 0; i < size; i++)
{
x[i] = log(y[i]);
}
return (int) x[0];
}
int main()
{
int i = 0;
for (i = 0; i < size; i++)
{
y[i] = sin(i);
}
return (foo());
}
-bash-4.2$ gcc -O1 -fopenmp -ffast-math test.c -lm
/tmp/cccKGzmh.o: In function `foo':
test.c:(.text+0xf): undefined reference to `_ZGVbN2v___log_finite'
collect2: error: ld returned 1 exit status
gcc version 5.3.0
glibc version 2.23
Linux distribution Slackware64-14.2.
Tried to upgrade to gcc 5.4.0 and/or glibc 2.24 but the error persists.
Related discussion: https://sourceware.org/ml/libc-alpha/2015-06/msg00213.html
--
You are receiving this mail because:
You are on the CC list for the bug.