{"action":"created","issue":{"url":"https://api.github.com/repos/bscarlet/llvm-general/issues/169","repository_url":"https://api.github.com/repos/bscarlet/llvm-general","labels_url":"https://api.github.com/repos/bscarlet/llvm-general/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/bscarlet/llvm-general/issues/169/comments","events_url":"https://api.github.com/repos/bscarlet/llvm-general/issues/169/events","html_url":"https://github.com/bscarlet/llvm-general/issues/169","id":158907697,"number":169,"title":"Build problems on OSX","user":{"login":"maun","id":926598,"avatar_url":"https://avatars.githubusercontent.com/u/926598?v=3","gravatar_id":"","url":"https://api.github.com/users/maun","html_url":"https://github.com/maun","followers_url":"https://api.github.com/users/maun/followers","following_url":"https://api.github.com/users/maun/following{/other_user}","gists_url":"https://api.github.com/users/maun/gists{/gist_id}","starred_url":"https://api.github.com/users/maun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maun/subscriptions","organizations_url":"https://api.github.com/users/maun/orgs","repos_url":"https://api.github.com/users/maun/repos","events_url":"https://api.github.com/users/maun/events{/privacy}","received_events_url":"https://api.github.com/users/maun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-07T12:13:37Z","updated_at":"2016-07-21T20:06:58Z","closed_at":null,"body":"I am trying to use the llvm-3.8 branch with llvm38 from [homebrew-versions](https://github.com/Homebrew/homebrew-versionsl) with stack (lts-6.2), ghc 7.10.2 (ghc 8.0.1 did not work).\r\n\r\nI get the following build error:\r\n```\r\nllvm-general-3.8.0.0: build\r\nProgress: 1/2\r\n--  While building package llvm-general-3.8.0.0 using:\r\n      /Users/Shared/mylang/llvm-general/llvm-general/.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-1.22.5.0 build lib:llvm-general --ghc-options \" -ddump-hi -ddump-to-file\"\r\n    Process exited with code: ExitFailure 1\r\n    Logs have been written to: /Users/Shared/mylang/.stack-work/logs/llvm-general-3.8.0.0.log\r\n\r\n    Preprocessing library llvm-general-3.8.0.0...\r\n    error: invalid argument '-std=c++11' not allowed with 'C/ObjC'\r\n    compiling .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/LLVM/General/Internal/LibraryFunction_hsc_make.c failed (exit code 1)\r\n    command was: /usr/bin/gcc -c .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/LLVM/General/Internal/LibraryFunction_hsc_make.c -o .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/LLVM/General/Internal/LibraryFunction_hsc_make.o -m64 -fno-stack-protector -D__GLASGOW_HASKELL__=710 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Isrc -I/usr/local/Cellar/llvm38/3.8.0/lib/llvm-3.8/include -I/usr/local/Cellar/llvm38/3.8.0/lib/llvm-3.8/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -O3 -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fno-common -Wcast-qual -I.stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen -include .stack-work/dist/x86_64-osx/Cabal-1.22.5.0/build/autogen/cabal_macros.h -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/unix_KZL8h98IqDM57kQSPo1mKx/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/time_FTheb6LSxyX1UABIbBXRfn/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/bytes_6VWy06pWzJq9evDvK2d4w6/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/integ_2aU3IZNMF9a7mQ0OzsZ0dS/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/include -I/Users/myuser/.stack/programs/x86_64-osx/ghc-7.10.3/lib/ghc-7.10.3/include/\r\n```\r\n\r\n I am not sure whether this is a problem with llvm-general or my setup, does anyone know what the problem is?"},"comment":{"url":"https://api.github.com/repos/bscarlet/llvm-general/issues/comments/234368008","html_url":"https://github.com/bscarlet/llvm-general/issues/169#issuecomment-234368008","issue_url":"https://api.github.com/repos/bscarlet/llvm-general/issues/169","id":234368008,"user":{"login":"lialan","id":450283,"avatar_url":"https://avatars.githubusercontent.com/u/450283?v=3","gravatar_id":"","url":"https://api.github.com/users/lialan","html_url":"https://github.com/lialan","followers_url":"https://api.github.com/users/lialan/followers","following_url":"https://api.github.com/users/lialan/following{/other_user}","gists_url":"https://api.github.com/users/lialan/gists{/gist_id}","starred_url":"https://api.github.com/users/lialan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lialan/subscriptions","organizations_url":"https://api.github.com/users/lialan/orgs","repos_url":"https://api.github.com/users/lialan/repos","events_url":"https://api.github.com/users/lialan/events{/privacy}","received_events_url":"https://api.github.com/users/lialan/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T20:06:58Z","updated_at":"2016-07-21T20:06:58Z","body":"Ahh I think Cabal will merge ccOptions and cppOptions before sending to hsc2hs..."}}
{"actor":{"display_login":"lialan"}}