Skip to content

Instantly share code, notes, and snippets.

@schell

schell/OS Config Secret

Last active December 31, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schell/f3a737171ce2f6b1119c to your computer and use it in GitHub Desktop.
Save schell/f3a737171ce2f6b1119c to your computer and use it in GitHub Desktop.
iphone cabal install woes
arm-apple-darwin10-ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv")
,("C compiler command","arm-apple-darwin10-clang")
,("C compiler flags"," -fno-stack-protector")
,("C compiler link flags","")
,("ld command","/Users/schell/Code/ghc-ios-scripts/arm-apple-darwin10-ld")
,("ld flags","")
,("ld supports compact unwind","YES")
,("ld supports build-id","NO")
,("ld supports filelist","YES")
,("ld is GNU ld","NO")
,("ar command","/usr/bin/ar")
,("ar flags","clqs")
,("ar supports at file","NO")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("libtool command","libtool")
,("perl command","/usr/bin/perl")
,("target os","OSiOS")
,("target arch","ArchARM {armISA = ARMv7, armISAExt = [VFPv3,NEON], armABI = SOFTFP}")
,("target word size","4")
,("target has GNU nonexec stack","False")
,("target has .ident directive","True")
,("target has subsections via symbols","True")
,("Unregisterised","NO")
,("LLVM llc command","/Users/schell/Code/clang+llvm-3.0-x86_64-apple-darwin11/bin/llc")
,("LLVM opt command","/Users/schell/Code/clang+llvm-3.0-x86_64-apple-darwin11/bin/opt")
,("Project version","7.7.20131217")
,("Booter version","7.6.3")
,("Stage","1")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","arm-apple-ios")
,("Have interpreter","NO")
,("Object splitting supported","NO")
,("Have native code generator","NO")
,("Support SMP","YES")
,("Tables next to code","YES")
,("RTS ways","l debug thr thr_debug thr_l ")
,("Support dynamic-too","YES")
,("Support parallel --make","YES")
,("Dynamic by default","NO")
,("GHC Dynamic","NO")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/usr/local/lib/arm-apple-darwin10-ghc-7.7.20131217")
,("Global Package DB","/usr/local/lib/arm-apple-darwin10-ghc-7.7.20131217/package.conf.d")
]
schell@Macintosh:~$ arm-apple-darwin10-cabal --version
cabal-install version 1.18.0.2
using version 1.18.1 of the Cabal library
schell@Macintosh:~$ i386-apple-darwin11-cabal --version
cabal-install version 1.18.0.2
using version 1.18.1 of the Cabal library
schell@Macintosh:~$ arm-apple-darwin10-clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: arm-apple-darwin13.0.0
Thread model: posix
clang: warning: argument unused during compilation: '-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk'
clang: warning: argument unused during compilation: '-miphoneos-version-min=7.0'
schell@Macintosh:~$ i386-apple-darwin11-clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: i386-apple-darwin13.0.0
Thread model: posix
clang: warning: argument unused during compilation: '-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk'
clang: warning: argument unused during compilation: '-mios-simulator-version-min=7.0'
i386-apple-darwin11-ghc --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv")
,("C compiler command","i386-apple-darwin11-clang")
,("C compiler flags"," -U__i686 -fno-stack-protector")
,("C compiler link flags","")
,("ld command","/Users/schell/Code/ghc-ios-scripts/i386-apple-darwin11-ld")
,("ld flags","")
,("ld supports compact unwind","YES")
,("ld supports build-id","NO")
,("ld supports filelist","YES")
,("ld is GNU ld","NO")
,("ar command","/usr/bin/ar")
,("ar flags","clqs")
,("ar supports at file","NO")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("libtool command","libtool")
,("perl command","/usr/bin/perl")
,("target os","OSiOS")
,("target arch","ArchX86")
,("target word size","4")
,("target has GNU nonexec stack","False")
,("target has .ident directive","True")
,("target has subsections via symbols","True")
,("Unregisterised","NO")
,("LLVM llc command","/Users/schell/Code/clang+llvm-3.0-x86_64-apple-darwin11/bin/llc")
,("LLVM opt command","/Users/schell/Code/clang+llvm-3.0-x86_64-apple-darwin11/bin/opt")
,("Project version","7.7.20131217")
,("Booter version","7.6.3")
,("Stage","1")
,("Build platform","x86_64-apple-darwin")
,("Host platform","x86_64-apple-darwin")
,("Target platform","i386-apple-ios")
,("Have interpreter","NO")
,("Object splitting supported","NO")
,("Have native code generator","NO")
,("Support SMP","YES")
,("Tables next to code","YES")
,("RTS ways","l debug thr thr_debug thr_l ")
,("Support dynamic-too","YES")
,("Support parallel --make","YES")
,("Dynamic by default","NO")
,("GHC Dynamic","NO")
,("Leading underscore","YES")
,("Debug on","False")
,("LibDir","/usr/local/lib/i386-apple-darwin11-ghc-7.7.20131217")
,("Global Package DB","/usr/local/lib/i386-apple-darwin11-ghc-7.7.20131217/package.conf.d")
]
schell@Macintosh:~$ opt --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 3.0
Optimized build.
Host: x86_64-apple-darwin13.0.0
Host CPU: corei7-avx
schell@Macintosh:~$ llc --version
Low Level Virtual Machine (http://llvm.org/):
llvm version 3.0
Optimized build.
Host: x86_64-apple-darwin13.0.0
Host CPU: corei7-avx
Registered Targets:
alpha - Alpha [experimental]
arm - ARM
bfin - Analog Devices Blackfin [experimental]
c - C backend
cellspu - STI CBEA Cell SPU [experimental]
cpp - C++ backend
mblaze - MBlaze
mips - Mips
mips64 - Mips64 [experimental]
mips64el - Mips64el [experimental]
mipsel - Mipsel
msp430 - MSP430 [experimental]
ppc32 - PowerPC 32
ppc64 - PowerPC 64
ptx32 - PTX (32-bit) [Experimental]
ptx64 - PTX (64-bit) [Experimental]
sparc - Sparc
sparcv9 - Sparc V9
systemz - SystemZ
thumb - Thumb
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
xcore - XCore
Mid 2011 Mocbook Pro
2.4 GHz Intel Core i7
OS X 10.9.1
Xcode 5.0.2 (5A3005)
Using GHC 7.6.3 to build GHC HEAD for iOS ARM/i386
Old mailing list note for context:
I'm having trouble installing primitive from hackage with arm-apple-darwin10-cabal. It seems a funky error is happening that is not getting written out or logged.
Here is the output from my attempted install from hackage after a `rm -rf ~/.cabal` and `arm-apple-darwin10-cabal update`: http://lpaste.net/97092. Nothiing is listed in the log mentioned.
So I tried installing from the git repo and got the same error. Then I tried to configure build and then install and the build phase spat out:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive library: dist-arm/build/libHSprimitive-0.5.2.0.a will be fat and ar(1) will not be able to operate on it
In-place registering primitive-0.5.2.0...
So it seems it's building but not linking? Maybe I shouldn't be developing with cabal? What's the normal procedure here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment