I've been looking at adding clang to llvm. If I just try to use the current
instructions that remove the static libraries, the build fails after about half
an hour:
llvm[4]: Linking Release executable clang (without symbols)
g++: error: clangSerialization.a: No such file or directory
g++: error: clangCodeGen.a: No such file or directory
g++: error: clangParse.a: No such file or directory
g++: error: clangSema.a: No such file or directory
g++: error: clangStaticAnalyzerFrontend.a: No such file or directory
g++: error: clangStaticAnalyzerCheckers.a: No such file or directory
g++: error: clangStaticAnalyzerCore.a: No such file or directory
g++: error: clangAnalysis.a: No such file or directory
g++: error: clangIndex.a: No such file or directory
g++: error: clangARCMigrate.a: No such file or directory
g++: error: clangRewrite.a: No such file or directory
g++: error: clangAST.a: No such file or directory
g++: error: clangLex.a: No such file or directory
g++: error: clangBasic.a: No such file or directory
make[4]: *** [/tmp/llvm/llvm-3.0.src/Release/bin/clang] Error 1
I was able to get llvm and clang to work with:
tar -xf $DIR/clang-3.0.tar.gz -C tools &&
mv tools/clang-3.0.src tools/clang &&
#touch tools/edis/EnhancedDisassembly.exports &&
./configure --prefix=/opt/llvm &&
#echo "Adjusting Makefiles"
#find -name Makefile -exec \
# sed -ir -e '/^LIBRARYNAME/a SHARED_LIBRARY = 1' \
# -e 's#BUILD_ARCHIVE :*= 1#NO_&#' \
# -e '/^USEDLIBS/s# \([A-Za-z]*\).a# -l\1#g' \
# -e 's#^USEDLIBS#LDFLAGS#' {} \; &&
#echo "Adjusting Makefile.rules"
#sed -i 's#BUILD_ARCHIVE = 1#NO_&#' Makefile.rules &&
echo "Adjusting Makefile.config"
sed -i 's#x)/docs#x)/share/doc#' Makefile.config &&
make &&
make check &&
$SUDO make install
This build takes about 40 minutes so multiple tries are time consuming.
Suggestions?
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page