#1843: ghc 6.8.1 broken on Mac OS X Leopard PPC
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.8.2
Component: Compiler | Version: 6.8.1
Severity: critical | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: powerpc
Os: MacOS X |
----------------------+-----------------------------------------------------
Comment (by guest):
I tried applying ChrisKuklewicz's patch to a fresh ghc 6.8.1 source tree
(from http://haskell.org/ghc/dist/6.8.1/ghc-6.8.1-src.tar.bz2) along with
the extra libs, and the linker segfaults every time it tries to link one
of the certain extra libs. So far, parsec, X11, and OpenGL cause it to
die:
{{{
...
== make way=p -f GNUmakefile all;
== Finished recursively making `all' for ways: p ...
Registering HGL-3.2.0.0...
Reading package info from "dist/inplace-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
if ifBuildable/ifBuildable OpenGL; then \
cd OpenGL && \
make -r && \
setup/Setup register --inplace; \
fi
../../compiler/stage1/ghc-inplace -package-name OpenGL-2.2.1.1 -hide-all-
packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build
-Iinclude -optc-DCALLCONV=ccall -#include "HsOpenGL.h" -odir dist/build
-hidir dist/build -stubdir dist/build -package base-3.0.0.0 -O
-DCALLCONV=ccall -XCPP -XForeignFunctionInterface -idist/build -H16m -O
-O -Rghc-timing -fgenerics -c Graphics/Rendering/OpenGL/GL/Feedback.hs -o
dist/build/Graphics/Rendering/OpenGL/GL/Feedback.o -ohi
dist/build/Graphics/Rendering/OpenGL/GL/Feedback.hi
collect2: ld terminated with signal 10 [Bus error]
<<ghc: 309647992 bytes, 58 GCs, 5755631/9450608 avg/max bytes residency (4
samples), 23M in use, 0.00 INIT (0.00 elapsed), 3.54 MUT (20.03 elapsed),
1.05 GC (1.40 elapsed) :ghc>>
make[2]: *** [dist/build/Graphics/Rendering/OpenGL/GL/Feedback.o] Error 1
make[1]: *** [make.library.OpenGL] Error 2
make: *** [stage1] Error 2
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1843#comment:25>
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