Builing HEAD fails under OSX 10.9/Xcode5/clang at OSMem.c
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
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |