Re: will netbsd be sticking with gcc?
In article 20140914034725.gs22...@arwen.poofy.goof.com, Aaron J. Grier agr...@poofygoof.com wrote: On Fri, Jun 20, 2014 at 09:05:33AM +0200, Martin Husemann wrote: And of course we would accept patches that make [NetBSD] work with yet another compiler. Are there any out there you are interested in especially? anybody tried compiling NetBSD/amd64 with the Intel icc toolchain recently? Last time I checked it was fairly expensive, required a license server, and the installer was nightmarish. christos
Re: will netbsd be sticking with gcc?
Christos Zoulas wrote: In article 20140914034725.gs22...@arwen.poofy.goof.com, Aaron J. Grier agr...@poofygoof.com wrote: On Fri, Jun 20, 2014 at 09:05:33AM +0200, Martin Husemann wrote: And of course we would accept patches that make [NetBSD] work with yet another compiler. Are there any out there you are interested in especially? anybody tried compiling NetBSD/amd64 with the Intel icc toolchain recently? Last time I checked it was fairly expensive, required a license server, and the installer was nightmarish. I don't see why anyone would want to compile the base with icc, even if it's the latest version but you can try lang/icc11 if you can still find distro files. It's free for non-commercial use. I don't think I tried compiling the base with lang/icc11 but I could compile and run many packages (but few were broken). Alex
Re: will netbsd be sticking with gcc?
On Sun, Sep 14, 2014 at 02:23:02PM +, Christos Zoulas wrote: In article 20140914034725.gs22...@arwen.poofy.goof.com, Aaron J. Grier agr...@poofygoof.com wrote: On Fri, Jun 20, 2014 at 09:05:33AM +0200, Martin Husemann wrote: And of course we would accept patches that make [NetBSD] work with yet another compiler. Are there any out there you are interested in especially? anybody tried compiling NetBSD/amd64 with the Intel icc toolchain recently? Last time I checked it was fairly expensive, required a license server, and the installer was nightmarish. which is your roundabout way of saying that you haven't tried it? :) -- Aaron J. Grier | Not your ordinary poofy goof. | agr...@poofygoof.com
Re: will netbsd be sticking with gcc?
In article 20140914232622.gt22...@arwen.poofy.goof.com, Aaron J. Grier agr...@poofygoof.com wrote: On Sun, Sep 14, 2014 at 02:23:02PM +, Christos Zoulas wrote: In article 20140914034725.gs22...@arwen.poofy.goof.com, Aaron J. Grier agr...@poofygoof.com wrote: On Fri, Jun 20, 2014 at 09:05:33AM +0200, Martin Husemann wrote: And of course we would accept patches that make [NetBSD] work with yet another compiler. Are there any out there you are interested in especially? anybody tried compiling NetBSD/amd64 with the Intel icc toolchain recently? Last time I checked it was fairly expensive, required a license server, and the installer was nightmarish. which is your roundabout way of saying that you haven't tried it? :) I have not tried it on NetBSD because I don't think it is worth it. The version that used to be freely available is too buggy to have me waste time with it. No, it is my way of saying that although the quality of the compiler is getting better, the licensing and installer are getting worse. When it works, it usually is 10-20% faster than gcc and even more when it handles the vectorization cases that gcc currently ignores. Unfortunately it has some poor interaction with files that contain both assembly and c... And sometimes it produces incorrect code, but don't all compilers? christos
Re: will netbsd be sticking with gcc?
On Fri, Jun 20, 2014 at 09:05:33AM +0200, Martin Husemann wrote: And of course we would accept patches that make [NetBSD] work with yet another compiler. Are there any out there you are interested in especially? anybody tried compiling NetBSD/amd64 with the Intel icc toolchain recently? -- Aaron J. Grier | Not your ordinary poofy goof. | agr...@poofygoof.com
Re: will netbsd be sticking with gcc?
On Thu, Jun 19, 2014 at 06:03:02PM -0400, William D. Jones wrote: I know that deep within the source tree (I believe it's somewhere in $SRCROOT/share/mk), there is a piece of documentation which explains that portions of NetBSD depend on GCC's extensions... so that limits compilers which can compile NetBSD to clang/llvm and GCC... however, is there any documentation which describe which source files depend on what extensions? That is not really a limitation, and pcc imlements enough of the extensions as well (for C code). But we nowadays require C99 support, so that rules out the most nasty stranglers upfront. Most of this is abstracted away from the actual compiler in src/sys/sys/cdefs.h and everything relying on an extension not macro-magicalized there could be called a bug (worth a PR). And of course we would accept patches that make it work with yet another compiler. Are there any out there you are interested in especially? Martin
Re: will netbsd be sticking with gcc?
On Wed, Jun 18, 2014 at 08:19:04AM +0200, Martin Husemann wrote: On Wed, Jun 18, 2014 at 07:40:52AM +0530, Mayuresh Kathe wrote: i have heard good things about pcc, mostly, except for perhaps the fact that it doesn't yet support all the netbsd platforms which gcc does. And it has no C++ compiler. We live with several compilers in-tree and try to officialy support anything sane (even outside the tree, e.g. gcc 4.9 for playstation2 support, but that part is broken currently) - the exact choice depends, as you note, on the architecture. If you are building NetBSD for x86 or arm you can choose clang/llvm as an alternative compiler, and you can compile big parts of NetBSD with pcc. We are especially looking at pcc for m68k, as some machines (e.g. sun2) are not able to execute modern gcc at all (or for anything hello world type of programs). Gcc is nice for cross-building those ports, but not as a native compiler shipped with the system. true, it has incomplete c++ support, but i think ragge is working on it. i am looking to build as much of netbsd (without x11) with pcc as possible. this is a purely tinkering and experimenting project. may i know which parts of netbsd don't build with pcc? and why? also, i'm still quite raw at netbsd, but, is it possible to eliminate portions of the netbsd kernel and build a fresh, highly focused and optimised system for amd64 architectures? and yet be able to tap into pkgsrc? gcc is nice, but massive, on the other hand, pcc is quite nimble. :) best, ~mayuresh
Re: will netbsd be sticking with gcc?
from Mayuresh Kathe: i just read a note somewhere on the web about netbsd folks trying out an alternative compiler set (pcc). did that not work out? i have heard good things about pcc, mostly, except for perhaps the fact that it doesn't yet support all the netbsd platforms which gcc does. so does that mean gcc would be the default compiler set for the foreseeable future? I've seen some activity toward switching to llvm/clang, at least on i386, amd64 and evbarm-earm. See http://releng.netbsd.org/cgi-bin/builds.cgi FreeBSD has already switched to llvm/clang as the default compiler with 10.0 on i386 and amd64, and I think also sparc. Tom
Re: will netbsd be sticking with gcc?
On Jun 17, 2014, at 7:10 PM, Mayuresh Kathe mayur...@kathe.in wrote: hello, i just read a note somewhere on the web about netbsd folks trying out an alternative compiler set (pcc). did that not work out? Actually, NetBSD has 3 possible compilers: gcc, clang/llvm, and pcc. Each compiler works for its subsets of targets. i have heard good things about pcc, mostly, except for perhaps the fact that it doesn't yet support all the netbsd platforms which gcc does. so does that mean gcc would be the default compiler set for the foreseeable future? Probably. Though my aarch64 (64 bit arm) is currently clang/llvm only.
will netbsd be sticking with gcc?
hello, i just read a note somewhere on the web about netbsd folks trying out an alternative compiler set (pcc). did that not work out? i have heard good things about pcc, mostly, except for perhaps the fact that it doesn't yet support all the netbsd platforms which gcc does. so does that mean gcc would be the default compiler set for the foreseeable future? best, ~mayuresh