From lukexipd at gmail.com Mon Oct 14 19:48:45 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Mon, 14 Oct 2013 12:48:45 -0700 Subject: [Haskell-iPhone] Xcode 5 support for GHC iOS Message-ID: Hi all, Just wanted to let you know I've finished updating GHC iOS to support Xcode 5. The new scripts are at https://github.com/ghc-ios/ghc-ios-scripts/tree/xcode5 and you'll find updated instructions at http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS . Please let me know if you have any trouble! Cheers Luke -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergey at mikhanov.com Thu Oct 17 22:31:36 2013 From: sergey at mikhanov.com (Sergey Mikhanov) Date: Thu, 17 Oct 2013 23:31:36 +0100 Subject: [Haskell-iPhone] Build fails when using Xcode 5 Message-ID: Hi, I'm following the instructions for Xcode 5 on the wiki and the build fails with this error (OS X 10.8.5): "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. -iutils/genprimopcode/dist/build -iutils/genprimopcode/dist/build/autogen -Iutils/genprimopcode/dist/build -Iutils/genprimopcode/dist/build/autogen -package array -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build -hidir utils/genprimopcode/dist/build -stubdir utils/genprimopcode/dist/build -c utils/genprimopcode/dist/build/Lexer.hs -o utils/genprimopcode/dist/build/Lexer.o :2:2: Not in scope: `#' make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 Any idea why? Thanks, Sergey From maxwellswadling at gmail.com Thu Oct 17 23:46:18 2013 From: maxwellswadling at gmail.com (Maxwell Swadling) Date: Fri, 18 Oct 2013 10:46:18 +1100 Subject: [Haskell-iPhone] Build fails when using Xcode 5 In-Reply-To: References: Message-ID: Hey, It seems to be a CPP or Alex problem. Could you provide the following info about your environment: - gcc --version - clang --version - git sha of which ghc you have checked out - alex --version - happy --version Also because of Xcode 5, did you remember to: - reinstall the command line tools in Xcode? (It could be using the old ones) - use the Xcode 5 branch of ghc-ios-scripts? - when you ./configure use "--with-gcc=arm-apple-darwin10-clang" instead of gcc? - compile and add to your path the preprocessor hook / hack (see scripts repo) - apply the 2 patches that are not merged yet? Thanks! __END__ Maxwell Swadling > On 18 Oct 2013, at 9:31 am, Sergey Mikhanov wrote: > > Hi, > > I'm following the instructions for Xcode 5 on the wiki > and the build fails with this error (OS X 10.8.5): > > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. > -iutils/genprimopcode/dist/build > -iutils/genprimopcode/dist/build/autogen > -Iutils/genprimopcode/dist/build > -Iutils/genprimopcode/dist/build/autogen -package array > -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build > -hidir utils/genprimopcode/dist/build -stubdir > utils/genprimopcode/dist/build -c > utils/genprimopcode/dist/build/Lexer.hs -o > utils/genprimopcode/dist/build/Lexer.o > > :2:2: Not in scope: `#' > make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 > > Any idea why? > > Thanks, > Sergey > _______________________________________________ > iPhone mailing list > iPhone at haskell.org > http://www.haskell.org/mailman/listinfo/iphone From lukexipd at gmail.com Fri Oct 18 00:22:19 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Thu, 17 Oct 2013 17:22:19 -0700 Subject: [Haskell-iPhone] Build fails when using Xcode 5 In-Reply-To: References: Message-ID: Yeah, I'm looking at some new alex/happy issues right now but don't have them quite licked ? You could try "cabal install happy" and "cabal install alex" as I think GHC HEAD requires new versions as of quite recently. I just provided a patch to Simon M for happy for one of the issues, so you can try checking out and installing the latest version: https://github.com/simonmar/happy On Thu, Oct 17, 2013 at 4:46 PM, Maxwell Swadling wrote: > Hey, > > It seems to be a CPP or Alex problem. Could you provide the following info > about your environment: > > - gcc --version > - clang --version > - git sha of which ghc you have checked out > - alex --version > - happy --version > > Also because of Xcode 5, did you remember to: > > - reinstall the command line tools in Xcode? (It could be using the old > ones) > - use the Xcode 5 branch of ghc-ios-scripts? > - when you ./configure use "--with-gcc=arm-apple-darwin10-clang" instead > of gcc? > - compile and add to your path the preprocessor hook / hack (see scripts > repo) > - apply the 2 patches that are not merged yet? > > Thanks! > > __END__ > Maxwell Swadling > > > On 18 Oct 2013, at 9:31 am, Sergey Mikhanov wrote: > > > > Hi, > > > > I'm following the instructions for Xcode 5 on the wiki > > and the build fails with this error (OS X 10.8.5): > > > > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O > > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. > > -iutils/genprimopcode/dist/build > > -iutils/genprimopcode/dist/build/autogen > > -Iutils/genprimopcode/dist/build > > -Iutils/genprimopcode/dist/build/autogen -package array > > -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build > > -hidir utils/genprimopcode/dist/build -stubdir > > utils/genprimopcode/dist/build -c > > utils/genprimopcode/dist/build/Lexer.hs -o > > utils/genprimopcode/dist/build/Lexer.o > > > > :2:2: Not in scope: `#' > > make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 > > > > Any idea why? > > > > Thanks, > > Sergey > > _______________________________________________ > > iPhone mailing list > > iPhone at haskell.org > > http://www.haskell.org/mailman/listinfo/iphone > _______________________________________________ > iPhone mailing list > iPhone at haskell.org > http://www.haskell.org/mailman/listinfo/iphone > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukexipd at gmail.com Fri Oct 18 00:30:40 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Thu, 17 Oct 2013 17:30:40 -0700 Subject: [Haskell-iPhone] Build fails when using Xcode 5 In-Reply-To: References: Message-ID: Oh yes, I remember now. If you open utils/genprimopcode/dist/build/Lexer.hs you'll find a line that starts with "# 1". I'm still tracking down exactly what's going on (you might be able to proceed by just deleting those lines in the meantime). On Thu, Oct 17, 2013 at 5:22 PM, Luke Iannini wrote: > Yeah, I'm looking at some new alex/happy issues right now but don't have > them quite licked ? > > You could try "cabal install happy" and "cabal install alex" as I think > GHC HEAD requires new versions as of quite recently. > > I just provided a patch to Simon M for happy for one of the issues, so you > can try checking out and installing the latest version: > https://github.com/simonmar/happy > > > On Thu, Oct 17, 2013 at 4:46 PM, Maxwell Swadling < > maxwellswadling at gmail.com> wrote: > >> Hey, >> >> It seems to be a CPP or Alex problem. Could you provide the following >> info about your environment: >> >> - gcc --version >> - clang --version >> - git sha of which ghc you have checked out >> - alex --version >> - happy --version >> >> Also because of Xcode 5, did you remember to: >> >> - reinstall the command line tools in Xcode? (It could be using the old >> ones) >> - use the Xcode 5 branch of ghc-ios-scripts? >> - when you ./configure use "--with-gcc=arm-apple-darwin10-clang" instead >> of gcc? >> - compile and add to your path the preprocessor hook / hack (see scripts >> repo) >> - apply the 2 patches that are not merged yet? >> >> Thanks! >> >> __END__ >> Maxwell Swadling >> >> > On 18 Oct 2013, at 9:31 am, Sergey Mikhanov >> wrote: >> > >> > Hi, >> > >> > I'm following the instructions for Xcode 5 on the wiki >> > and the build fails with this error (OS X 10.8.5): >> > >> > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O >> > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. >> > -iutils/genprimopcode/dist/build >> > -iutils/genprimopcode/dist/build/autogen >> > -Iutils/genprimopcode/dist/build >> > -Iutils/genprimopcode/dist/build/autogen -package array >> > -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build >> > -hidir utils/genprimopcode/dist/build -stubdir >> > utils/genprimopcode/dist/build -c >> > utils/genprimopcode/dist/build/Lexer.hs -o >> > utils/genprimopcode/dist/build/Lexer.o >> > >> > :2:2: Not in scope: `#' >> > make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 >> > >> > Any idea why? >> > >> > Thanks, >> > Sergey >> > _______________________________________________ >> > iPhone mailing list >> > iPhone at haskell.org >> > http://www.haskell.org/mailman/listinfo/iphone >> _______________________________________________ >> iPhone mailing list >> iPhone at haskell.org >> http://www.haskell.org/mailman/listinfo/iphone >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukexipd at gmail.com Fri Oct 18 06:34:20 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Thu, 17 Oct 2013 23:34:20 -0700 Subject: [Haskell-iPhone] Xcode 5 support for GHC iOS In-Reply-To: References: Message-ID: Hi Dominick! Yes, this should work swimmingly on the 5S in 32bit mode. We'll have to wait for Apple to merge their Arm64 patches [1] before we can add full 64-bit support (I can do the 64bit simulator right now though : )). (though I just saw this! [2]) Cheers Luke [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065480.html [2] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065913.html On Wed, Oct 16, 2013 at 8:16 AM, Dominick Samperi wrote: > Will this work with the new iPhone 5 S (64 bit ARM)? I assume that > it will work by running in 32 bit mode (requiring both 64 and 32 bit > libs to be loaded), but I'm not sure... > > Thanks, > Dominick > > > On Mon, Oct 14, 2013 at 3:48 PM, Luke Iannini wrote: > >> Hi all, >> >> Just wanted to let you know I've finished updating GHC iOS to support >> Xcode 5. The new scripts are at >> https://github.com/ghc-ios/ghc-ios-scripts/tree/xcode5 and you'll find >> updated instructions at >> http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS . >> >> Please let me know if you have any trouble! >> Cheers >> Luke >> >> _______________________________________________ >> ghc-devs mailing list >> ghc-devs at haskell.org >> http://www.haskell.org/mailman/listinfo/ghc-devs >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carter.schonwald at gmail.com Fri Oct 18 06:36:57 2013 From: carter.schonwald at gmail.com (Carter Schonwald) Date: Fri, 18 Oct 2013 02:36:57 -0400 Subject: [Haskell-iPhone] Xcode 5 support for GHC iOS In-Reply-To: References: Message-ID: don't we need to add an ARM64 ABI to ghc/llvm? or is that a nonissue? On Fri, Oct 18, 2013 at 2:34 AM, Luke Iannini wrote: > Hi Dominick! > > Yes, this should work swimmingly on the 5S in 32bit mode. > > We'll have to wait for Apple to merge their Arm64 patches [1] before we > can add full 64-bit support (I can do the 64bit simulator right now though > : )). (though I just saw this! [2]) > > Cheers > Luke > > [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065480.html > [2] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065913.html > > > On Wed, Oct 16, 2013 at 8:16 AM, Dominick Samperi wrote: > >> Will this work with the new iPhone 5 S (64 bit ARM)? I assume that >> it will work by running in 32 bit mode (requiring both 64 and 32 bit >> libs to be loaded), but I'm not sure... >> >> Thanks, >> Dominick >> >> >> On Mon, Oct 14, 2013 at 3:48 PM, Luke Iannini wrote: >> >>> Hi all, >>> >>> Just wanted to let you know I've finished updating GHC iOS to support >>> Xcode 5. The new scripts are at >>> https://github.com/ghc-ios/ghc-ios-scripts/tree/xcode5 and you'll find >>> updated instructions at >>> http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS . >>> >>> Please let me know if you have any trouble! >>> Cheers >>> Luke >>> >>> _______________________________________________ >>> ghc-devs mailing list >>> ghc-devs at haskell.org >>> http://www.haskell.org/mailman/listinfo/ghc-devs >>> >>> >> > > _______________________________________________ > ghc-devs mailing list > ghc-devs at haskell.org > http://www.haskell.org/mailman/listinfo/ghc-devs > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lukexipd at gmail.com Fri Oct 18 07:17:50 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Fri, 18 Oct 2013 00:17:50 -0700 Subject: [Haskell-iPhone] Xcode 5 support for GHC iOS In-Reply-To: References: Message-ID: Yeah, probably a data layout in compiler/llvmGen/LlvmCodeGen/Ppr.hs and entries in compiler/utils/Platform.hs? Shouldn't be too bad I think. On Thu, Oct 17, 2013 at 11:36 PM, Carter Schonwald < carter.schonwald at gmail.com> wrote: > don't we need to add an ARM64 ABI to ghc/llvm? or is that a nonissue? > > > On Fri, Oct 18, 2013 at 2:34 AM, Luke Iannini wrote: > >> Hi Dominick! >> >> Yes, this should work swimmingly on the 5S in 32bit mode. >> >> We'll have to wait for Apple to merge their Arm64 patches [1] before we >> can add full 64-bit support (I can do the 64bit simulator right now though >> : )). (though I just saw this! [2]) >> >> Cheers >> Luke >> >> [1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065480.html >> [2] http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-September/065913.html >> >> >> On Wed, Oct 16, 2013 at 8:16 AM, Dominick Samperi wrote: >> >>> Will this work with the new iPhone 5 S (64 bit ARM)? I assume that >>> it will work by running in 32 bit mode (requiring both 64 and 32 bit >>> libs to be loaded), but I'm not sure... >>> >>> Thanks, >>> Dominick >>> >>> >>> On Mon, Oct 14, 2013 at 3:48 PM, Luke Iannini wrote: >>> >>>> Hi all, >>>> >>>> Just wanted to let you know I've finished updating GHC iOS to support >>>> Xcode 5. The new scripts are at >>>> https://github.com/ghc-ios/ghc-ios-scripts/tree/xcode5 and you'll find >>>> updated instructions at >>>> http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS . >>>> >>>> Please let me know if you have any trouble! >>>> Cheers >>>> Luke >>>> >>>> _______________________________________________ >>>> ghc-devs mailing list >>>> ghc-devs at haskell.org >>>> http://www.haskell.org/mailman/listinfo/ghc-devs >>>> >>>> >>> >> >> _______________________________________________ >> ghc-devs mailing list >> ghc-devs at haskell.org >> http://www.haskell.org/mailman/listinfo/ghc-devs >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From carter.schonwald at gmail.com Fri Oct 18 16:05:57 2013 From: carter.schonwald at gmail.com (Carter Schonwald) Date: Fri, 18 Oct 2013 12:05:57 -0400 Subject: [Haskell-iPhone] Xcode 5 support for GHC iOS In-Reply-To: <5260EA49.6000205@centrum.cz> References: <5260EA49.6000205@centrum.cz> Message-ID: For this ghc release cycle, I imagine it's ok to stay Arm 32bit only abi. ESP since the apple upstream arm 64 bit stuff for apple hardware hasn't landed in llvm main afaik. For any new abis for ghc, I really want to be systematic In how we design and test changes. Austin Seipp may have a more accurate / precise opinion since he's spent a lot of time making arm support work this year. Do we need to do anything to support targeting arm 64? On Friday, October 18, 2013, Karel Gardas wrote: > > Carter is right here, you will also need to hack LLVM to add support for > GHC calling convention and you will also need to hack GHC's RTS to add a > glue in between Haskell and C world on ARM64. > > Cheers, > Karel > > On 10/18/13 09:17 AM, Luke Iannini wrote: > >> Yeah, probably a data layout in compiler/llvmGen/LlvmCodeGen/**Ppr.hs and >> entries in compiler/utils/Platform.hs? Shouldn't be too bad I think. >> >> On Thu, Oct 17, 2013 at 11:36 PM, Carter Schonwald >> > wrote: >> >> don't we need to add an ARM64 ABI to ghc/llvm? or is that a nonissue? >> >> >> On Fri, Oct 18, 2013 at 2:34 AM, Luke Iannini > > wrote: >> >> Hi Dominick! >> >> Yes, this should work swimmingly on the 5S in 32bit mode. >> >> We'll have to wait for Apple to merge their Arm64 patches [1] >> before we can add full 64-bit support (I can do the 64bit >> simulator right now though : )). (though I just saw this! [2]) >> >> Cheers >> Luke >> >> [1] >> http://lists.cs.uiuc.edu/**pipermail/llvmdev/2013-** >> September/065480.html >> [2] >> http://lists.cs.uiuc.edu/**pipermail/llvmdev/2013-** >> September/065913.html >> >> >> On Wed, Oct 16, 2013 at 8:16 AM, Dominick Samperi >> > wrote: >> >> Will this work with the new iPhone 5 S (64 bit ARM)? I >> assume that >> it will work by running in 32 bit mode (requiring both 64 >> and 32 bit >> libs to be loaded), but I'm not sure... >> >> Thanks, >> Dominick >> >> >> On Mon, Oct 14, 2013 at 3:48 PM, Luke Iannini >> > wrote: >> >> Hi all, >> >> Just wanted to let you know I've finished updating GHC >> iOS to support Xcode 5. The new scripts are at >> https://github.com/ghc-ios/**ghc-ios-scripts/tree/xcode5 >> and you'll find updated instructions at >> http://ghc.haskell.org/trac/**ghc/wiki/Building/** >> CrossCompiling/iOS >> . >> >> Please let me know if you have any trouble! >> Cheers >> Luke >> >> ______________________________**_________________ >> ghc-devs mailing list >> ghc-devs at haskell.org >> http://www.haskell.org/**mailman/listinfo/ghc-devs >> >> >> >> >> ______________________________**_________________ >> ghc-devs mailing list >> ghc-devs at haskell.org >> http://www.haskell.org/**mailman/listinfo/ghc-devs >> >> >> >> >> >> ______________________________**_________________ >> Haskell-Cafe mailing list >> Haskell-Cafe at haskell.org >> http://www.haskell.org/**mailman/listinfo/haskell-cafe >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sergey at mikhanov.com Fri Oct 18 19:48:35 2013 From: sergey at mikhanov.com (Sergey Mikhanov) Date: Fri, 18 Oct 2013 20:48:35 +0100 Subject: [Haskell-iPhone] Build fails when using Xcode 5 In-Reply-To: References: Message-ID: I've removed offending lines in Lexer.hs -- the build now goes a bit further and fails: "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. -iutils/genprimopcode/dist/build -iutils/genprimopcode/dist/build/autogen -Iutils/genprimopcode/dist/build -Iutils/genprimopcode/dist/build/autogen -package array -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build -hidir utils/genprimopcode/dist/build -stubdir utils/genprimopcode/dist/build -c utils/genprimopcode/dist/build/Parser.hs -o utils/genprimopcode/dist/build/Parser.o templates/GenericTemplate.hs:121:10: parse error (possibly incorrect indentation or mismatched brackets) make[1]: *** [utils/genprimopcode/dist/build/Parser.o] Error 1 alex is 3.1.0 happy is 1.19.0 (BTW, it's not possible to do configure without updating those -- these are the minimum versions required). Any ideas where to take it from here? S. 2013/10/18 Luke Iannini : > Oh yes, I remember now. If you open utils/genprimopcode/dist/build/Lexer.hs > you'll find a line that starts with "# 1". I'm still tracking down exactly > what's going on (you might be able to proceed by just deleting those lines > in the meantime). > > > On Thu, Oct 17, 2013 at 5:22 PM, Luke Iannini wrote: >> >> Yeah, I'm looking at some new alex/happy issues right now but don't have >> them quite licked ? >> >> You could try "cabal install happy" and "cabal install alex" as I think >> GHC HEAD requires new versions as of quite recently. >> >> I just provided a patch to Simon M for happy for one of the issues, so you >> can try checking out and installing the latest version: >> https://github.com/simonmar/happy >> >> >> On Thu, Oct 17, 2013 at 4:46 PM, Maxwell Swadling >> wrote: >>> >>> Hey, >>> >>> It seems to be a CPP or Alex problem. Could you provide the following >>> info about your environment: >>> >>> - gcc --version >>> - clang --version >>> - git sha of which ghc you have checked out >>> - alex --version >>> - happy --version >>> >>> Also because of Xcode 5, did you remember to: >>> >>> - reinstall the command line tools in Xcode? (It could be using the old >>> ones) >>> - use the Xcode 5 branch of ghc-ios-scripts? >>> - when you ./configure use "--with-gcc=arm-apple-darwin10-clang" instead >>> of gcc? >>> - compile and add to your path the preprocessor hook / hack (see scripts >>> repo) >>> - apply the 2 patches that are not merged yet? >>> >>> Thanks! >>> >>> __END__ >>> Maxwell Swadling >>> >>> > On 18 Oct 2013, at 9:31 am, Sergey Mikhanov >>> > wrote: >>> > >>> > Hi, >>> > >>> > I'm following the instructions for Xcode 5 on the wiki >>> > and the build fails with this error (OS X 10.8.5): >>> > >>> > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O >>> > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. >>> > -iutils/genprimopcode/dist/build >>> > -iutils/genprimopcode/dist/build/autogen >>> > -Iutils/genprimopcode/dist/build >>> > -Iutils/genprimopcode/dist/build/autogen -package array >>> > -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build >>> > -hidir utils/genprimopcode/dist/build -stubdir >>> > utils/genprimopcode/dist/build -c >>> > utils/genprimopcode/dist/build/Lexer.hs -o >>> > utils/genprimopcode/dist/build/Lexer.o >>> > >>> > :2:2: Not in scope: `#' >>> > make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 >>> > >>> > Any idea why? >>> > >>> > Thanks, >>> > Sergey >>> > _______________________________________________ >>> > iPhone mailing list >>> > iPhone at haskell.org >>> > http://www.haskell.org/mailman/listinfo/iphone >>> _______________________________________________ >>> iPhone mailing list >>> iPhone at haskell.org >>> http://www.haskell.org/mailman/listinfo/iphone >> >> > From lukexipd at gmail.com Fri Oct 18 20:05:51 2013 From: lukexipd at gmail.com (Luke Iannini) Date: Fri, 18 Oct 2013 13:05:51 -0700 Subject: [Haskell-iPhone] Build fails when using Xcode 5 In-Reply-To: References: Message-ID: Hi Sergey, I think that's what I fixed with the patch to happy ? can you try getting the latest version from here and installing it? https://github.com/simonmar/happy Basically it's more clang-as-CPP funniness. During the happy build itself you may hit the same error; if that occurs, try opening up the offending file (e.g., above it's compiling a happy-generated utils/genprimopcode/dist/ build/Parser.hs), converting tabs to spaces (with tabs interpreted as 8 spaces), and fix any obvious layout issues. This is what we're reduced to 'til we figure out a way to get clang to stop misbehaving : ) Cheers Luke On Fri, Oct 18, 2013 at 12:48 PM, Sergey Mikhanov wrote: > I've removed offending lines in Lexer.hs -- the build now goes a bit > further and fails: > > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. > -iutils/genprimopcode/dist/build > -iutils/genprimopcode/dist/build/autogen > -Iutils/genprimopcode/dist/build > -Iutils/genprimopcode/dist/build/autogen -package array > -no-user-package-db -rtsopts -odir utils/genprimopcode/dist/build > -hidir utils/genprimopcode/dist/build -stubdir > utils/genprimopcode/dist/build -c > utils/genprimopcode/dist/build/Parser.hs -o > utils/genprimopcode/dist/build/Parser.o > > templates/GenericTemplate.hs:121:10: > parse error (possibly incorrect indentation or mismatched brackets) > make[1]: *** [utils/genprimopcode/dist/build/Parser.o] Error 1 > > alex is 3.1.0 > happy is 1.19.0 (BTW, it's not possible to do configure without > updating those -- these are the minimum versions required). > > Any ideas where to take it from here? > > S. > > 2013/10/18 Luke Iannini : > > Oh yes, I remember now. If you open > utils/genprimopcode/dist/build/Lexer.hs > > you'll find a line that starts with "# 1". I'm still tracking down > exactly > > what's going on (you might be able to proceed by just deleting those > lines > > in the meantime). > > > > > > On Thu, Oct 17, 2013 at 5:22 PM, Luke Iannini > wrote: > >> > >> Yeah, I'm looking at some new alex/happy issues right now but don't have > >> them quite licked ? > >> > >> You could try "cabal install happy" and "cabal install alex" as I think > >> GHC HEAD requires new versions as of quite recently. > >> > >> I just provided a patch to Simon M for happy for one of the issues, so > you > >> can try checking out and installing the latest version: > >> https://github.com/simonmar/happy > >> > >> > >> On Thu, Oct 17, 2013 at 4:46 PM, Maxwell Swadling > >> wrote: > >>> > >>> Hey, > >>> > >>> It seems to be a CPP or Alex problem. Could you provide the following > >>> info about your environment: > >>> > >>> - gcc --version > >>> - clang --version > >>> - git sha of which ghc you have checked out > >>> - alex --version > >>> - happy --version > >>> > >>> Also because of Xcode 5, did you remember to: > >>> > >>> - reinstall the command line tools in Xcode? (It could be using the old > >>> ones) > >>> - use the Xcode 5 branch of ghc-ios-scripts? > >>> - when you ./configure use "--with-gcc=arm-apple-darwin10-clang" > instead > >>> of gcc? > >>> - compile and add to your path the preprocessor hook / hack (see > scripts > >>> repo) > >>> - apply the 2 patches that are not merged yet? > >>> > >>> Thanks! > >>> > >>> __END__ > >>> Maxwell Swadling > >>> > >>> > On 18 Oct 2013, at 9:31 am, Sergey Mikhanov > >>> > wrote: > >>> > > >>> > Hi, > >>> > > >>> > I'm following the instructions for Xcode 5 on the wiki > >>> > and the build fails with this error (OS X 10.8.5): > >>> > > >>> > "/usr/bin/ghc" -hisuf hi -osuf o -hcsuf hc -static -H32m -O > >>> > -package-db libraries/bootstrapping.conf -i -iutils/genprimopcode/. > >>> > -iutils/genprimopcode/dist/build > >>> > -iutils/genprimopcode/dist/build/autogen > >>> > -Iutils/genprimopcode/dist/build > >>> > -Iutils/genprimopcode/dist/build/autogen -package array > >>> > -no-user-package-db -rtsopts -odir > utils/genprimopcode/dist/build > >>> > -hidir utils/genprimopcode/dist/build -stubdir > >>> > utils/genprimopcode/dist/build -c > >>> > utils/genprimopcode/dist/build/Lexer.hs -o > >>> > utils/genprimopcode/dist/build/Lexer.o > >>> > > >>> > :2:2: Not in scope: `#' > >>> > make[1]: *** [utils/genprimopcode/dist/build/Lexer.o] Error 1 > >>> > > >>> > Any idea why? > >>> > > >>> > Thanks, > >>> > Sergey > >>> > _______________________________________________ > >>> > iPhone mailing list > >>> > iPhone at haskell.org > >>> > http://www.haskell.org/mailman/listinfo/iphone > >>> _______________________________________________ > >>> iPhone mailing list > >>> iPhone at haskell.org > >>> http://www.haskell.org/mailman/listinfo/iphone > >> > >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: