install_name_tool: can't open file: lib/*-apple-darwin/ghc-6.10.4 (No such file or directory) * ERROR: dev-lang/ghc-6.10.4-r1 failed: * (no error message) * * Call stack: * ebuild.sh, line 54: Called call-ebuildshell 'src_unpack' * environment, line 816: Called src_unpack * environment, line 4068: Called die * The specific snippet of code: * install_name_tool -change ${readline_framework} "${EPREFIX}"/lib/libreadline.dylib ${binary} || die; Reproducible: Always Steps to Reproduce: emerge -v =dev-lang/ghc-6.10.4-r1 Actual Results: build (install) failure. Expected Results: correct installation. Darwin lazybook.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 i386 MacBook4,1 Darwin
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.