Closed gaze closed 4 years ago
Thanks for the report. It looks like a clang-specific issue. However, I can't easily reproduce because of https://github.com/commercialhaskell/stack/issues/4073 . I might just try on the macbook later, but in the meantime, can you post a fully verbose build here? Maybe I can offer some guidance then.
@gaze sadly that does not include the ghc
invocation, and the invocation itself is not verbose. I think --verbose --cabal-verbose --ghc-options=-v
should do it.
Apologies! Still a bit new to Haskell.
stack build --profile --verbose --cabal-verbose --ghc-options=-v 2> dump2.txt
dump2.txt
Fwiw, this allowed me to build. Not sure what the interaction would be with other platforms
diff --git a/inline-c-cpp/inline-c-cpp.cabal b/inline-c-cpp/inline-c-cpp.cabal
index 7985158..2e9ad42 100644
--- a/inline-c-cpp/inline-c-cpp.cabal
+++ b/inline-c-cpp/inline-c-cpp.cabal
@@ -26,7 +26,7 @@ library
, safe-exceptions
hs-source-dirs: src
default-language: Haskell2010
- ghc-options: -Wall -optc-std=c++11
+ ghc-options: -Wall -optc-xc++
if os(darwin)
-- avoid https://gitlab.haskell.org/ghc/ghc/issues/11829
ld-options: -Wl,-keep_dwarf_unwind
@gaze thank you, -optc-x-c++
makes a lot of sense, but I do not know why it'd break only with --profile
. Anyway, I've created https://github.com/fpco/inline-c/pull/103 to fix this problem in the repo. It's a shame that even with those verbosity options we still do not see the cc
invocation...
@gaze I've added -x-c++
to inline-c-cpp.cabal
, and uploaded new inline-c-cpp version 0.3.0.3.
seems this issue is back with ghc 8.10.3. has anybody else run into this again recently?
Hey all, I have an lts-14.11 stack project that builds just fine when invoking
stack build
, but when building usingstack build --profile
, I get the following outputThis is under macOS 10.14.4. It's repeatable when deleting ~/.stack and/or .stack-work and then running build or build --profile in either order.