25fe2
![]() |
|
|
|
|
|||||||
| FreeBSD Development Kernel development, writing drivers, coding, and questions regarding FreeBSD internals. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
CLANG is a new C compiler built to work with LLVM. Getting away from gcc on the BSD side is kind of important (including, but not only because of GPLv3) so getting FreeBSD to compile and work with CLANG is a high profile project.
Read more ...
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- Last edited by DutchDaemon; April 17th, 2010 at 00:31. |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
vertexSymphony (May 26th, 2010) | ||
|
#2
|
||||
|
||||
|
First test. Can it compile itself?
__________________
Wanting to learn is so rare a merit that it should be encouraged. |
|
#3
|
|||
|
|||
|
It can, or at least it should be able to. If it doesn't, let us know.
|
|
#4
|
||||
|
||||
|
Ivan's blog unavailable right now:
Quote:
|
|
#5
|
|||
|
|||
|
Original email
Just note that email says to do: $ cd clangbsd && make buildworld$ echo NO_WERROR= >> /etc/make.conf$ echo WERROR= >> /etc/make.confBut this is wrong, you should do WERROR stuff before buildworld. |
|
#6
|
||||
|
||||
|
__________________
What was the goal of the Linux community--to replace Windows? One can imagine higher aspirations., Bill Joy |
|
#7
|
|||
|
|||
|
I tried this a while ago and it compiled etc... perfectly, but the c++ was broken. Has any work been done on this?
|
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
|||
|
|||
|
A lot of work has been done in improving clang's C++ support, and since "a while ago" it has most definitely gotten better. It's not perfect, but it's getting there.
|
|
#10
|
|||
|
|||
|
I am using the FreeBSD boot manager to dual-boot Windows and FreeBSD. Do I need to take any special steps or does it not matter?
Since I use ccache, do I need to modify any settings in /.cshrc or /etc/make.conf? Can I use FreeBSD/Clang to recompile ports or should I stick with using it to compile the OS and kernel? |
|
#11
|
|||
|
|||
|
Quote:
Quote:
Using clang with ports right now would be a very bad idea. You should stick with gcc for now. There is some work done to get ports to work with clang, but it's nowhere near complete yet. I expect some/many clang fixes to go to ports tree in the next few months, but don't quote me on that. |
|
#12
|
|||
|
|||
|
FWIW, Phoronix benchmarked LLVM/Clang recently. Pity they didn't stack it up against GCC 4.2 though...
|
|
#13
|
||||
|
||||
|
Quote:
There are several benchmark suites in the portstree. The apps Phoronix used to test compile times and performance are in the tree too. Last edited by ckester; April 21st, 2010 at 18:21. Reason: grammar |
|
#14
|
|||
|
|||
|
I believe that switching mainline FreeBSD to Clang would be a good idea. It would make FreeBSD dependent on a completely BSD toolchain. It would be great if 9.0 or 8.x is compiled with Clang. Clang has many other benefits such as better diagnostics. I support the idea of moving FreeBSD to Clang.
|
|
#15
|
||||
|
||||
|
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
vertexSymphony (June 27th, 2010) | ||
|
#16
|
||||
|
||||
|
Is it available for testing on the PowerPC platform yet?
__________________
Smiles and laughter are the medicines for tears and sadness. Um humano, sou eu com culpa e dificuldades. Stay a child with a child's view of the world and life is worth more every moment you live it. |
|
#17
|
|||
|
|||
|
[INFO]: import of clang/LLVM to happen on June 9th:
Quote:
|
|
#18
|
||||
|
||||
|
My laptop overheated and shutdown while compiling llvm/clang
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
#19
|
||||
|
||||
|
Yeah, if you go through the archives, there's a post that shows the difference in time it takes to compile clang. Using gcc it was over 1100 (sec/min?) and building clang with clang was under 700.
|
|
#20
|
|||
|
|||
|
What's the problem with GPLv3 and BSD? What's _different_ compared to GPLv2, that makes it infeasible to use GCC as a userland tool in FreeBSD?
|
|
#21
|
||||
|
||||
|
Quote:
http://stackoverflow.com/questions/3...809007#3809007 http://www.zdnet.com.au/gplv3-to-dri...-339281694.htm http://lists.nycbug.org/pipermail/ta...er/010446.html
__________________
Religions, worst damnation of mankind. "FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM http://vermaden.blogspot.com |
| The Following User Says Thank You to vermaden For This Useful Post: | ||
vertexSymphony (July 8th, 2011) | ||
|
#22
|
|||
|
|||
|
Quote:
As for the first point, I read the FreeBSD foundation hired lawyers to look into it. Has there been a result so far? Last edited by DutchDaemon; July 8th, 2011 at 17:52. Reason: http://forums.freebsd.org/showthread.php?t=11799 |
|
#23
|
||||
|
||||
|
The biggest problem of GPL3 is probably that You need bunch of lawyers to actually understand what it means.
__________________
Religions, worst damnation of mankind. "FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM http://vermaden.blogspot.com |
|
#24
|
|||
|
|||
|
Quote:
IIRC Kishon (the author) refused to sign any contract with more than one page and written in such a way that he needed to read it more than once to understand it. Let that be the goal for licences and EULAs.
__________________
Optimists believe we live in the best world possible. Pessimists agree to this. Two little lights, blinking out in a sky full of stars - we will never forget you. I miss you so much |
| The Following 3 Users Say Thank You to Crivens For This Useful Post: | ||
|
#25
|
||||
|
||||
|
Well stated
|
![]() |
| Tags |
| clang, llvm |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| www.ghostbsd.org and forum is ready to use. | ericturgeon | GNOME | 5 | November 25th, 2009 03:22 |
| ZFS considered production ready in FreeBSD 8 | danger@ | News & Announcements | 0 | September 15th, 2009 21:34 |
| Testing a FreeBSD port | jack63ss | Installation and Maintenance of FreeBSD Ports or Packages | 7 | September 1st, 2009 08:59 |
| FreeBSD kernel compiles with clang? | irkkaaja | General | 1 | March 1st, 2009 19:42 |
| [Solved] Documentation for setfib(2) in FreeBSD-HEAD | Ole | Networking | 3 | December 9th, 2008 09:28 |