hi again, i am trying to compile the primitive library, which includes the following in its cabal file: if arch(i386) || arch(x86_64) { cc-options: -msse2 } during configuration the arm cross compiler (rightly) complains about the unsupported -msse2 option (see below). but why is that option even added to cc-options? shouldn't arch be arm or something similar when cross-compiling? the cabal docs are saying: "arch(name) Tests if the current architecture is name. The argument is matched against System.Info.arch on the target system. If the arch names match, this test evaluates to true, otherwise false. The match is case-insensitive." any help appreciated! thanks, <sk> runOutput /Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc ["-fno-stack-protector","-isysroot","/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk","-march=armv7","-mcpu=cortex-a8","-mfpu=neon","-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247.c","-o","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247","-D__GLASGOW_HASKELL__=705","-Ddarwin_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist/build/autogen","-Icbits","-I.","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0/include","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/include","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/integer-simple-0.1.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/ghc-prim-0.2.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127"] ("/Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc",["-fno-stack-protector","-isysroot","/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk","-march=armv7","-mcpu=cortex-a8","-mfpu=neon","-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247.c","-o","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247","-D__GLASGOW_HASKELL__=705","-Ddarwin_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist/build/autogen","-Icbits","-I.","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0/include","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/include","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/integer-simple-0.1.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/ghc-prim-0.2.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127"]) /Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc returned ExitFailure 1 with error message: cc1: error: unrecognized command line option "-msse2" cc1: error: unrecognized command line option "-msse2" program: int main(int argc, char** argv) { return 0; }
Stefan, The short answer is that there is more work to do on Cabal. I didn't get much further than the changes necessary to compile plain Haskell packages. At the moment I'm putting the priority on getting the stuff that's already done integrated into the mainline (ghc in particular). I am intending to get to that work soon. Steve On 19/12/12 06:03, Stefan Kersten wrote:
hi again,
i am trying to compile the primitive library, which includes the following in its cabal file:
if arch(i386) || arch(x86_64) { cc-options: -msse2 }
during configuration the arm cross compiler (rightly) complains about the unsupported -msse2 option (see below). but why is that option even added to cc-options? shouldn't arch be arm or something similar when cross-compiling?
the cabal docs are saying:
"arch(name) Tests if the current architecture is name. The argument is matched against System.Info.arch on the target system. If the arch names match, this test evaluates to true, otherwise false. The match is case-insensitive."
any help appreciated!
thanks, <sk>
runOutput /Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc ["-fno-stack-protector","-isysroot","/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk","-march=armv7","-mcpu=cortex-a8","-mfpu=neon","-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247.c","-o","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247","-D__GLASGOW_HASKELL__=705","-Ddarwin_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist/build/autogen","-Icbits","-I.","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0/include","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/include","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/integer-simple-0.1.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/ghc-prim-0.2.0.0","-L/usr/local /ghc-iphone//lib/ghc-7.5.20121127"] ("/Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc",["-fno-stack-protector","-isysroot","/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk","-march=armv7","-mcpu=cortex-a8","-mfpu=neon","-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247.c","-o","/var/folders/O8/O8mOkxWPErOOmiDsQeAl2E+++TI/-Tmp-/92247","-D__GLASGOW_HASKELL__=705","-Ddarwin_HOST_OS=1","-Dx86_64_HOST_ARCH=1","-Idist/build/autogen","-Icbits","-I.","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0/include","-I/usr/local/ghc-iphone//lib/ghc-7.5.20121127/include","-msse2","-O3","-ftree-vectorize","-fomit-frame-pointer","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/base-4.5.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/integer-simple-0.1.0.0","-L/usr/local/ghc-iphone//lib/ghc-7.5.20121127/ghc-prim-0.2.0.0","-L/usr/local/ghc-ip hone//lib/ghc-7.5.20121127"]) /Users/skersten/dev/samplecount/ghc-ios/bin/arm-apple-darwin10-gcc returned ExitFailure 1 with error message: cc1: error: unrecognized command line option "-msse2" cc1: error: unrecognized command line option "-msse2" program: int main(int argc, char** argv) { return 0; }
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
hi stephen, On 12/18/2012 08:56 PM, Stephen Blackheath [to GHC-iPhone] wrote:
The short answer is that there is more work to do on Cabal. I didn't get much further than the changes necessary to compile plain Haskell packages.
At the moment I'm putting the priority on getting the stuff that's already done integrated into the mainline (ghc in particular). I am intending to get to that work soon.
ok, thanks, no worries; if you (or someone) could point me to where to start looking i could try to fix it myself (i'm not familiar with the Cabal internals). in any case i'll report it in the issue tracker so it doesn't get lost ... <sk>
Hi stefan,
I just enabled the issue tracker for the ghc-ios Cabal branch if you want
to add it there
https://github.com/ghc-ios/packages-Cabal/issues
(and of course you can just edit the cabal file for this package similar to
the syb workaround if you want to get the package installed)
Best
Luke
On Tue, Dec 18, 2012 at 12:57 PM, Stefan Kersten
hi stephen,
The short answer is that there is more work to do on Cabal. I didn't get much further than the changes necessary to compile plain Haskell
On 12/18/2012 08:56 PM, Stephen Blackheath [to GHC-iPhone] wrote: packages.
At the moment I'm putting the priority on getting the stuff that's already done integrated into the mainline (ghc in particular). I am intending to get to that work soon.
ok, thanks, no worries; if you (or someone) could point me to where to start looking i could try to fix it myself (i'm not familiar with the Cabal internals). in any case i'll report it in the issue tracker so it doesn't get lost ...
<sk>
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
participants (3)
-
Luke Iannini -
Stefan Kersten -
Stephen Blackheath [to GHC-iPhone]