OpenGL failing with Mac Intel 6.6 distribution

I'm attempting to build frag on Mac OS X Intel with the 6.6 distribution, and I hit the following: /tmp/ghc25850_0/ghc25850_0.hc:5:22: error: HsOpenGL.h: No such file or directory A comparison of the C include directories for 6.6 and a recent 6.5 build gives: $ diff -r /usr/local/lib/ghc-6.5.20061008/include/ /usr/local/lib/ ghc-6.6/include/ Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGL.h Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLExt.h Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLTypes.h Only in /usr/local/lib/ghc-6.6/include/: HsReadline.h Only in /usr/local/lib/ghc-6.6/include/: HsReadlineConfig.h diff -r /usr/local/lib/ghc-6.5.20061008/include/ghcautoconf.h /usr/ local/lib/ghc-6.6/include/ghcautoconf.h 130c130 < #define HAVE_LIBIBERTY 1 ---
/* #undef HAVE_LIBIBERTY */
Is the fact that HSOpenGL*.h is missing in 6.6 expected? Thanks, Deborah

Hi Deborah, On Oct 27, 2006, at 5:21 PM, Deborah Goldsmith wrote:
I'm attempting to build frag on Mac OS X Intel with the 6.6 distribution, and I hit the following:
/tmp/ghc25850_0/ghc25850_0.hc:5:22: error: HsOpenGL.h: No such file or directory
A comparison of the C include directories for 6.6 and a recent 6.5 build gives:
$ diff -r /usr/local/lib/ghc-6.5.20061008/include/ /usr/local/lib/ ghc-6.6/include/ Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGL.h Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLExt.h Only in /usr/local/lib/ghc-6.5.20061008/include/: HsOpenGLTypes.h Only in /usr/local/lib/ghc-6.6/include/: HsReadline.h Only in /usr/local/lib/ghc-6.6/include/: HsReadlineConfig.h diff -r /usr/local/lib/ghc-6.5.20061008/include/ghcautoconf.h /usr/ local/lib/ghc-6.6/include/ghcautoconf.h 130c130 < #define HAVE_LIBIBERTY 1 ---
/* #undef HAVE_LIBIBERTY */
Is the fact that HSOpenGL*.h is missing in 6.6 expected?
On my OS X ppc/ghc-6.6 system, I found HsOpenGL.h in /opt/local/lib/ghc-6.6/include/HsOpenGL.h (this is ghc-6.6 built from source with MacPorts.) My guess is that your compiler was built without OpenGL support. If you downloaded a binary compiler, you're stuck until someone adds it. Look at the output of ghc-pkg list Do you see GLUT-* andfOpenGL-* ? If not, you do not have OpenGL support. If you built your ghc from source, make sure you have enabled hopengl that the opengl libraries are found (save the build logs and look in the configuration sections). best wishes, Greg
Thanks, Deborah
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On Oct 28, 2006, at 10:14 AM, Gregory Wright wrote:
My guess is that your compiler was built without OpenGL support. If you downloaded a binary compiler, you're stuck until someone adds it. Look at the output of
ghc-pkg list
Do you see GLUT-* andfOpenGL-* ? If not, you do not have OpenGL support.
$ ghc-pkg list /usr/local/lib/ghc-6.6/package.conf: Cabal-1.1.6, GLUT-2.0, HGL-3.1, HUnit-1.1, OpenGL-2.1, QuickCheck-1.0, X11-1.1, base-2.0, cgi-2006.9.6, fgl-5.2, (ghc-6.6), haskell-src-1.0, haskell98-1.0, html-1.0, mtl-1.0, network-2.0, parsec-2.0, readline-1.0, regex-base-0.71, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.0, time-1.0, unix-1.0, xhtml-2006.9.13 Since it failed at the gcc stage rather than the ghc stage, I don't think that it's that the package wasn't installed. I think something about the way the distribution was put together is wrong.
If you built your ghc from source, make sure you have enabled hopengl that the opengl libraries are found (save the build logs and look in the configuration sections).
This is the binary Intel build that is listed on the GHC 6.6 downloads page. It looks like something is wrong with that build. I guess I'll try building it from source instead. Deborah

On Oct 28, 2006, at 1:41 PM, Deborah Goldsmith wrote:
On Oct 28, 2006, at 10:14 AM, Gregory Wright wrote:
My guess is that your compiler was built without OpenGL support. If you downloaded a binary compiler, you're stuck until someone adds it. Look at the output of
ghc-pkg list
Do you see GLUT-* andfOpenGL-* ? If not, you do not have OpenGL support.
$ ghc-pkg list /usr/local/lib/ghc-6.6/package.conf: Cabal-1.1.6, GLUT-2.0, HGL-3.1, HUnit-1.1, OpenGL-2.1, QuickCheck-1.0, X11-1.1, base-2.0, cgi-2006.9.6, fgl-5.2, (ghc-6.6), haskell-src-1.0, haskell98-1.0, html-1.0, mtl-1.0, network-2.0, parsec-2.0, readline-1.0, regex-base-0.71, regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.0, time-1.0, unix-1.0, xhtml-2006.9.13
Since it failed at the gcc stage rather than the ghc stage, I don't think that it's that the package wasn't installed. I think something about the way the distribution was put together is wrong.
If you built your ghc from source, make sure you have enabled hopengl that the opengl libraries are found (save the build logs and look in the configuration sections).
This is the binary Intel build that is listed on the GHC 6.6 downloads page. It looks like something is wrong with that build. I guess I'll try building it from source instead.
If you build from source make sure you have Xcode 2.4 (the latest). I'm getting reports of build problems on OS X/Intel, which seem to all be related to older versions of Xcode. Greg
Deborah
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Am Samstag, 28. Oktober 2006 19:41 schrieb Deborah Goldsmith:
[...] Since it failed at the gcc stage rather than the ghc stage, I don't think that it's that the package wasn't installed. I think something about the way the distribution was put together is wrong. [...]
The diff you've sent earlier and the package list really look like a packaging bug. In the installed include directory (no idea where it is on Macs, it is the same place where e.g. Stg.h lives) there should be HsOpenGL*.h files, HsGLUT*.h files, etc. Can you mail a listing of that directory, please? Cheers, S.

