Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building 7.8.1 for device #5

Open
notorca opened this issue Apr 13, 2014 · 17 comments
Open

Error building 7.8.1 for device #5

notorca opened this issue Apr 13, 2014 · 17 comments

Comments

@notorca
Copy link

notorca commented Apr 13, 2014

On step make install I have the next error:

Installing library in
/Users/lorca/local/lib/arm-apple-darwin10-ghc-7.8.1/ghc-prim-0.3.1.0
ghc-cabal: /Users/lukexi/Code/ghc-ios-scripts/arm-apple-darwin10-ranlib: does
not exist

Seems somewere makefiles contain the wrong absolute path.

Full log:
https://gist.github.com/notorca/10576103

@lukexi
Copy link
Contributor

lukexi commented Apr 13, 2014

Yeah, I ran into this too — I'm not sure what caused my paths to get hardcoded in the binary-dist. You can work around it by running a find&replace "/Users/lukexi/Code/ghc-ios-scripts/" with "" (it will hit a lot of files but works fine). I'll look into it while I build the 7.8.2 dist

@rozgo
Copy link

rozgo commented May 17, 2014

Similar?

Installing library in
/usr/local/lib/arm-apple-darwin10-ghc-7.8.2/ghc-prim-0.3.1.0
ghc-cabal: cfgOnAppThreadarm-apple-darwin10-ranlib: does not exist
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

Replacing "cfgOnAppThread" with "" did it for me.

@lukexi
Copy link
Contributor

lukexi commented May 22, 2014

Thanks — I added a workaround for that in the installGHCiOS.sh script. I'll track that one down for 7.8.3.

@lukexi
Copy link
Contributor

lukexi commented Jul 12, 2014

Should be fixed now! http://www.haskell.org/ghc/download_ghc_7_8_3#ios
Please let me know how you get on

@notorca
Copy link
Author

notorca commented Jul 16, 2014

Now script works fine, but it downloads ghc-7.8.2-i386-apple-ios.tar.xz instead of 7.8.3

@lukexi
Copy link
Contributor

lukexi commented Jul 16, 2014

Whoops, forgot to update that part, thanks Cyril! Fixing now.

On Jul 16, 2014, at 7:54 AM, Cyril Lashkevich [email protected] wrote:

Now script works fine, but it downloads ghc-7.8.2-i386-apple-ios.tar.xz instead of 7.8.3


Reply to this email directly or view it on GitHub.

@notorca
Copy link
Author

notorca commented Jul 17, 2014

"mv" "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/bin/ghc-stage1" "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/bin/ghc"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3"
"rm" -rf "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/package.conf.d"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/package.conf.d"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"

rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a = libraries to install

"/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" = directory to install to

/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"
for i in rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a; do case $i in .a) /usr/bin/install -c -m 644 $i "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"; true "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"/basename $i ;; *.dll) /usr/bin/install -c -m 755 $i "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" ; : "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"/basename $i ;; *.so) /usr/bin/install -c -m 755 $i "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" ;; *.dylib) /usr/bin/install -c -m 755 $i "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0";; *) /usr/bin/install -c -m 644 $i "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"; esac; done
"inplace/bin/ghc-cabal" copy libraries/ghc-prim dist-install ":" '' '/usr/local' '/usr/local/lib/i386-apple-darwin11-ghc-7.8.3' '/usr/local/share/doc/ghc/html/libraries' 'v p'
Installing library in
/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0
ghc-cabal: /Users/lukexi/Code/ghc-ios-scripts/i386-apple-darwin11-ranlib: does
not exist
make[1]: *
* [install_packages] Error 1
make: *** [install] Error 2

@lukexi
Copy link
Contributor

lukexi commented Jul 18, 2014

Argh, I took steps to fix that and apparently they still snuck in there. Until I figure out the cause, I've added a step to the install script that should strip them out. Can you give that a try? Thanks!

@notorca
Copy link
Author

notorca commented Jul 18, 2014

Now I have more strange error:

