DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd August 2017
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default x11/tint2 port using clang

x11/tint2 added clang support after 12.2 version currently in ports. The clang announcement said that it was now the default compiler. I have been using tint2-14.5 on -current for about 6 weeks and would like to recompile with clang. x11/tint2 uses cmake.

bsd.port.mk(5) indicates that one can choose the compiler

Quote:
CHOSEN_COMPILER
Usually read-only. Compiler suite chosen by the COMPILER mechanism. Set to ‘irrelevant’ to disable COMPILER.
.

With that background.
1. Do I need to specify clang in the Makefile or do anything special to cmake?
2. Any clang tests need to be run on the build?
3. If clang fails, does one specify gcc4 in the interim?
Reply With Quote
  #2   (View Single Post)  
Old 2nd August 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The compiler clang has been the default compiler for amd64 and i386 base AND ports since late July. If you have followed the July 29 entry of the Following -current FAQ, all of your installed packages will have been built by the clang compiler except those which still require to be built by gcc 4.9 or gcc 4.2.
Reply With Quote
  #3   (View Single Post)  
Old 3rd August 2017
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by shep View Post
bsd.port.mk(5) indicates that one can choose the compiler
Can, yes. Should, no. And it doesn't work like you'd necessarily think. Setting COMPILER=gcc for example would still use clang on CLANG_ARCHS (amd64/arm64/i386 as of right now). It would, however, set gcc-4.9 on non-CLANG_ARCHS.

Quote:
Originally Posted by shep View Post
With that background.
1. Do I need to specify clang in the Makefile or do anything special to cmake?
No.
Quote:
Originally Posted by shep View Post
2. Any clang tests need to be run on the build?
No.
Quote:
Originally Posted by shep View Post
3. If clang fails, does one specify gcc4 in the interim?
No. Unless the project has hard dependencies on GNU C features that clang will never support (these things actually exist...), then you'd set COMPILER=gcc-only. But you should never have to do that.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
clang/llvm lumiwa FreeBSD General 3 21st February 2013 12:30 AM
Updating tint2 port/package shep OpenBSD Packages and Ports 3 3rd February 2013 10:16 PM
clang -v lumiwa FreeBSD General 4 16th January 2013 03:26 PM
FreeBSD FreeBSD 10 will be using Clang instead of GCC J65nko News 0 15th May 2012 09:10 PM
LLVM Clang Vs gcc aleunix OpenBSD General 8 22nd February 2012 10:24 AM


All times are GMT. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick