[GHC] #8148: ./configure IGNORES --with-gcc=gcc-4.8, can't build head on os x 10.8 with xcode 5 installed

GHC ghc-devs at haskell.org
Wed Aug 21 07:10:52 CEST 2013


#8148: ./configure  IGNORES --with-gcc=gcc-4.8, can't build head on os x 10.8 with
xcode 5 installed
---------------------------------+----------------------------------
        Reporter:  carter        |            Owner:
            Type:  bug           |           Status:  new
        Priority:  highest       |        Milestone:  7.8.1
       Component:  Compiler      |          Version:  7.7
      Resolution:                |         Keywords:
Operating System:  MacOS X       |     Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |       Difficulty:  Unknown
       Test Case:                |       Blocked By:
        Blocking:                |  Related Tickets:
---------------------------------+----------------------------------

Comment (by carter):

 i'm then still having some cpp issues.

 lots of errors of the form

 {{{
    Not in scope: ‛unI’
     Perhaps you meant ‛unI#’ (line 111)
 }}}

 the relevant code is

 {{{

 #define derivePrim(ty, ctr, sz, align, idx_arr, rd_arr, wr_arr, idx_addr,
 rd_addr, wr_addr) \
 instance Prim ty where {                                        \
   sizeOf# _ = unI# sz                                           \
 ; alignment# _ = unI# align                                     \
 ; indexByteArray# arr# i# = ctr (idx_arr arr# i#)               \
 ; readByteArray#  arr# i# s# = case rd_arr arr# i# s# of        \
                         { (# s1#, x# #) -> (# s1#, ctr x# #) }  \
 ; writeByteArray# arr# i# (ctr x#) s# = wr_arr arr# i# x# s#    \
                                                                 \
 ; indexOffAddr# addr# i# = ctr (idx_addr addr# i#)              \
 ; readOffAddr#  addr# i# s# = case rd_addr addr# i# s# of       \
                         { (# s1#, x# #) -> (# s1#, ctr x# #) }  \
 ; writeOffAddr# addr# i# (ctr x#) s# = wr_addr addr# i# x# s#   }

 unI# :: Int -> Int#
 unI# (I# n#) = n#

 }}}

 does that mean the stringification patches aren't in the apple clang? Does
 this cpp macro work correctly with clang HEAD?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8148#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler




More information about the ghc-tickets mailing list