[llvm-dev] Building llvm-5.0.1 on Solaris 10/sparc

Nemo Nusquam via llvm-dev llvm-dev at lists.llvm.org
Sun Feb 25 15:06:52 PST 2018


Greetings, All:

I am trying to build llvm-5.0.1 on Solaris 10/Sparc with gcc-5.4.0 as 
follows.

cmake -DLLVM_TARGETS_TO_BUILD="Sparc" /home/nemo/opt/llvm/llvm-5.0.1-src

I then invoke gmake and the build trundles along and stops as follows.

[ 62%] Building CXX object 
lib/ObjectYAML/CMakeFiles/LLVMObjectYAML.dir/MachOYAML.cpp.o
/home/nemo/opt/llvm/llvm-5.0.1.src/lib/ObjectYAML/MachOYAML.cpp: In 
static member function 'static void llvm::yaml::ScalarTraits<char 
[16]>::output(const char (&)[16], void*, llvm::raw_ostream&)':
/home/nemo/opt/llvm/llvm-5.0.1.src/lib/ObjectYAML/MachOYAML.cpp:40:33: 
error: 'strnlen' was not declared in this scope
    auto Len = strnlen(&Val[0], 16);

gmake[2]: *** 
[lib/ObjectYAML/CMakeFiles/LLVMObjectYAML.dir/MachOYAML.cpp.o] Error 1
gmake[1]: *** [lib/ObjectYAML/CMakeFiles/LLVMObjectYAML.dir/all] Error 2

My main question is: Why are Mach0 tools being built?

Sincerely,
N.


More information about the llvm-dev mailing list