LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-27-2017, 07:40 AM   #1
YesItsMe
Member
 
Registered: Oct 2014
Posts: 52

Rep: Reputation: 12
OpenBSD uses Clang on amd64/i386 now.


Hooray!

Quote:
switch the default compiler on amd64 and i386 to clang
Modern times.
 
Old 07-27-2017, 10:04 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
It's been used for arm64 for a while now I believe.

I don't know if it's anything to celebrate. GCC has served us well and it's a credit to RMS that it's been so widely adopted. At least it's completely free of "corporate interests", the same cannot be said of LLVM/clang.

Time will tell I suppose.
 
Old 07-27-2017, 10:14 AM   #3
YesItsMe
Member
 
Registered: Oct 2014
Posts: 52

Original Poster
Rep: Reputation: 12
The GPLv3 is discouraged on OpenBSD as far as I know.

Plus, it is, at least, questionable if GCC or Clang produce better binaries. Adoption should not be the main reason.
 
Old 07-27-2017, 10:45 AM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Regarding GPL code in OpenBSD: https://www.linuxquestions.org/quest...9/#post5727227

Apparently clang has advantages over GCC. This message by Eric S. Raymond from a few years ago goes into a few of the whys and wherefores of clang and GCC (in reply to RMS): https://gcc.gnu.org/ml/gcc/2014-01/msg00209.html
 
1 members found this post helpful.
Old 07-27-2017, 11:51 AM   #5
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 95

Rep: Reputation: 36
Quote:
Originally Posted by cynwulf View Post
It's been used for arm64 for a while now I believe....
This is part of its long term migration from ports, for use with ports... to the base, for use with base. It was already in base, and has been the compiler for arm64.

Last edited by jggimi; 07-27-2017 at 01:27 PM. Reason: clarity
 
Old 07-28-2017, 07:41 AM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by YesItsMe View Post
Hooray!



Modern times.


I CANNOTTTTTTT BELIEVEEEE IT !!! REALLY ???


BSD HAS NOTHING TO DO WITH LINUX (IN TERMS OF COMPILER !!, and beside Ethics). This is really a very big news.

THIS WILL NEVER HAPPEN ON LINUX EVER !

Last edited by Xeratul; 07-28-2017 at 07:43 AM.
 
Old 07-28-2017, 07:43 AM   #7
YesItsMe
Member
 
Registered: Oct 2014
Posts: 52

Original Poster
Rep: Reputation: 12
Nobody mentioned Linux here. Please take your tongue off the Shift key.
 
Old 07-28-2017, 07:46 AM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by YesItsMe View Post
Nobody mentioned Linux here. Please take your tongue off the Shift key.
Better not to mention. Indeed. Sorry.


Man, Holy Respect to BSD !!

Nothing to say, BSD was, is and will be forever the best.
 
Old 07-28-2017, 08:21 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,967
Blog Entries: 5

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
FreeBSD already uses clang as the default compiler (for x86 and arm architectures since 10-RELEASE as I recall?).

OpenBSD has stuck with GCC, while alternatives have been considered. PCC looked promising for a while, but ultimately the project stalled.

I should also correct myself here
Quote:
Originally Posted by cynwulf View Post
At least [GCC is] completely free of "corporate interests", the same cannot be said of LLVM/clang
This is not strictly true.
 
1 members found this post helpful.
Old 07-28-2017, 08:45 AM   #10
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 95

Rep: Reputation: 36
Port transition has been smooth - and that's been something to see. Particularly, due to how multiple c++ standard libraries were selected -- or mis-selected -- as the OS has had multiple versions of gcc (in base, in ports) to manage. It is somewhat simplified, now.

Briefly, a small set of compiler / library selection environment variables were added to the port infrastructure, and bulk updates were performed on the affected ports. I updated one of my Qt-based ports this morning, and I could completely ignore the underlying compiler and library changes.

Last edited by jggimi; 07-28-2017 at 08:53 AM. Reason: clarity
 
1 members found this post helpful.
Old 07-28-2017, 11:38 AM   #11
Trihexagonal
Member
 
Registered: Jul 2017
Location: Over the hills and far away
Distribution: FreeBSD and OpenBSD
Posts: 64

Rep: Reputation: Disabled
Quote:
Originally Posted by Xeratul View Post
Nothing to say, BSD was, is and will be forever the best.
Words of wisdom.
 
Old 07-28-2017, 01:17 PM   #12
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by Trihexagonal View Post
Words of wisdom.
Nothing else than truth... Hopefully it will last long enough as an Unix great engineering Empire.
 
  


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
installing amd64 instead of i386 abd_bela Debian 3 12-22-2014 10:15 AM
HELP goof up between AMD64 and i386 chrischristian Linux - Software 1 01-12-2009 07:13 AM
Debian AMD64 or i386 ? Tanc Linux - Newbie 5 02-03-2008 04:02 PM
amd64 or i386? TheSmilingBandit Debian 8 01-09-2008 12:03 PM
OpenBSD 3.9 for i386 freezes after a few hours d1s4st3r *BSD 0 06-01-2006 03:52 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:10 AM.

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