"mv" "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/bin/ghc-stage1" "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/bin/ghc"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3"
"rm" -rf "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/package.conf.d"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/package.conf.d"
/usr/bin/install -c -m 755 -d "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"
#  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a  rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a = libraries to install
#  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" = directory to install to
/usr/bin/install -c -m 755 -d  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"
for i in  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a  rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a; do case $i in *.a) /usr/bin/install -c -m 644  $i  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"; true  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"/`basename $i` ;; *.dll) /usr/bin/install -c -m 755  $i  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" ; :  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"/`basename $i` ;; *.so) /usr/bin/install -c -m 755  $i  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0" ;; *.dylib) /usr/bin/install -c -m 755  $i  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0";; *) /usr/bin/install -c -m 644  $i  "/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/rts-1.0"; esac; done
"inplace/bin/ghc-cabal" copy libraries/ghc-prim dist-install ":" '' '/usr/local' '/usr/local/lib/i386-apple-darwin11-ghc-7.8.3' '/usr/local/share/doc/ghc/html/libraries' 'v p'
Installing library in
/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0
/Users/lorca/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a(
) size too large (archive member extends past the end of the file)
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

@Alpho
Copy link

Alpho commented Aug 27, 2014

Any progress on this? The script fails in the same place for me too:

Installing library in
/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a(
) size too large (archive member extends past the end of the file)
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

@angerman
Copy link
Contributor

angerman commented Sep 5, 2014

Yep, I'm getting this too :(

Installing library in
/usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a(
) size too large (archive member extends past the end of the file)
make[1]: *** [install_packages] Error 1
make: *** [install] Error 2

@angerman
Copy link
Contributor

angerman commented Sep 6, 2014

Alright. After some digging, and wondering why this does not work, it looks like the ghc-prim is damaged somehow. (This is ghc-7.8.3 though, not ghc-7.8.1 as the thread sais.)

otool -a /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a
Archive : /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a
0100644 501/20  191900 1405037879 #1/20
0100644 501/20   6660 1405037863 #1/20
0100644 501/20  472444 1405037873 #1/20
0100644 501/20   3604 1405037863 #1/12
0100644 501/20  14884 1405037860 #1/20
0100644 501/20    868 1405037859 #1/12
0100644 501/20  104460 1405037864 #1/20
0100644 501/20  65612 1405037860 #1/12
0100644 501/20   8196 1405037859 #1/12
0100644 501/20    396 1405037863 #1/12
0100644 501/20    724 1405037863 #1/12
0100644 501/20   2580 1405037863 #1/20
0100644 501/20   1428 1405037863 #1/12
0100644 501/20    564 1405037864 #1/20
0    /           
 (ar_fmag not ARFMAG)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: archive: /usr/local/lib/i386-apple-darwin11-ghc-7.8.3/ghc-prim-0.3.1.0/libHSghc-prim-0.3.1.0.a offset to next member extends past the end of the file

@songpp
Copy link

songpp commented Sep 18, 2014

@angerman It works, thanks.

@mchaver
Copy link

mchaver commented Apr 29, 2015

I'm using Yosemite and the latest version of xcode.
I keep getting this:

Installing library in
/usr/local/lib/arm-apple-darwin10-ghc-7.8.3/ghc-prim-0.3.1.0
ghc-cabal: arm-apple-darwin10-ranlib: does not exist

@mchaver
Copy link

mchaver commented Apr 29, 2015

If I switch a few lines around to my local directory

s|/Users/lukexi/Code/ghc-ios-scripts/|/Users/mchaver/bin/ghc-ios-scripts/|g
sed -i '' 's|/usr/bin/gcc|/Users/mchaver/bin/ghc-ios-scripts/arm-apple-darwin10-clang|g' settings
sed -i '' 's|/usr/bin/ld|/Users/mchaver/bin/ghc-ios-scripts/arm-apple-darwin10-ld|g' settings

sed -i '' 's|/usr/bin/gcc|/Users/mchaver/bin/ghc-ios-scripts/i386-apple-darwin11-clang|g' settings
sed -i '' 's|/usr/bin/ld|/Users/mchaver/bin/ghc-ios-scripts/i386-apple-darwin11-ld|g' settings

it will all install successfully, but when I run ghc-ios on Counter.hs I get

ghc: could not execute: libtool-quiet

@mchaver
Copy link

mchaver commented Apr 29, 2015

Ok, I was able to get it working by prefixing libtool-quiet with its full path in the ghc-ios file. Looks like I might have to edit the paths for all the other scripts.

@schell
Copy link
Contributor

schell commented Apr 29, 2015

@mchaver I ran into that same error (ghc-cabal: arm-apple-darwin10-ranlib: does not exist) but it was a problem with my path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants