[Octopus-users] CVS compilation
alberto.castro at tddft.org
Fri May 20 07:08:35 WEST 2005
Just one possible workaround: the test program is only necessary
for debugging purposes, so try avoiding its compilation, by doing
"touch libxc/test.x" (or "touch libxc/test.x_debug" if you are
compiling in debugging mode), when the compilation is stopped at that
point, and continue afterwards with make. Maybe it works.
About the real source of the error, it seems that it is trying to
link C files with the Fortran compiler, I do not know why. And then it
fails. I will try to see what could be the reason...
On Thu, 19 May 2005, Ioannis Thanopoulos wrote:
> Hi All,
> during compilation of the CVS version with ifort 8.1, I encounter
> the following error:
> ifort -o test.x_debug util.o lda_x.o lda.o lda_funcs.o lda_c_vwn.o
> lda_c_pz.o lda_c_pw.o lda_c_amgb.o gga.o gga_pbe.o gga_lb.o mgga.o
> mgga_x_tpss.o mgga_c_tpss.o lca.o lca_omc.o lca_lch.o xc_f.o test.o
> -L../liboct_parser -loct_parser -lgsl -lgslcblas -lm
> -L/opt/intel_fc_80/lib -L/usr/lib -lifport -lifcore -limf -lm -lcxa -lirc
> -lunwind -lirc_s
> test.o(.text+0x20c): In function `main':
> /home/jiannis/octopussy/marques/octopus/libxc/test.c:60: multiple
> definition of `main'
> /opt/intel_fc_80/lib/for_main.o(.text+0x0): first defined here
> ld: Warning: size of symbol `main' changed from 42 in
> /opt/intel_fc_80/lib/for_main.o to 21 in test.o
> /opt/intel_fc_80/lib/for_main.o(.text+0x1c): In function `main':
> : undefined reference to `MAIN__'
> make: *** [test.x_debug] Error 1
> make: Leaving directory `/home/jiannis/octopussy/marques/octopus/libxc'
> make: *** [all-recursive] Error 1
> Since there have been from time to time not so favorable comments about
> the ifort compiler on this list, is this something specifically to
> ifort 8.1 ? Should I try again with another compiler, say, pgf90 ?
> I would appreciate any insightful comment. Thanks a lot in advance.
> Dr. Ioannis Thanopoulos
> Department of Chemistry
> 2036 Main Mall
> University of British Columbia
> Vancouver, B.C., Canada V6T1Z1
> Tel: +1 604 822 8374
> Fax: +1 604 822 2847
> e-mail: ioannis at chem.ubc.ca
> Octopus-users mailing list
> Octopus-users at tddft.org
More information about the Octopus-users