#7234: Linker spews useless error message and failes.
------------------------------+---------------------------------------------
Reporter: timthelion | Owner:
Type: bug | Status: new
Priority: normal | Component: Build System
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by timthelion):
After working with mcstar on IRC for a few hours(He was able to confirm
the bug. He is also using 7.4.2). He found the following work around for
building programs with this package:
{{{
[timothy@timothy implicitCAD]$ cat implicitTest.hsimport Graphics.Implicit
main = do
writeSTL 1 "foo.stl" $ rect3R 0 (0,0,0) (0,0,0)
return ()
}}}
{{{
[timothy@timothy implicitCAD]$ ghc implicitTest.hs Linking implicitTest
...
/home/timothy/.cabal/lib/implicit-0.0.2/ghc-7.4.2/libHSimplicit-0.0.2.a(PolylineFormats.o):
In function `sWQt_info':
(.text+0x4322): undefined reference to
`implicitzm0zi0zi2_GraphicsziImplicitziExportziTextBuilderUtils_zdwbuildTruncFloat_info'
/home/timothy/.cabal/lib/implicit-0.0.2/ghc-7.4.2/libHSimplicit-0.0.2.a(PolylineFormats.o):
In function `sWQu_info':
(.text+0x439a): undefined reference to
`implicitzm0zi0zi2_GraphicsziImplicitziExportziTextBuilderUtils_zdwbuildTruncFloat_info'
/home/timothy/.cabal/lib/implicit-0.0.2/ghc-7.4.2/libHSimplicit-0.0.2.a(PolylineFormats.o):
In function `rVMV_srt':
(.data+0x910): undefined reference to
`implicitzm0zi0zi2_GraphicsziImplicitziExportziTextBuilderUtils_zdwbuildTruncFloat_closure'
collect2: error: ld returned 1 exit status
}}}
{{{
[timothy@timothy implicitCAD]$ ghc --make implicitTest.hs ~/resources
/software-
other/ImplicitCAD/dist/build/Graphics/Implicit/Export/TextBuilderUtils.o
Linking implicitTest ...
[timothy@timothy implicitCAD]$
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7234#comment:3>
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