id summary reporter owner description type status priority milestone component version resolution keywords cc port 57130 clang-7.0: build fails in compiler-rt/lib/xray on darwin < 15 due to several issues kencu kencu "there are three issues building XRAY on older systems (that I have found so far). 1. It needs thread local storage, which results in systems < darwin 11 failing. 2. MAP_ANONYMOUS is used but undefined on older systems. This is fixed easily enough by replacing the definition with -DMAP_ANONYMOUS=MAP_ANON. I did it by adding the definition in compiler-rt/CMakeLists.txt to cover all the instances at once. 3. error: use of undeclared identifier 'CLOCK_REALTIME'. This one may be harder to fix. There are some example replacement functions but I'm not sure if any of them truly offer a suitable replacement. These issues may result in XRAY being disabled on all the non-building systems (currently darwin < 15). When XRAY is disabled on darwin10 clang-7.0 builds through to completion (this fix is already in the Portfile restricted to darwin 10 or less )." defect closed Normal ports fixed tehcog clang-7.0