
#12802: prototype mismatch with EFF_ from unregisterisered GHC when building ieee754 -------------------------------------+------------------------------------- Reporter: clint | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Incorrect result | Unknown/Multiple at runtime | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by slyfox): I think it was broken not by GHC but by a new libc that started exposing primitives named the same way. To stop GHC emitting incompatible proto we can add next* functions to whitelist: {{{ compiler/cmm/CLabel.hs-math_funs = mkUniqSet [ compiler/cmm/CLabel.hs- -- _ISOC99_SOURCE compiler/cmm/CLabel.hs- (fsLit "acos"), (fsLit "acosf"), (fsLit "acosh"), compiler/cmm/CLabel.hs- (fsLit "acoshf"), (fsLit "acoshl"), (fsLit "acosl"), }}} But I suspect it won't help you as ieee754 actually redefines at least 'nextup'. As a workaround ieee754 might like to rename C symbols to at least not clast with libc symbols. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12802#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler