[GHC] #8481: Builing HEAD fails under OSX 10.9/Xcode5/clang at OSMem.c

GHC ghc-devs at haskell.org
Sat Oct 26 15:46:21 UTC 2013


#8481: Builing HEAD fails under OSX 10.9/Xcode5/clang at OSMem.c
----------------------------------+----------------------------------------
       Reporter:  jloos           |             Owner:
           Type:  bug             |            Status:  new
       Priority:  normal          |         Milestone:
      Component:  Compiler        |           Version:  7.6.3
       Keywords:                  |  Operating System:  MacOS X
   Architecture:                  |   Type of failure:  Building GHC failed
  Unknown/Multiple                |         Test Case:
     Difficulty:  Unknown         |          Blocking:
     Blocked By:                  |
Related Tickets:                  |
----------------------------------+----------------------------------------
 Recent changes to OSMem.c brings a build failure on OS X 10.9
 {{{
 /dist/build/autogen -Irts/dist/build -Irts/dist/build/autogen
 -O2    -c rts/posix/OSMem.c -o rts/dist/build/posix/OSMem.o

 rts/posix/OSMem.c:274:23:
      error: use of undeclared identifier '_SC_PHYS_PAGES'
             ret = sysconf(_SC_PHYS_PAGES);
                           ^
 1 error generated.
 make[1]: *** [rts/dist/build/posix/OSMem.o] Error 1
 make: *** [all] Error 2
 }}}

 looking at man sysconf:

 {{{
 These values also exist, but may not be standard:

      _SC_PHYS_PAGES
              The number of pages of physical memory.  Note that it is
 possible that the product of this value and the value of _SC_PAGESIZE
              will overflow a long in some configurations on a 32bit
 machine.
 }}}

 I bootstrapped with a homebrew ghc compiled with a homebrew gcc 4.8

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


More information about the ghc-tickets mailing list