compiling OpenGL with GHc-6.2.1
Hi, I got the following error when trying to compile HOpenGL: ../../ghc/compiler/ghc-inplace -H16m -O -Wall -fffi -Iinclude '-#include "HsOpen GL.h"' -cpp -funbox-strict-fields -DCALLCONV=stdcall -package-name OpenGL -O -Rghc-timing -package base -split-objs -c Graphics/Rendering/OpenGL/GL/Query Utils.hs -o Graphics/Rendering/OpenGL/GL/QueryUtils.o -ohi Graphics/Rendering/O penGL/GL/QueryUtils.hi <<ghc: 1294308556 bytes, 4559 GCs, 29887002/51155388 avg/max bytes residency (12 samples), 140M in use, 0,01 INIT (0,00 elapsed), 29,17 MUT (35,93 elapsed), 45, 06 GC (45,40 elapsed) :ghc>> (cd Graphics/Rendering/OpenGL/GL/QueryUtils_split && C:/haskell/cygwin/bin/ld -r -x -o ../QueryUtils.o *.o); C:/haskell/cygwin/bin/ld: argument list too long make[2]: *** [Graphics/Rendering/OpenGL/GL/QueryUtils.o] Error 2 make[1]: *** [all] Error 1 make[1]: Leaving directory `/cygdrive/c/haskell/cvs/fptools/libraries' make: *** [build] Error 1 The procedure I did was: cvs co fptools cd fptools autoreconf $ ./configure --host=i386-unknown-mingw32 --with-gcc=c:/mingw/bin/gcc --enable-hopengl make all Thanks, -- Andre
Andre W B Furtado wrote:
Hi, I got the following error when trying to compile HOpenGL: [...] C:/haskell/cygwin/bin/ld: argument list too long [...]
Did you follow the building instructions on: http://haskell.org/ghc/docs/latest/html/building/winbuild.html exactly? Especially replacing the /bin/sh with a "real" bash and using "SplitObjs=NO" might help. Cheers, S.
participants (2)
-
Andre W B Furtado -
Sven Panne