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.
I would like to install the Clang/LLVM compiler suite within Slackware since I use it as my default C compiler for my C programming assignments. I am currently building it within a build directory inside /usr/local/src (/usr/local/src/build) and wish to install it after compiling. I am following the build instructions on the Clang website:
./configure and make are doing what I expect but there are no instructions for "make install" on the clang website at the end. Should I run make install and if yes within the build directory or elsewhere? The actual source code is in /usr/local/src/llvm. Should I have created the build directory in /usr/local/bin instead? Can I just move it to /usr/local/bin after make finishes?
Slackware newbie here. I mostly installed prepackaged software in other distros before (Debian/Ubuntu and Fedora).
Thanks. Any issues with rerunning it since I have already tried to modify the script and installed clang? It seemed to install both clang and llvm but I am still unable to access them. They are in /usr/bin as best as I can tell which is within my path.
If you modified the script to say "CLANG=yes" then you shouldn't need to re-run it.
Did you actually install the resulting package after it built?
Thanks.
So I still have to invoke pkgtool or installpkg on the generated tarball in the /tmp directory?
I presumed that the script ran a make install (or equivalent) step at the end.
I have since tried to build version 3.0 by downloading the source tarball from the Clang/LLVM website and even after altering the VERSION=2.9 to VERSION=3.0 in the script and changing the name of the actual source tarball slightly (it was named llvm-3.0.tar.gz when the script expected llvm-3.0.tgz) the script hangs up after initially starting and running briefly. I presume this is secondary to the tarball being arranged in a way it did not expect. The LLVM team originally implied that the Clang source be placed in a llvm/tools directory within the extracted llvm source while the Slackware Builds seems to place both as gzipped tarballs in the same directory as the extracted SlackBuilds script. Just to clarify this attempt to build version 3.0 is a 3rd attempt after having run (and rerun) the build on the 2.9 source tarball downloded via the link in SlackBuilds.
Is there a particular trick to trying to be on the bleeding edge with some Slackware builds? Should I be fetching the source tarballs from a particular location? Or just wait for the sources to be linked to from SourceBuilds. What I am asking is how tied am I to running the version stated in the SlackBuilds site?
The SlackBuilds script seems to create one tarball that presumably has both LLVM and Clang. Will test it later. I have not "installed" yet if I understood you correctly.
Sorry for my stream of questions. I am learning a lot in the process.
So I still have to invoke pkgtool or installkg on the generated tarball in the /tmp directory?
Yes. The script makes the package, but it does not install it.
Quote:
Is there a particular trick to trying to be on the bleeding edge with some Slackware builds? Should I be fetching the source tarballs from a particular location? Or just wait for the sources to be linked to from SourceBuilds. What I am asking is how tied am I to running the version stated in the SlackBuilds site?
If you want to be bleeding edge, most of the times you only need to get the source from the original web site and edit the SlackBuild so it points to the new version. Usually, there is no problem in running the newest software in the last stable Slackware release, but you might face some rare cases when you'll have to update estrange libraries or even patch rebellious code. The good thing about SlackBuilds.org is that the maintainers have already tested the software and patched it if necessary, so the error factor is reduced and installation is fool-proof. You are not tied, however, to the SlackBuild versions, and you will be able to use without trouble different ones more than not.
Last edited by BlackRider; 01-02-2012 at 04:12 AM.
I have since tried to build version 3.0 by downloading the source tarball from the Clang/LLVM website and even after altering the VERSION=2.9 to VERSION=3.0 in the script and changing the name of the actual source tarball slightly (it was named llvm-3.0.tar.gz when the script expected llvm-3.0.tgz) the script hangs up after initially starting and running briefly.
I presume you haven't changed the tarball name for the clang source yet. Either way you can save that effort as llvm-3.0 does not compile on stock Slackware because of a gcc compiler bug. That's why there's still only 2.9 on SlackBuilds.org.
Quote:
Originally Posted by haziz
The LLVM team originally implied that the Clang source be placed in a llvm/tools directory within the extracted llvm source while the Slackware Builds seems to place both as gzipped tarballs in the same directory as the extracted SlackBuilds script.
Where you download the tarball to does not matter. It is extracted in that folder later on by the script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.