Skip to content

For MacOS and pcre, no way to do equiv of cabal --extra-include-dirs #333

@myShoggoth

Description

@myShoggoth

A better solution would obviously be preferred, but can't use stack to do a mysql based project.

-- While building package pcre-light-0.4.0.3 using:
/Applications/ghc-7.8.4.app/Contents/bin/runhaskell -package=Cabal-1.18.1.5 -clear-package-db -global-package-db /var/folders/wd/0mx8cfxx3d967nmwcmvn037m0000gn/T/stack12670/pcre-light-0.4.0.3/Setup.lhs --builddir=.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/ build
Process exited with code: ExitFailure 1
Logs have been written to: "/Users/andrew/src/startupspot/.stack-work/logs/pcre-light-0.4.0.3.log"

Configuring pcre-light-0.4.0.3...
Building pcre-light-0.4.0.3...
Preprocessing library pcre-light-0.4.0.3...
Base.hsc:103:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
         ^
1 error generated.
compiling .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/Text/Regex/PCRE/Light/Base_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/Text/Regex/PCRE/Light/Base_hsc_make.c -o .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/Text/Regex/PCRE/Light/Base_hsc_make.o -m64 -fno-stack-protector -D__GLASGOW_HASKELL__=708 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -I/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/bytestring-0.10.4.0/include -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/base-4.7.0.2/include -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/integer-gmp-0.5.1.0/include -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/include -I.stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.18.1.5/build/autogen/cabal_macros.h -I/Applications/ghc-7.8.4.app/Contents/lib/ghc-7.8.4/include/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions