Summary: | dev-lang/ghc-6.10.4-r1 build failes: can't open file: lib/*-apple-darwin/ghc-6.10.4 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Nickolay Kolchin-Semyonov <nbkolchin> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info =dev-lang/ghc-6.10.4-r1
build.log gzipped hopefully fixed ghc-6.10.4-r1.ebuild build.log for updated ebuild gzipped |
Description
Nickolay Kolchin-Semyonov
2010-03-29 22:50:24 UTC
Created attachment 225747 [details]
emerge --info =dev-lang/ghc-6.10.4-r1
Created attachment 225749 [details]
build.log gzipped
it seems a lot has changed in the layout again Created attachment 226015 [details]
hopefully fixed ghc-6.10.4-r1.ebuild
I'm currently compiling GHC. I don't want to commit right now as it may screw up the compilation process at some point (manifest will change or something).
If you want to, please try the attached ebuild.
Attached ebuild failed for me with following error: cabal-bin: ghc version >=6.4 is required but the version of /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r1/work/ghc-6.10.4/ghc/stage2-inplace/ghc could not be determined. I need more information on that. Did you see some error message go by about traps on missing dylib files? Created attachment 226061 [details]
build.log for updated ebuild gzipped
what is the output of running the command: /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6 .10.4/ghc/stage2-inplace/ghc nickolaysemyonov@lazybook ~ $ /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc Abort trap what does scanmacho --needed /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc return? Nothing. nickolaysemyonov@lazybook ~ $ scanmacho --needed /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc nickolaysemyonov@lazybook ~ $ P.S. Sorry, I'm not very good in MacOSX development. hmmm, what kind of file is it? run "file /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc" Shell Script. Scanmacho for actual executable provided. nickolaysemyonov@lazybook ~ $ file /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc: POSIX shell script text executable nickolaysemyonov@lazybook ~ $ cat /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/ghc #!/bin/sh exec /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/libexec/ghc -B/Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/inplace-datadir/. -dynload wrapped -optc-march=prescott -opta-march=prescott ${1+"$@"} nickolaysemyonov@lazybook ~ $ scanmacho --needed /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/libexec/ghc ARCH TYPE NEEDED FILE i386 MH_EXECUTE /Users/nickolaysemyonov/Gentoo/lib/libiconv.2.dylib,/Users/nickolaysemyonov/Gentoo/lib/libncursesw.5.dylib,/usr/lib/libSystem.B.dylib,/Users/nickolaysemyonov/Gentoo/usr/lib/libgmp.3.dylib,/Users/nickolaysemyonov/Gentoo/usr/lib/gcc/i686-apple-darwin9/4.2.1/libgcc_s.1.dylib /Users/nickolaysemyonov/Gentoo/var/tmp/portage/dev-lang/ghc-6.10.4-r2/work/ghc-6.10.4/ghc/stage2-inplace/libexec/ghc can you try trimming down your CFLAGS? CFLAGS="-O2 -pipe -march=prescott -fomit-frame-pointer I would start with removing -fomit-frame-pointer Rebuilding without -fomit-frame-pointer. But ghc_setup_cflags should strip that anyway: for flag in ${CFLAGS}; do case ${flag} in # Ignore extra optimisation (ghc passes -O to gcc anyway) # -O2 and above break on too many systems -O*) ;; # Arch and ABI flags are what we're really after -m*) append-ghc-cflags compile assemble ${flag};; # Debugging flags don't help either. You can't debug Haskell code # at the C source level and the mangler discards the debug info. -g*) ;; # Ignore all other flags, including all -f* flags esac done ebuild with CFLAGS="-pipe -march=prescott", fails with same error. Trying with empty CFLAGS. Same error with empty CFLAGS. ok, so that's excluded. I'm currently burning away 6.12.3 in the hopes it has this bug fixed Confirmed, 6.12.3 builds OK. |