[GHC] #8493: Can't compile happy + ghc with clang's CPP
GHC
ghc-devs at haskell.org
Sun Dec 1 16:37:18 UTC 2013
#8493: Can't compile happy + ghc with clang's CPP
----------------------------------------+----------------------------------
Reporter: maxs | Owner:
Type: bug | Status: new
Priority: highest | Milestone: 7.8.1
Component: libraries (other) | Version: 7.7
Resolution: | Keywords: happy clang
Operating System: MacOS X | Architecture:
Type of failure: Building GHC failed | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
----------------------------------------+----------------------------------
Comment (by George):
Not sure if this helps, but with Xcode 5, Mavericks, the latest Haskell
platform after running Mark Lentczner script (emailed Oct. 31 to haskell-
platform at projects.haskell.org,haskell-cafe at haskell.org, and ghc-
devs at haskell.org) I am able to compile happy 1.19.1:
cabal install happy
Resolving dependencies...
Downloading happy-1.19.1...
[1 of 1] Compiling Main (
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/happy-1.19.1-26867/happy-1.19.1/Setup.lhs,
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/happy-1.19.1-26867/happy-1.19.1/dist/setup/Main.o
)
Linking
/var/folders/9b/rh4y2gy92hgdb6ktv4df1jv00000gn/T/happy-1.19.1-26867/happy-1.19.1/dist/setup/setup
...
Configuring happy-1.19.1...
Building happy-1.19.1...
Preprocessing executable 'happy' for happy-1.19.1...
...
Linking dist/build/happy/happy ...
Warning: No documentation was generated as this package does not contain a
library. Perhaps you want to use the --executables, --tests or
--benchmarks
flags.
Installing executable(s) in
/Users/gcolpitts/Library/Haskell/ghc-7.6.3/lib/happy-1.19.1/bin
Warning: The directory
/Users/gcolpitts/Library/Haskell/ghc-7.6.3/lib/happy-1.19.1/bin is not in
the
system search path.
Installed happy-1.19.1
Updating documentation index
/Users/gcolpitts/Library/Haskell/doc/index.html
Warning: could not create a symlink in
/Users/gcolpitts/Library/Haskell/bin
for happy because the file exists there already but is not managed by
cabal.
You can create a symlink for this executable manually if you wish. The
executable file has been installed at
/Users/gcolpitts/Library/Haskell/ghc-7.6.3/lib/happy-1.19.1/bin/happy
bash-3.2$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
--with-gxx-include-
dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
bash-3.2$ ghc -v
Glasgow Haskell Compiler, Version 7.6.3, stage 2 booted by GHC version
7.4.2
Using binary package database:
/Library/Frameworks/GHC.framework/Versions/7.6.3-x86_64/usr/lib/ghc-7.6.3/package.conf.d/package.cache
Using binary package database:
/Users/gcolpitts/.ghc/x86_64-darwin-7.6.3/package.conf.d/package.cache
hiding package vector-0.10.0.1 to avoid conflict with later version
vector-0.10.9.1
hiding package unordered-containers-0.2.3.0 to avoid conflict with later
version unordered-containers-0.2.3.3
hiding package hashable-1.1.2.5 to avoid conflict with later version
hashable-1.2.1.0
hiding package binary-0.5.1.1 to avoid conflict with later version
binary-0.6.4.0
hiding package Cabal-1.16.0 to avoid conflict with later version
Cabal-1.18.1.2
hiding package containers-0.5.0.0 to avoid conflict with later version
containers-0.5.3.1
hiding package bytestring-0.10.0.2 to avoid conflict with later version
bytestring-0.10.4.0
hiding package Cabal-1.18.1.1 to avoid conflict with later version
Cabal-1.18.1.2
hiding package blaze-builder-0.3.1.1 to avoid conflict with later version
blaze-builder-0.3.2.0
wired-in package ghc-prim mapped to ghc-
prim-0.3.0.0-d5221a8c8a269b66ab9a07bdc23317dd
wired-in package integer-gmp mapped to integer-
gmp-0.5.0.0-2f15426f5b53fe4c6490832f9b20d8d7
wired-in package base mapped to
base-4.6.0.1-6c351d70a24d3e96f315cba68f3acf57
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-
haskell-2.8.0.0-c2c1b21dbbb37ace4b7dc26c966ec664
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
ghc: no input files
Usage: For basic information, try the `--help' option.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8493#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list