[Octopus-devel] compilation problems

Fernando Nogueira fnog at uc.pt
Wed Apr 11 11:02:38 WEST 2012


Hi,

Thanks for all the input. But none of the tricks worked... BTW, what BLAS are you using with gfortran? Have you tried to use the "abinit trick" of compiling zdotc and zdotu separately an then use the vecLib framework?

Thanks,

Fernando


Fernando Nogueira
Centre for Computational Physics and
Physics Department
University of Coimbra
Rua Larga
3004-516 COIMBRA
PORTUGAL

Phone: + 351 239410114
Fax: + 351 239829158
email: fnog at uc.pt

On Apr 10, 2012, at 9:07 AM, Umberto De Giovannini wrote:

> Hi,
> 
> osx and gfortran 4.4 compiles fine. I think Mattieu has a point.
> Usually a clean solves many linking errors after an update.
> 
> Umberto
> 
> 
> On Tue, Apr 10, 2012 at 2:17 AM, matthieu verstraete
> <Matthieu.Verstraete at ulg.ac.be> wrote:
>> Hi Fernando,
>> 
>> Mac OSX here too, and things compile fine with gfort 4.5. The symbol
>> restart_dir is indeed declared "Used" in the object files, but this is
>> fine, it's just a piece of the module (not quite the same as a local
>> variable). Have you tried cleaning the restart module and object files
>> to force it to build in the correct order? Octopus unfortunately
>> doesn't deal with all of the module dependencies automatically in the
>> makefiles (no offense to anyone listening in - it's non trivial as
>> fortran is a bit stupid and modules are not static or portable).
>> 
>> M.
>> 
>> On Tue, Apr 10, 2012 at 00:39, Fernando Nogueira <fnog at uc.pt> wrote:
>>> Hi everybody,
>>> 
>>> I am having trouble compiling octopus trunk in my mac (octopus 4.0.x compiles perfectly). The error message is a bit puzzling:
>>> 
>>> Undefined symbols for architecture x86_64:
>>>  "_restart_m_mp_restart_dir_", referenced from:
>>>      _pes_m_mp_pes_restart_write_ in libtd.a(pes.o)
>>>      _pes_m_mp_pes_restart_read_ in libtd.a(pes.o)
>>>      _pes_m_mp_pes_mask_restart_write_ in libtd.a(pes.o)
>>>      _pes_m_mp_pes_mask_restart_read_ in libtd.a(pes.o)
>>> ld: symbol(s) not found for architecture x86_64
>>> 
>>> It seems that restart_dir is being interpreted as a routine in module restart_m, but it should be a character variable. Or am I misreading this error? (I am using the latest Intel compiler.)
>>> 
>>> Thanks!
>>> 
>>> Fernando
>>> 
>>> 
>>> Fernando Nogueira
>>> Centre for Computational Physics and
>>> Physics Department
>>> University of Coimbra
>>> Rua Larga
>>> 3004-516 COIMBRA
>>> PORTUGAL
>>> 
>>> Phone: + 351 239410114
>>> Fax: + 351 239829158
>>> email: fnog at uc.pt
>>> _______________________________________________
>>> Octopus-devel mailing list
>>> Octopus-devel at tddft.org
>>> http://www.tddft.org/mailman/listinfo/octopus-devel
>> 
>> 
>> 
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Prof. Matthieu Verstraete
>> 
>> Universite de Liège
>> Institut de Physique, Bat. B5, 3/7
>> Allée du 6 aout, 17
>> B- 4000 Sart Tilman, Liège
>> Belgium
>> 
>> Associate member European Theoretical Spectroscopy Facility (ETSF
>> http://www.etsf.eu)
>> 
>> Phone : +32 4 366 90 17
>> Fax   : +32 4 366 36 29
>> 
>> Mail : matthieu.verstraete at ulg.ac.be
>>           matthieu.jean.verstraete at gmail.com
>> _______________________________________________
>> Octopus-devel mailing list
>> Octopus-devel at tddft.org
>> http://www.tddft.org/mailman/listinfo/octopus-devel
> 



More information about the Octopus-devel mailing list