On Oct 30, 2006, at 7:53 AM, Sven Panne wrote:
Am Samstag, 28. Oktober 2006 19:41 schrieb Deborah Goldsmith:
[...] Since it failed at the gcc stage rather than the ghc stage, I don't think that it's that the package wasn't installed. I think something about the way the distribution was put together is wrong. [...]
The diff you've sent earlier and the package list really look like a packaging bug. In the installed include directory (no idea where it is on Macs, it is the same place where e.g. Stg.h lives) there should be HsOpenGL*.h files, HsGLUT*.h files, etc. Can you mail a listing of that directory, please?
Here is a listing from the installed directory: $ ls /usr/local/lib/ghc-6.6/include/ Block.h HsBaseConfig.h Liveness.h STM.h Typeable.h Bytecodes.h HsFFI.h MachDeps.h SchedAPI.h WCsubst.h CTypes.h HsGLUT.h MachRegs.h Signals.h config.h ClosureMacros.h HsGLUTConfig.h OSThreads.h Stable.h consUtils.h ClosureTypes.h HsGLUTExt.h Parallel.h Stg.h dirUtils.h Closures.h HsNet.h Regs.h StgDLL.h fpstring.h Cmm.h HsNetworkConfig.h Rts.h StgFun.h ghcautoconf.h Constants.h HsReadline.h RtsAPI.h StgLdvProf.h ghcconfig.h DNInvoke.h HsReadlineConfig.h RtsConfig.h StgMiscClosures.h ghcplatform.h DerivedConstants.h HsUnix.h RtsExternal.h StgProf.h gmp.h Dotnet.h HsUnixConfig.h RtsFlags.h StgTicky.h ieee-flpt.h GHCConstants.h HsX11Config.h RtsMessages.h StgTypes.h lockFile.h GranSim.h HsXlib.h RtsTypeable.h Storage.h runProcess.h Hooks.h InfoTables.h RtsTypes.h TSO.h timeUtils.h HsBase.h Linker.h SMP.h TailCalls.h Here is a listing from the corresponding directory in the untar'ed binary distribution: ~/Work/source/ghc-6.6 debbie$ ls lib/i386-apple-darwin/include/ Block.h HsBaseConfig.h Liveness.h STM.h Typeable.h Bytecodes.h HsFFI.h MachDeps.h SchedAPI.h WCsubst.h CTypes.h HsGLUT.h MachRegs.h Signals.h config.h ClosureMacros.h HsGLUTConfig.h OSThreads.h Stable.h consUtils.h ClosureTypes.h HsGLUTExt.h Parallel.h Stg.h dirUtils.h Closures.h HsNet.h Regs.h StgDLL.h fpstring.h Cmm.h HsNetworkConfig.h Rts.h StgFun.h ghcautoconf.h Constants.h HsReadline.h RtsAPI.h StgLdvProf.h ghcconfig.h DNInvoke.h HsReadlineConfig.h RtsConfig.h StgMiscClosures.h ghcplatform.h DerivedConstants.h HsUnix.h RtsExternal.h StgProf.h gmp.h Dotnet.h HsUnixConfig.h RtsFlags.h StgTicky.h ieee-flpt.h GHCConstants.h HsX11Config.h RtsMessages.h StgTypes.h lockFile.h GranSim.h HsXlib.h RtsTypeable.h Storage.h runProcess.h Hooks.h InfoTables.h RtsTypes.h TSO.h timeUtils.h HsBase.h Linker.h SMP.h TailCalls.h Also: ~/Work/source/ghc-6.6 debbie$ find . -name 'HSOpenGL*' -print ./lib/i386-apple-darwin/HSOpenGL.o Since the files are not in the distribution itself, they can hardly be installed. :-) It looks like the Mac OS X Intel distribution has a problem. I'll check the PPC distribution later to see if it has the same problem. Deborah

On Oct 30, 2006, at 8:47 AM, Deborah Goldsmith wrote:
Since the files are not in the distribution itself, they can hardly be installed. :-) It looks like the Mac OS X Intel distribution has a problem. I'll check the PPC distribution later to see if it has the same problem.
I checked and the Mac OS X PowerPC binary distribution does not have this problem; only Mac OS X Intel. Deborah

Deborah Goldsmith
I checked and the Mac OS X PowerPC binary distribution does not have this problem; only Mac OS X Intel.
Is it possible that the Intel distro built the OpenGL package using Cabal, but the PowerPC distro used Makefiles? I seem to recall there was some issue with Cabal failing to copy C header files to the final installed location? Regards, Malcolm
participants (4)
-
Deborah Goldsmith
-
Gregory Wright
-
Malcolm Wallace
-
Sven Panne