Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Tony Hammitt <thammitt@kc.rr.com>
Subject: Re: compiling with ccc/cxx
Date: 2000/05/24	[thread overview]
Message-ID: <392C1F75.7F8F094E@kc.rr.com> (raw)
In-Reply-To: 392C12E9.5FAD6C83@hotmail.com

"William A. Welch III" wrote:
> 
> > some programs want -g added ,use -g3 instead of -g on ccc/cxx
> 
> I have seen ccc complain about this when I have "-fast" in my CFLAGS.
> Of course just adding -g3 doesn't always help since sometimes "-g" is
> built into the autoconf files and you end up getting lines like:
> 
> ccc -arch ev56 -fast -g3 -DSOMETHING -g -DSOMETHING_ELSE ...
> cc: Info: File not optimized; use -g3 if both optimization and debug
> wanted.
> 
> What's the best work around here?
> 
> Bill

What I've ended up doing in trying to build from srpms is installing
the srpm, doing a rpm -bi <specfile>, opening up the makefile in the
redhat/BUILD file, finding the offending makefile define variable,
then saying something like:

make CC=ccc CCOPTIONS="-O4 -fast" DEFGDB="-DGDB -DCREATE_IO_WINDOW"

this was what I had to change in the spec file for xxgdb to get it
to work.  DEFGDB used to equal "-DGDB -DCREATE_IO_WINDOW -g", so
redefining it got rid of the problem...  Then do a 'rpm -ba <specfile>'
to build the s/rpm files.  There is no reason to include debugging
symbols in a distribution binary, IMHO.

Please note everyone:  the -fast option optimizes for _your_ hardware
so we need to make it explicit that there is an EV56 and an EV6 version
to be the result of this effort.  Once we find someone with an EV6 box
who wants to help, that is...  Either that or we'll have to have more
versions of the specfiles so we can just build anywhere.

I've got about 10 S/RPMS so far.  Getting them working is getting faster
but it's nontrivial.  Still no idea if the process can be automated.

We will obviously need a place to put the archives of generated rpms
so people can test them.  This is all assuming that people want a
redhat based optimized distro, which may not be true.  Other options/
opinions are welcome.

Regards,

Tony Hammitt



  reply	other threads:[~2000-05-24  4:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-23  4:00 compiling with ccc/cxx William A. Welch III
2000-05-24  4:00 ` Edwin Koshimoto
2000-05-24  4:00 ` h0l0gRaM
2000-05-24  4:00   ` William A. Welch III
2000-05-24  4:00     ` Tony Hammitt [this message]
2000-05-25  4:00       ` Spuggy Loonpant
2000-05-25  4:00       ` Ed Koshimoto
2000-05-24  4:00 ` Christian Weisgerber
2000-05-24  4:00 ` Bram Stolk
  -- strict thread matches above, loose matches on Subject: below --
2000-06-28  4:00 Compiling " William A. Welch III
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