LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-07-2018, 11:34 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,438
Blog Entries: 15

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
Question Oddball question regarding LLVM and Slackware


Just a curiosity, but how many packages currently can be successfully rebuilt or built using llvm/clang rather than gcc with the same level of stability and reliability as a traditional gcc compiled counterpart? I know there are some subtle differences but are they enough to really matter?

Just had the passing though cross my mind just now and figured I would ask.

On a side note: A complete Slackware release rebuilt with llvm/clang might be an interesting project. Will look into that when I have time.

Thanks.
 
Old 07-08-2018, 02:01 AM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,567

Rep: Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748
Pretty much everything will compile with clang (some things might need a few adjustments, but most will just compile). The kernel is about the only thing that absolutely requires gcc.
 
3 members found this post helpful.
Old 07-08-2018, 02:02 AM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,567

Rep: Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748Reputation: 4748
I've compiled all of KDE4 with llvm/clang as a test, and it ran just fine.
 
2 members found this post helpful.
Old 07-08-2018, 11:15 AM   #4
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,715

Rep: Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716Reputation: 716
Quote:
Originally Posted by ReaperX7 View Post

On a side note: A complete Slackware release rebuilt with llvm/clang might be an interesting project. Will look into that when I have time.
indeed, good luck. just a tip, you need to link c++ projects with libc++ instead of libstdc++ since the standard library implementations slightly diverse, and the support from clang to compile everything with the standard implementation of libstdc++ is decreasing.
as shown here, for example: https://bugs.llvm.org/show_bug.cgi?id=33222
there is currently not that much code that makes use of this new things, but if the tendency continues like I see it, there will soon be an ABI problem and the clang compiler will not longer be a drop in replacement since it will force you to work with it's standard library implementation, and than you will have to have the whole system (at least the C++ part) either with clang, or with gcc compiled.
 
Old 07-08-2018, 11:22 AM   #5
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,324

Rep: Reputation: Disabled
Quote:
Originally Posted by volkerdi View Post
I've compiled all of KDE4 with llvm/clang as a test, and it ran just fine.
I've seen clang avoid gcc bugs too, including run time issues like segfaults.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Oddball permissions scenario chickenminnie Linux - Newbie 8 06-19-2018 11:54 AM
[SOLVED] unable to rebuild llvm-4.0 on slackware-current with gcc7/glibc-2.25 nobodino Slackware 4 06-03-2017 01:46 AM
llvm-config problem in slackware64-current LLVM 3.2 package teeemcee Slackware 0 01-24-2013 02:44 PM
Clang/LLVM Install Within Slackware? haziz Slackware 8 01-03-2012 03:46 AM
Oddball Samba Error in Slackware Current Woodsman Slackware 4 10-28-2008 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration