[GHC] #10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac
GHC
ghc-devs at haskell.org
Thu Jun 25 21:51:55 UTC 2015
#10568: Regression from 7.8.4, loading GLUT into GHCI fails on the Mac
-------------------------------+-----------------------------------------
Reporter: George | Owner:
Type: bug | Status: infoneeded
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64 (amd64)
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------+-----------------------------------------
Comment (by George):
Replying to [comment:5 rwbarton]:
> Right, it's not #10322, but rather #10458.
Sorry I don't understand how it can be #10458, can you explain?
The error I reported
{{{
<command line>: can't load .so/.DLL for:
/Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
-4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib
(dlopen(/Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
-4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib, 5): Symbol not found:
_glutBitmap8By13
Referenced from:
/Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
-4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib
Expected in: flat namespace
in
/Library/Haskell/ghc-7.10.1.20150612-x86_64/lib/GLUT-2.7.0.1/libHSGLUT-2.7.0.1
-4wlNyqnZsQF9mL67dfVCyA-ghc7.10.1.20150612.dylib)
}}}
seeems quite different than the one in #10458:
{{{
Preprocessing executable 'etamoo' for EtaMOO-0.2.1.0...
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
/usr/bin/ld: dist/build/etamoo/etamoo-tmp/src/cbits/crypt.o: relocation
R_X86_64_PC32 against undefined symbol `crypt' can not be used when making
a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
}}}
In addition #10458 does not mention regression and it is on Linux. This
bug is a regression from 7.8.4 and happens on the Mac but not on Linux.
From https://github.com/haskell-opengl/GLUT/issues/19:
{{{
I checked it under GHC 7.8.4 and
$ ghci -package GLUT
works fine (loads the package and shows the prompt).
...
OK, so this seems to be unrelated to TH and to the specific Mac OS X
version. Do you have GHC 7.8.3 or 7.8.4 on your Mac to check if this is a
GHC 7.10 regression? In the meantime I'll try to get 7.10 running on a
Mac, but this might take some time, normally I develop on Windows + Linux
only, so some help would be appreciated.
...
The consensus seems to be that this is a GHC 7.8.4 => 7.10.1 regression
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10568#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list