#15923 closed defect (duplicate)
ghc 6.8.3 Segmentation fault during build
Reported by: | macports@… | Owned by: | gwright@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | ghc segmentation fault | Cc: | macports@…, macports@… |
Port: |
Description
I'm getting a segmentation fault when building ghc. I have already done a 'port clean ghc' and this is the result of the build after that:
---> Fetching ghc ---> Verifying checksum(s) for ghc ---> Extracting ghc ---> Applying patches to ghc ---> Configuring ghc ---> Building ghc with target all Error: Target org.macports.build returned: shell command "env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make" returned error 2 Command output: <<ghc: 80466216 bytes, 10 GCs, 2189312/4202496 avg/max bytes residency (2 samples), 21M in use, 0.00 INIT (0.00 elapsed), 0.67 MUT (0.95 elapsed), 0.18 GC (0.22 elapsed) :ghc>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-bootstrap/bin/ghc -H16m -O -I/opt/local/include -L/opt/local/lib -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/vectorise -istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGen -Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage1 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang -recomp -Rghc-timing -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal -package directory -package pretty -package containers -c ndpFlatten/FlattenInfo.hs -o stage1/ndpFlatten/FlattenInfo.o -ohi stage1/ndpFlatten/FlattenInfo.hi
...
------------------------------------------------------------------------ == make all -r; in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3/rts ------------------------------------------------------------------------ ../compiler/ghc-inplace -optc-O -optc-I/opt/local/include -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include -optc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -I/opt/local/include -L/opt/local/lib -optc-O2 -package-name rts -static -I/opt/local/include -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o make[1]: *** [Adjustor.o] Segmentation fault make: *** [stage1] Error 1
Change History (10)
comment:1 Changed 16 years ago by macports@…
comment:2 Changed 16 years ago by jmroot (Joshua Root)
Cc: | gwright@… removed |
---|---|
Milestone: | → Port Bugs |
Owner: | changed from macports-tickets@… to gwright@… |
comment:4 Changed 16 years ago by yaseppochi (Stephen J. Turnbull)
MacPorts 1.700 (SVN updated 2008-08-01)
Mac OS X 10.4.11
iBook G4
I get a bus error:
------------------------------------------------------------------------ == make all -r; in /opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_lang_ghc/ work/ghc-6.8.3/rts ------------------------------------------------------------------------ ../compiler/ghc-inplace -optc-O -optc-I/opt/local/include -optc-Wall -optc-W -opt c-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc- Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc -Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include -op tc-I../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -I/opt/local/include -L/op t/local/lib -optc-O2 -package-name rts -static -I/opt/local/include -I../gmp/gmpb uild -I. -#include HCIncludes.h -dcmm-lint -c Adjustor.c -o Adjustor.o make[1]: *** [Adjustor.o] Bus error make: *** [stage1] Error 1
comment:5 Changed 16 years ago by macports@…
My experience:
wednet% sudo port clean ghc ---> Cleaning ghc wednet% sudo port install ghc ---> Fetching ghc ---> Verifying checksum(s) for ghc ---> Extracting ghc ---> Applying patches to ghc ---> Configuring ghc Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3" && ./configure --prefix=/opt/local --prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local --mandir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/destroot/opt/local/share/man/ --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-readline-includes=/opt/local/include --with-readline-libraries=/opt/local/lib --with-ghc='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-bootstrap/bin/ghc' " returned error 2 Command output: ./configure: line 3: unexpected EOF while looking for matching ``' ./configure: line 12: syntax error: unexpected end of file Error: Status 1 encountered during processing.
wednet% more /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ghc/work/ghc-6.8.3/configure #! /bin/sh Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. if $ac_init_version; then cat <<\_ACEOF The Glorious Glasgow Haskell Compilation System configure 6.8.3 generated by GNU Autoconf 2.61 _ACEOF exit fi
That configure file looks clearly bogus; it has comment text that is not preceded by '#'
Editing the configure file and removing the offending pseudo-command, yields this:
wednet% sudo port install ghc ---> Configuring ghc ---> Building ghc with target all Error: Target org.macports.build returned: shell command "env DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib make" returned error 2 Command output: make: *** No targets specified and no makefile found. Stop.
comment:7 Changed 16 years ago by yaseppochi (Stephen J. Turnbull)
I still get the bus error reported on 08/03 above with ghc port version 6.8.3_1.
comment:8 Changed 16 years ago by macports@…
Today, I get this:
% sudo port install ghc @6.8.3 == make way=p -f GNUmakefile all; ../../compiler/stage1/ghc-inplace -package-name cgi-3001.1.6.0 -hide-all-packages -split-objs -i -idist/build/autogen -idist/build -i. -Idist/build -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.2.0 -package old-time-1.0.0.0 -package old-locale-1.0.0.0 -package containers-0.1.0.2 -package base-3.0.2.0 -package bytestring-0.9.0.1.1 -package network-2.2.0.0 -package parsec-2.1.0.1 -package mtl-1.1.0.1 -package xhtml-3000.2.0.0 -O -Wall -XMultiParamTypeClasses -idist/build -prof -hisuf p_hi -hcsuf p_hc -osuf p_o -H16m -O -I/opt/local/include -L/opt/local/lib -O -Rghc-timing -fgenerics -c Network/CGI/Protocol.hs -o dist/build/Network/CGI/Protocol.p_o -ohi dist/build/Network/CGI/Protocol.p_hi Network/CGI/Protocol.hs:41:0: Failed to load interface for `Network.URI': Perhaps you haven't installed the profiling libraries for package network-2.2.0.0? Use -v to see a list of the files searched for. <<ghc: 51942436 bytes, 7 GCs, 131072/159744 avg/max bytes residency (2 samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.05 MUT (0.07 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[3]: *** [dist/build/Network/CGI/Protocol.p_o] Error 1 make[2]: *** [all] Error 1 make[1]: *** [make.library.cgi] Error 2 make: *** [stage1] Error 2 Error: Status 1 encountered during processing.
comment:9 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
"make[1]: *** [Adjustor.o] Segmentation fault
" and "make[1]: *** [Adjustor.o] Bus error
" are duplicates of #15142 and seem to affect PowerPC Macs running Mac OS X 10.4.x. Please Cc yourself to that ticket if you are interested in following the resolution of this issue.
The "unexpected end of file
", "No targets specified and no makefile found
", and "Failed to load interface for 'Network.URI'
" errors that macports at mrbb dot org experienced do not seem to be related. You can file a separate ticket for that, and if you do, please attach the config.log.
There is a similar bugreport on the haskell trac.
This was about version 6.8.2, in the end the bugreporter installed 6.8.1 from macports...