Closed cdepillabout closed 9 years ago
That's weird, our Travis bot specifically tests with cabal and GHC 7.10 to help with the bootstrap case. I'll see if I can repro.
I tried using the stackage nightly cabal.config
and it fails with the same error as well.
I just completed a build in the same setup, and it worked correctly. We do have CPP in place to work around this issue... can you try unpacking the source and removing lines 41-43 of the file in question? It could be that Cabal (for some reason) isn't setting the CPP macros itself.
Removing just lines 41-43 left me with the same error, but removing lines 41-46 fixed the error for me. stack
now compiles and runs correctly.
That's quite unexpected. If you don't mind, could you tell me the contents of your cabal_macros.h file, and specifically the MIN_VERSION_time macro? Mine looks like:
#define VERSION_time "1.5.0.1"
#define MIN_VERSION_time(major1,major2,minor) (\
(major1) < 1 || \
(major1) == 1 && (major2) < 5 || \
(major1) == 1 && (major2) == 5 && (minor) <= 0)
It looks like my version of cpphs
was too old.
Building stack
with cpphs
version 1.17.1 caused the error above.
Building stack
with cpphs
version 1.19 worked.
Is there some way to specify in the .cabal file that a recent version of cpphs
is needed?
Also, I can get stack
to build by removing the use of cpphs
. In the ghc-options:
line of stack.cabal
, I tried removing the -pgmP
and -optP
options. It builds successfully.
Cabal does not actually support build tools at all, so adding the versions wouldn't help. I believe we've already removed the cpphs stuff from master, so that wool be included in the next release. Thanks for looking into this more deeply.
On Wed, Jun 10, 2015, 2:08 PM Dennis Gosnell notifications@github.com wrote:
It looks like my version of cpphs was too old.
Building stack with cpphs version 1.17.1 caused the error above.
Building stack with cpphs version 1.19 worked.
Is there some way to specify in the .cabal file that a recent version of cpphs is needed?
Also, I can get stack to build by removing the use of cpphs. In the ghc-options: line of stack.cabal, I tried removing the -pgmP and -optP options. It builds successfully.
— Reply to this email directly or view it on GitHub https://github.com/commercialhaskell/stack/issues/255#issuecomment-110701585 .
Okay, sounds good.
Thanks a lot for your help!
When trying to instal
stack
in a sandbox, I get the following error:GHC, cabal-install, etc. versions are below:
The following is the full output of
cabal install
: