Installation of package text failing installation on ghc 7.6.3

I just downloaded the latest Haskell platform (I realize that ghc might not be up-to-date in this) for my macbook. I installed it, which appeared to go without problems. However, when I tried to update the package text, I get the errors below. I suspect that the first error (not recognizing ' in a comment) cascades through the rest. How do you suggest fixing this (other than getting Bryan do drop the apostrophe :-))? Victor Configuring text-1.1.1.2... Building text-1.1.1.2... Preprocessing library text-1.1.1.2... Data/Text.hs:9:52: warning: missing terminating ' character [-Winvalid-pp-token] -- Copyright : (c) 2009, 2010, 2011, 2012 Bryan O'Sullivan, ^ Data/Text.hs:90:12: warning: missing terminating ' character [-Winvalid-pp-token] , foldl' ^ Data/Text.hs:92:13: warning: missing terminating ' character [-Winvalid-pp-token] , foldl1' ^ Data/Text.hs:151:14: warning: missing terminating ' character [-Winvalid-pp-token] --, lines' ^ Data/Text.hs:269:15: warning: missing terminating '"' character [-Winvalid-pp-token] -- character \"�\" (U+FFFD). Functions that perform this ^ Data/Text.hs:271:5: warning: missing terminating '"' character [-Winvalid-pp-token] -- \"Performs replacement on invalid scalar values\". ^ Data/Text.hs:304:12: warning: missing terminating '"' character [-Winvalid-pp-token] -- phrase \"Subject to fusion\". ^ Data/Text.hs:440:3: error: invalid preprocessing directive #-} ^ Data/Text.hs:477:4: error: invalid preprocessing directive #-} ^

you just upgraded to xcode 5 but you haven't updated you SETTINGS file
please follow the directions here: https://gist.github.com/cartazio/7131371
(these directions can be found via http://www.haskell.org/platform/mac.html)
if you wish to check their authenticity :)
On Sun, May 11, 2014 at 4:46 PM, Victor Miller
I just downloaded the latest Haskell platform (I realize that ghc might not be up-to-date in this) for my macbook. I installed it, which appeared to go without problems. However, when I tried to update the package text, I get the errors below. I suspect that the first error (not recognizing ' in a comment) cascades through the rest. How do you suggest fixing this (other than getting Bryan do drop the apostrophe :-))?
Victor
Configuring text-1.1.1.2...
Building text-1.1.1.2...
Preprocessing library text-1.1.1.2...
Data/Text.hs:9:52:
warning: missing terminating ' character [-Winvalid-pp-token]
-- Copyright : (c) 2009, 2010, 2011, 2012 Bryan O'Sullivan,
^
Data/Text.hs:90:12:
warning: missing terminating ' character [-Winvalid-pp-token]
, foldl'
^
Data/Text.hs:92:13:
warning: missing terminating ' character [-Winvalid-pp-token]
, foldl1'
^
Data/Text.hs:151:14:
warning: missing terminating ' character [-Winvalid-pp-token]
--, lines'
^
Data/Text.hs:269:15:
warning: missing terminating '"' character [-Winvalid-pp-token]
-- character \"�\" (U+FFFD). Functions that perform this
^
Data/Text.hs:271:5:
warning: missing terminating '"' character [-Winvalid-pp-token]
-- \"Performs replacement on invalid scalar values\".
^
Data/Text.hs:304:12:
warning: missing terminating '"' character [-Winvalid-pp-token]
-- phrase \"Subject to fusion\".
^
Data/Text.hs:440:3:
error: invalid preprocessing directive
#-}
^
Data/Text.hs:477:4:
error: invalid preprocessing directive
#-}
^
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Sun, May 11, 2014 at 4:46 PM, Victor Miller
I just downloaded the latest Haskell platform (I realize that ghc might not be up-to-date in this) for my macbook. I installed it, which appeared to go without problems. However, when I tried to update the package text, I get the errors below. I suspect that the first error (not recognizing ' in a comment) cascades through the rest. How do you suggest fixing this (other than getting Bryan do drop the apostrophe :-))?
This is the reason the Platform hasn't been updated yet (will happen later this month) --- anything using the CPP extension is broken on OS X with Xcode 5.0.2 or later, because its cpp is not compatible with Haskell code. If you install the Platform via MacPorts or Homebrew then you will get one built using gcc, and this won't happen. Alternatively there is a patch you can apply to work around most (but not all) of the incompatibilities; see http://www.haskell.org/platform/mac.html under "Xcode 5 & OS X 10.9 (Mavericks)" (note that that heading is actually in error, as 10.8 will also show the problem if an Xcode beyond 5.0.1 is installed). Alternately you can wait for the new Platform release later this month, which will be based on ghc 7.8.2 which has its own workaround for the incompatibility. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Brandon, Thanks. I read the instructions too hastily. I ran
ghc-clang-wrapper before I installed the new platform :-(. Now it's
working.
Victor
On Sun, May 11, 2014 at 4:56 PM, Brandon Allbery
On Sun, May 11, 2014 at 4:46 PM, Victor Miller
wrote: I just downloaded the latest Haskell platform (I realize that ghc might not be up-to-date in this) for my macbook. I installed it, which appeared to go without problems. However, when I tried to update the package text, I get the errors below. I suspect that the first error (not recognizing ' in a comment) cascades through the rest. How do you suggest fixing this (other than getting Bryan do drop the apostrophe :-))?
This is the reason the Platform hasn't been updated yet (will happen later this month) --- anything using the CPP extension is broken on OS X with Xcode 5.0.2 or later, because its cpp is not compatible with Haskell code.
If you install the Platform via MacPorts or Homebrew then you will get one built using gcc, and this won't happen. Alternatively there is a patch you can apply to work around most (but not all) of the incompatibilities; see http://www.haskell.org/platform/mac.html under "Xcode 5 & OS X 10.9 (Mavericks)" (note that that heading is actually in error, as 10.8 will also show the problem if an Xcode beyond 5.0.1 is installed).
Alternately you can wait for the new Platform release later this month, which will be based on ghc 7.8.2 which has its own workaround for the incompatibility.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (3)
-
Brandon Allbery
-
Carter Schonwald
-
Victor Miller