LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   OpenBSD uses Clang on amd64/i386 now. (https://www.linuxquestions.org/questions/%2Absd-17/openbsd-uses-clang-on-amd64-i386-now-4175610718/)

YesItsMe 07-27-2017 07:40 AM

OpenBSD uses Clang on amd64/i386 now.
 
Hooray!

Quote:

switch the default compiler on amd64 and i386 to clang
Modern times.

cynwulf 07-27-2017 10:04 AM

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.

YesItsMe 07-27-2017 10:14 AM

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.

cynwulf 07-27-2017 10:45 AM

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

jggimi 07-27-2017 11:51 AM

Quote:

Originally Posted by cynwulf (Post 5740567)
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.

Xeratul 07-28-2017 07:41 AM

Quote:

Originally Posted by YesItsMe (Post 5740495)
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 !

YesItsMe 07-28-2017 07:43 AM

Nobody mentioned Linux here. Please take your tongue off the Shift key.

Xeratul 07-28-2017 07:46 AM

Quote:

Originally Posted by YesItsMe (Post 5740993)
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.

cynwulf 07-28-2017 08:21 AM

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 (Post 5740567)
At least [GCC is] completely free of "corporate interests", the same cannot be said of LLVM/clang

This is not strictly true.

jggimi 07-28-2017 08:45 AM

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. :)

Trihexagonal 07-28-2017 11:38 AM

Quote:

Originally Posted by Xeratul (Post 5740996)
Nothing to say, BSD was, is and will be forever the best.

Words of wisdom. ;)

Xeratul 07-28-2017 01:17 PM

Quote:

Originally Posted by Trihexagonal (Post 5741087)
Words of wisdom. ;)

Nothing else than truth... Hopefully it will last long enough as an Unix great engineering Empire. :D


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