Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Tony Hammitt <thammitt@kc.rr.com>
Subject: Re: zlib-1.1.3 compiles with ccc
Date: 2000/09/15	[thread overview]
Message-ID: <39C279F0.22E8A689@kc.rr.com> (raw)
In-Reply-To: 8ptr7t$j2u$2@pulp.srv.ualberta.ca

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



  reply	other threads:[~2000-09-15  4:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-15  4:00 zlib-1.1.3 compiles with ccc h0l0gRaM
2000-09-15  4:00 ` Michal Jaegermann
2000-09-15  4:00   ` Tony Hammitt [this message]
2000-09-15 23:45   ` h0l0gRaM
2000-09-16  4:00     ` Michal Jaegermann
2000-09-16  4:00   ` Spuggy Loonpant
2000-09-16  4:00     ` sideband
2000-09-16  4:00       ` h0l0gRaM
2000-09-16  4:00         ` Jeff Sturm
2000-09-17  0:22           ` h0l0gRaM
2000-09-17  4:00       ` Spuggy Loonpant
2000-09-17  4:00         ` Michal Jaegermann
2000-09-18  3:35         ` Tony Hammitt
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox