#3730: hp2ps: Deviation.c:(.text+0x42b): undefined reference to `sqrt'
-------------------------------+--------------------------------------------
Reporter: slyfox | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 6.10.4
Resolution: | Keywords: autoconf, libm
Os: Linux | Testcase:
Architecture: x86_64 (amd64) | Failure: Building GHC failed
-------------------------------+--------------------------------------------
Comment (by asuffield):
Why on earth is ghc linking libiberty anyway? That can't be right.
(Why does gentoo have a libiberty installed? That is not right)
All of this bug report is completely misleading. This has got nothing to
do with libbfd or libiberty, neither of which defines atan. The correct
diagnostic line was this one:
{{{
conftest.c:109: warning: conflicting types for built-in function 'atan'
}}}
Somebody added a builtin atan function to gcc. Hence, you no longer need
to link libm in order to use atan.
The test in configure.ac needs changing to check for sqrt. That's all.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3730#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs