Axp-List Archive
Re: Alpha compilation questions

Subject: Re: Alpha compilation questions
From: Helge Kreutzmann (kreutzm@itp.uni-hannover.de)
Date: Fri May 18 04:15:43 2001


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/

_______________________________________________ Axp-list mailing list Axp-list@redhat.com https://listman.redhat.com/mailman/listinfo/axp-list



This archive was generated by hypermail version 2a22 on Fri Jun 1 04:36:14 2001 PDT
Send any problems or questions about this archive to webmaster@alphalinux.org.