Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Helge Kreutzmann <kreutzm@itp.uni-hannover.de>
To: axp-list@redhat.com
Subject: Re: Alpha compilation questions
Date: Fri, 18 May 2001 13:15:43 +0200	[thread overview]
Message-ID: <20010518131543.A4470@itp.uni-hannover.de> (raw)
In-Reply-To: <F28ATLQEwGlyrgpf6dK0000a1f2@hotmail.com>; from svde_alpha@hotmail.com on Fri, May 18, 2001 at 01:03:13PM +0200

Hello !
On Fri, May 18, 2001 at 01:03:13PM +0200, S VDE wrote:
> Hi all,
> 
> Some questions on compiling. I don't know exactly what to install (Compaq 
> compilers or the GNU compilers) and I don't want to ruin the installation 
> since it is running fine. However I want to install a newer kernel (now I 
> just installed a native RedHat 6.2 with kernel 2.2.14-6.0) but I would like 
> to know how to compile it.

Just as on any other platform. The only difference is that you need to
do
    make boot
instead of make zImage or make bzImage

If you are new to compiling kernels look at

http://www.alphalinux.org/docs/kernel.shtml

The kernel is one of the few pices of code which MUST be compiled
using gcc as it uses extensions not present in any other C compiler.

> What do I need to do to compile software in the best possible way? If I 
> install Compaq compilers, will the basic Makefiles distributed with source 
> tarnalls still work, or is there an 'easy' way to adapt it.

This depends. The compaq compilers have different names than the gcc
ones so you might have to adapt makefile. If your programm uses the
configure mechanism however you can just say

env CC=ccc ./configure

to switch to the compaq c-Compiler (CXX for the c++ compiler)

> Also, will Compaq compilers replace existing ones or just add new ones.

Simply add another set of compilers so you can switch anytime.

> Finally, I have one practical question: I tried to compile vnc, but it 
> failed with an error stating it is not possible to use some flags at the 
> same time (-o and -s I think it was). So I want to install a newer gcc. But 
> to do that I first want to know whether it would be better to install Compaq 
> compilers. Or would the problem lie somewhere else?

Most likly a mistake in the makefiles. Did you check the docs of vnc ?

> A lot of questions but actually I would like to know more about Alpha 
> specific compiling and optimalisation, so any inputs would be highly 
> appreciated...

If you need floating point optimization then the compaq compilers are
usually better. The C++Implementation is also more mature then the gcc
one. Check out www.alphalinux.org for many pointers and comparisons
and don't forget to read the man pages for the compaq compilers for
the proper options for your code (i.e. -arch host and such).

Greetings

        Helge
-- 
Helge Kreutzmann, Dipl.-Phys.                      kreutzm@itp.uni-hannover.de
         For gpg-key: finger kreutzm@rigel.itp.uni-hannover.de
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
       Help keep free software "libre": http://www.freepatents.org/




  reply	other threads:[~2001-05-18 11:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-18 11:03 Alpha compilation questions S VDE
2001-05-18 11:15 ` Helge Kreutzmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-18 14:20 S VDE
2001-05-18 15:30 ` Helge Kreutzmann
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