[llvm-dev] Successful Build: llvm-5.0.1 on Solaris 10/sparc
Nemo Nusquam via llvm-dev
llvm-dev at lists.llvm.org
Sat Mar 17 13:50:53 PDT 2018
Greetings, All.
Llvm-5.0.1 was successfully built on Solaris 10/sparc.
I first built the Debug version then the Release version with the
following cmake/gmake incantations:
cmake \
-DCMAKE_C_COMPILER=/home/build/gcc/5.4.0/bin/gcc \
-DCMAKE_CXX_COMPILER=/home/build/gcc/5.4.0/bin/g++ \
-DLLVM_TARGETS_TO_BUILD=Sparc \
-DCMAKE_INSTALL_PREFIX=/home/build/llvm \
-DCMAKE_BUILD_TYPE=Release \
/home/build/opt/llvm/llvm-5.0.1.src
LD_OPTIONS="-z altexec64" gmake
A few problems arose:
1. Added code for strnlen to
llvm-5.0.1.src/tools/obj2yaml/macho2yaml.cpp and
llvm-5.0.1.src/lib/ObjectYAML/MachOYAML.cpp
(as strnlen() is not POSIX, hence not in <string.h>).
2. Changed grep-->ggrep in
bld.llvm-rel/tools/bugpoint-passes/CMakeFiles/BugpointPasses_exports.dir/build.make
(as "-q" is GNU not POSIX).
3. Release version of llvm-tblgen dumps core: copied over debug version.
Now working on "gmake check".
Sincerely,
N.
More information about the llvm-dev
mailing list