[daip] Problem compiling the XAS
Eric Greisen
egreisen at nrao.edu
Fri Sep 24 14:11:50 EDT 2010
Rubén López Coto wrote:
> Hi,
>
> I have a problem in the aips compilation process and I hope you'll be
> able to help me. I'm trying to install the 31DEC10 version on a 2.2
> GHz Core 2 Mac Laptop. The point is that I arrive till the page number
> 10 and there I have to change the path of the compilers because the
> default stands as the icc. I use g77 for the fortran files and gcc for
> the c++ compilation. Then I keep on with the installation and
> everything seems to be fine till the program tries to compile the XAS
> files. Then, I receive the following message:
>
> AipsWiz: =====> Make the XAS TV Server from source if needed...
> AipsWiz: About to unpack the XAS.SHR archive.
> AipsWiz: Done.
> AipsWiz: About to try to make XAS...
>
> rm -f *.o xas XAS
> /usr/bin/gcc -I/usr/X11R6/include -D_BSD -DUSE_SHM -O2 -axP -c xas.c
> cc1: error: unrecognized command line option "-axP"
> make: *** [xas.o] Error 1
> AipsWiz: Error: Failed to build the XAS program.
> AipsWiz: Error: This means no AIPS TV will be available.
>
>
> And nothing works after that. I've tried to compile it with other
> compilers (c++, cpp, g++) and it's always the same. I don't know where
> can I disable the option "-axP", the one that seems to give all the
> problems, or even if like this it'll work.
The installation process is not quite up to being able to modify the
Makefile (I really do not even understand make) that is used for XAS.
To fix it, establish the logicals:
cd $AIPS_ROOT
source LOGIN.CSH (or . LOGIN.SH for bash)
$CDTST
then
cd $YSERV/XAS
emacs Makefile (or any other editor)
find the lines relevant to MACINT and modify them as needed and then
save the file.
make clean
make
And you should have an XAS. Note that the rest of the build should have
gone on just fine, leaving thee failure of XAS behind.
Now, the bigger question - why are you compiling the code yourself? Are
you going to develop AIPS-specific code yourself or use code from other
non-NRAO sources? If not, the binary installation has load modules that
run faster than those produced by g77 (or even those from gfortran).
Eric Greisen
More information about the Daip
mailing list