* compiling with ccc/cxx
@ 2000-05-23 4:00 William A. Welch III
2000-05-24 4:00 ` Bram Stolk
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: William A. Welch III @ 2000-05-23 4:00 UTC (permalink / raw)
Hey everybody,
I'm sure that I'm like everyone else when I find myself constantly
downloading both new (e.g. Mozilla) and older (e.g. Quake) programs to
play with. Of course everything comes with the ubiquitous "configure"
script to set up everything for you.
So my question is: How do I modify the included files so that my
programs compile with ccc/cxx? And additionally, how do I modify these
files to use my optimization flags.
Thanks ahead of time,
Bill Welch
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-23 4:00 compiling with ccc/cxx William A. Welch III
@ 2000-05-24 4:00 ` Bram Stolk
2000-05-24 4:00 ` Christian Weisgerber
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Bram Stolk @ 2000-05-24 4:00 UTC (permalink / raw)
To: wwelch
"William A. Welch III" wrote:
>
> Hey everybody,
>
> I'm sure that I'm like everyone else when I find myself constantly
> downloading both new (e.g. Mozilla) and older (e.g. Quake) programs to
> play with. Of course everything comes with the ubiquitous "configure"
> script to set up everything for you.
>
> So my question is: How do I modify the included files so that my
> programs compile with ccc/cxx? And additionally, how do I modify these
> files to use my optimization flags.
>
> Thanks ahead of time,
Packages that use autoconf, can be built with cxx using:
rm config.cache
export CC=ccc
export CXX=cxx
export CFLAGS="-std ansi -g"
export CXXFLAGS="-std ansi -g"
./configure
Bram
> Bill Welch
--
------------------------------------------------------------------------------
Bram Stolk, VR Specialist.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
email: bram@sara.nl Phone +31-20-5923059 Fax +31-20-6683167
"I heard if you play the NT-4.0-CD backwards, you get a satanic message."
"Thats nothing, if you play it forward, it installs NT-4.0"
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-23 4:00 compiling with ccc/cxx William A. Welch III
2000-05-24 4:00 ` Bram Stolk
@ 2000-05-24 4:00 ` Christian Weisgerber
2000-05-24 4:00 ` h0l0gRaM
2000-05-24 4:00 ` Edwin Koshimoto
3 siblings, 0 replies; 10+ messages in thread
From: Christian Weisgerber @ 2000-05-24 4:00 UTC (permalink / raw)
William A. Welch III <wwelch@hotmail.com> wrote:
> Of course everything comes with the ubiquitous "configure"
> script to set up everything for you.
>
> So my question is: How do I modify the included files so that my
> programs compile with ccc/cxx? And additionally, how do I modify these
> files to use my optimization flags.
CC=ccc CFLAGS=-fast CXX=cxx CXXFLAGS=-fast ./configure
--
Christian "naddy" Weisgerber naddy@mips.inka.de
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-23 4:00 compiling with ccc/cxx William A. Welch III
` (2 preceding siblings ...)
2000-05-24 4:00 ` h0l0gRaM
@ 2000-05-24 4:00 ` Edwin Koshimoto
3 siblings, 0 replies; 10+ messages in thread
From: Edwin Koshimoto @ 2000-05-24 4:00 UTC (permalink / raw)
Hello -
I'm just getting into this myself, and a promising
lead seems to be to use either the following for
configure:
./configure alpha-linux-ccc <- for the ccc compiler
./configure alpha-linux-gcc <- for the gcc compiler
ed
On Tue, 23 May 2000, William A. Welch III wrote:
> Date: Tue, 23 May 2000 19:10:52 -0700
> From: William A. Welch III <wwelch@hotmail.com>
> Newsgroups: comp.os.linux.alpha
> Subject: compiling with ccc/cxx
>
> Hey everybody,
>
> I'm sure that I'm like everyone else when I find myself constantly
> downloading both new (e.g. Mozilla) and older (e.g. Quake) programs to
> play with. Of course everything comes with the ubiquitous "configure"
> script to set up everything for you.
>
> So my question is: How do I modify the included files so that my
> programs compile with ccc/cxx? And additionally, how do I modify these
> files to use my optimization flags.
>
> Thanks ahead of time,
>
> Bill Welch
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-23 4:00 compiling with ccc/cxx William A. Welch III
2000-05-24 4:00 ` Bram Stolk
2000-05-24 4:00 ` Christian Weisgerber
@ 2000-05-24 4:00 ` h0l0gRaM
2000-05-24 4:00 ` William A. Welch III
2000-05-24 4:00 ` Edwin Koshimoto
3 siblings, 1 reply; 10+ messages in thread
From: h0l0gRaM @ 2000-05-24 4:00 UTC (permalink / raw)
"William A. Welch III" wrote:
> Hey everybody,
>
> I'm sure that I'm like everyone else when I find myself constantly
> downloading both new (e.g. Mozilla) and older (e.g. Quake) programs to
> play with. Of course everything comes with the ubiquitous "configure"
> script to set up everything for you.
>
> So my question is: How do I modify the included files so that my
> programs compile with ccc/cxx? And additionally, how do I modify these
> files to use my optimization flags.
>
> Thanks ahead of time,
>
> Bill Welch
For fast code (optimization)
CC="ccc -O4 -fast" CXX="cxx -O4 -fast -std gnu" ./configure
some programs want -g added ,use -g3 instead of -g on ccc/cxx
you can put these on environment like this
(export/setenv)
CFLAGS="-O4 -fast"
CXXFLAGS="-O4 -fast -std gnu"
CC=ccc
CXX=cxx
--
Bahdges? We don't need no stinkin' bahdges!
-- "The Treasure of Sierra Madre"
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-24 4:00 ` h0l0gRaM
@ 2000-05-24 4:00 ` William A. Welch III
2000-05-24 4:00 ` Tony Hammitt
0 siblings, 1 reply; 10+ messages in thread
From: William A. Welch III @ 2000-05-24 4:00 UTC (permalink / raw)
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-24 4:00 ` William A. Welch III
@ 2000-05-24 4:00 ` Tony Hammitt
2000-05-25 4:00 ` Ed Koshimoto
2000-05-25 4:00 ` Spuggy Loonpant
0 siblings, 2 replies; 10+ messages in thread
From: Tony Hammitt @ 2000-05-24 4:00 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-24 4:00 ` Tony Hammitt
@ 2000-05-25 4:00 ` Ed Koshimoto
2000-05-25 4:00 ` Spuggy Loonpant
1 sibling, 0 replies; 10+ messages in thread
From: Ed Koshimoto @ 2000-05-25 4:00 UTC (permalink / raw)
I've been looking into contributing to this effort as well. I'm wondering
if there's any convention for the rpm binary names to reflect the build
type. For example, 'foo.alphaev6.rpm' for ev6 architectures?
I'll be interested in learning if someone provides a space for these
built rpms.
Perhaps alphalinux.org?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compiling with ccc/cxx
2000-05-24 4:00 ` Tony Hammitt
2000-05-25 4:00 ` Ed Koshimoto
@ 2000-05-25 4:00 ` Spuggy Loonpant
1 sibling, 0 replies; 10+ messages in thread
From: Spuggy Loonpant @ 2000-05-25 4:00 UTC (permalink / raw)
On Wed, 24 May 2000 18:29:10 GMT, Tony Hammitt wrote:
>
>We will obviously need a place to put the archives of generated rpms
>so people can test them.
alphalinux.org might agree to do it.
>This is all assuming that people want a
>redhat based optimized distro, which may not be true.
I would be very happy to see an alpha optimized distro with kernel 2.4,
XFree 4.0 and Gnome 1.2 - provided all that work is worth it.
Does it actually give much of a performance boost with normal non-fp
applications?
Spug
^ permalink raw reply [flat|nested] 10+ messages in thread
* Compiling with ccc/cxx
@ 2000-06-28 4:00 William A. Welch III
0 siblings, 0 replies; 10+ messages in thread
From: William A. Welch III @ 2000-06-28 4:00 UTC (permalink / raw)
Hey Everybody,
I'm in the process of constructing a list of programs that will compile
with ccc/cxx. Later, I will transform this list into a web site.
I was wondering what everyone has had success with and if they could
tell me what flags they used and what adjustments (if any) were
required.
Here is the list I have so far (with help from h0l0gRaM):
compile "as is":
gimp-1.0.4
glib-1.2.8
gnotepad-1.0.8
gtk+-1.2.8
gtk-engines-0.10
openssh-2.1.0
nethack-3.2.2
quakeforge-0.1.1
imlib-1.9.8
libghttp-1.0.6
libglade-0.11
libPropList-0.8.3
libxml-1.8.7
compile "with minor adjustments" (had to modify Makefile(s)):
xanim-2.80.1
xmms-1.2.1
Thanks very much,
Bill Welch
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2000-06-28 4:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-23 4:00 compiling with ccc/cxx William A. Welch III
2000-05-24 4:00 ` Bram Stolk
2000-05-24 4:00 ` Christian Weisgerber
2000-05-24 4:00 ` h0l0gRaM
2000-05-24 4:00 ` William A. Welch III
2000-05-24 4:00 ` Tony Hammitt
2000-05-25 4:00 ` Ed Koshimoto
2000-05-25 4:00 ` Spuggy Loonpant
2000-05-24 4:00 ` Edwin Koshimoto
-- strict thread matches above, loose matches on Subject: below --
2000-06-28 4:00 Compiling " William A. Welch III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox