[llvm-bugs] [Bug 45034] New: Code compiled with -Ofast fails to find math symbols. (eg `__expf_finite')
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 26 10:12:40 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=45034
Bug ID: 45034
Summary: Code compiled with -Ofast fails to find math symbols.
(eg `__expf_finite')
Product: clang
Version: 9.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: nheart at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 23175
--> https://bugs.llvm.org/attachment.cgi?id=23175&action=edit
simple testcase.
Hey,
After some recent changes, various projects fail to compile with clang when
using -Ofast ( or -O2 -ffast-math ). Example bugs from the web:
https://github.com/cms-sw/cmssw/issues/24935
https://github.com/dpiparo/vdt/issues/11
https://bugs.archlinux.org/task/65541
I have attached a sample file that triggers the bug, taken from the Arch
bugtracker:
clang++ bug.cpp works
clang++ bug.cpp -Ofast fails with:
/usr/bin/ld: /tmp/bug-6a1f7c.o: in function `main':
bug.cpp:(.text+0xd): undefined reference to `__expf_finite'
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
According to the arch user, this is likely related to
https://reviews.llvm.org/D74712
Cheers,
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200226/8aad1d25/attachment.html>
More information about the llvm-bugs
mailing list