Hi Than,
I see there is malloc.h present in that path.
But, cmake throws one more error even before the mmap issue:
-- Performing Test SPLIT_STACK_FUNCTIONAL
-- Performing Test SPLIT_STACK_FUNCTIONAL - Failed
-- trying -fcf-protection=none workaround
-- Performing Test SPLIT_STACK_WORKAROUND
-- Performing Test SPLIT_STACK_WORKAROUND - Failed
CMake Error at tools/gollvm/cmake/modules/AddGollvm.cmake:68 (message):
C compiler does not support -fsplit-stack
Call Stack (most recent call first):
tools/gollvm/CMakeLists.txt:22 (include)
Tried compiling the compile source specified in cmake file manually with fsplit-stack and workaround of fcf-protection=none.
But, linker is unable to find the symbol __morestack:
ld: error: undefined symbol: __morestack
Can you please help if I'm missing out any configuration ?
Build environment:
clang 13.0.1 on FreeBSD 12.