From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e1b09bdf3cb61da4 X-Google-Attributes: gid111c93,public From: Tony Hammitt Subject: Re: zlib-1.1.3 compiles with ccc Date: 2000/09/15 Message-ID: <39C279F0.22E8A689@kc.rr.com>#1/1 X-Deja-AN: 670264938 Content-Transfer-Encoding: 7bit References: <39C22EF3.40ABD76C@saunalahti.fi> <8ptr7t$j2u$2@pulp.srv.ualberta.ca> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rr.com X-Trace: typhoon.kc.rr.com 969046512 24.163.146.163 (Fri, 15 Sep 2000 14:35:12 CDT) MIME-Version: 1.0 Reply-To: tony@hammitt.com NNTP-Posting-Date: Fri, 15 Sep 2000 14:35:12 CDT Newsgroups: comp.os.linux.alpha OK, fine. We're trying to start up a sourceforge project for what packages compile with ccc. I'll admit that I'm not surprised that zlib compiled, but it is another data point at least. The problem is that not only is the kernel gcc-only, but any package that includes kernel or asm headers won't compile either. Other packages have unnecesary default compilation options and optimization levels specified that are gcc specific and have to be patched to even compile correctly. Heck, some even specify gcc explicitly in the makefiles. This is a little annoying. We need to all agree on what makefile macros we're going to use. In short, it is really instructive to know which packages do actually work. I don't know if the package maintainers can agree that they need to standardize $(CC) and $(CFLAGS) but it sure would help. Anyone wanting to help out with the effort can start by going to http://ccclinux.sourceforge.net or http://sourceforge.net/projects/ccclinux/ I'd like some advice about what to do first since I've never done a sourceforge project or a linux distro before. Anyone with relevant experience please contact me. Thanks in advance, Tony Hammitt tony@hammitt.com P.S. does anyone think that something like this would work right: /usr/bin/qcc: #!/bin/sh cccopts="-O4 -fast" gccopts="-O3 -funroll-loops" ccc $@ $cccopts || gcc $@ $gccopts exit 0 then set the default compiler in /usr/lib/rpm/* to qcc and the default CFLAGS to "". That way most friendly objects would get ccc, the unfriendly ones would get gcc and the broken ones would fail. Comments? Criticisms? Condemnations? Michal Jaegermann wrote: > > h0l0gRaM (hgm@saunalahti.fi) wrote: > : Options -O4 -fast > > So what? With that and hundreds of other compilers. Everybody > in this group already knows that you can type 'make' so you can > stop now. > > Linux kernel is NOT written in a standard C, quite deliberately, > and it depends on various gcc constructs, inline assembler, a linker > behaviour, etc. That is why in its sources you can read a list > of various tools requirements. But a bulk of a user-space stuff > is written portably and if it is not then it is broken. The only > news it would be if you publish a list of sources which do NOT > compile with 'ccc' and explain in each case why (i.e. if sources > are broken or if that compiler is broken and in which way). > > Michal