SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564
Rep:
build llvm with ninja
it's possible to build llvm with ninja by applying the following patch to the SlackBuild (inspired from BLFS):
---------------------
--- llvm.SlackBuild.old 2018-09-21 02:09:28.000000000 +0200
+++ llvm.SlackBuild 2018-12-16 20:37:30.539003072 +0100
@@ -145,40 +145,15 @@
-DLLVM_USE_OPROFILE=ON \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DCLANG_RESOURCE_DIR="../lib${LIBDIRSUFFIX}/clang/${VERSION}" \
- .. || exit 1
+ -Wno-dev -G Ninja .. &&
+ ninja || exit 1
# Breaks with one of the patches above. Maybe revisit later?
# -DBUILD_SHARED_LIBS=ON \
- # This seems to not like a parallel build, at least as of 7.0.0. I don't have
- # days to wait for the compile though, so let's just smack it with a hammer
- # fifty times before dropping back to a single-threaded build:
- for index in $(seq 1 50) ; do
- #make $NUMJOBS VERBOSE=1
make $NUMJOBS
- ERR_RESULT=$?
- if [ $ERR_RESULT = 0 ]; then
- break
- fi
- echo "*** PARALLEL MAKE RESTART NUMBER $index"
- done
- if [ ! $ERR_RESULT = 0 ]; then
- # Fifty more for the single thread:
- for index in $(seq 1 50) ; do
- #make VERBOSE=1
- make
- ERR_RESULT=$?
- if [ $ERR_RESULT = 0 ]; then
- break
- fi
- echo "*** NON-PARALLEL MAKE RESTART NUMBER $index"
- done
- fi
- if [ ! $ERR_RESULT = 0 ]; then
- exit 1
- fi
- make install DESTDIR=$PKG || exit 1
+ DESTDIR=$PKG ninja install || exit 1
cd ..
# Add symlinks for $ARCH-slackware-linux-{clang,clang++}:
-------------------------
parallel building doesn't seem to be a problem in that case
This web site has an editor with buttons. One of them is the "#" hash sign. Pressing it produces a set of CODE tags. Everything inbetween will not be interpreted, lines will not be wrapped and will be rendered using a fixed-width font. It makes the CODE you post here more readable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.