[Pw_forum] error during compilatio

Matteo Cococcioni matteoc at MIT.EDU
Wed Aug 16 18:23:56 CEST 2006


Dear Axel and Stefano,

thank you for your comments and suggestions. It works! I just followed Axel's
instructions and was able to obtain a make.sys that compiles a working pw.x.
I didn't menage to compile cp.x though. I even tried to compile runcp.o with
lower optimization level but didn't work.
The make.sys that works is attached to this email. I think it can be used to
have this architecture recognized by the standard configure (instead
configure.old pc_ifc).
Stefano: yes it's a MacBook and I'm pretty happy so far. I even like 
the glossy
lcd screen. it seems pretty fast too (running the code) though I will do more
extensive benchmark.
Does anybody know if the intel compiler for Linux (freely available) 
would work
on this machine? I probably will try after the licence expires.

Thanks again!

Matteo


Quoting Stefano Baroni <baroni at sissa.it>:

> Matteo: you finally bought it! Is it a Mac Book, or a Mac Book Pro?
> Not that I am any expert in this kind of issues, but it looks like  
> the old damn story of the number of underscores appended by compilers 
>  to routine names. It usually only affects routines written in a  
> different language than the main program. This does not seem to be  
> the case here, but may be the loader is confused by the existence of  
> routines compiled with gcc _and_ fortran .?... You may want to try a  
> small program consisting of just one main program, one fortran  
> routine and, possibly, one c routine?
> Take care - Stefano
>
> On Aug 16, 2006, at 12:14 AM, Matteo Cococcioni wrote:
>
>>
>> Dear all,
>>
>> I am trying to compile the code on a MacBook laptop (running Mac OS  
>> X but with
>> an intel processor) and I'm experiencing some troubles. I'm using  the intel
>> compiler for Mac OS X (temporary licence) and here is what I did (aftr
>> installing Xcode containing gcc and the command "make"):
>>
>> 1) since straight configure doesn't recognize the architecture I've  used
>> ./configure.old pc_ifc
>>
>> 2) I tried to adapt the obtained make.sys using as a model the  
>> make.sys that
>> works fine on a regular linux pc. The result is attached to this  email.
>>
>> I think I got pretty close to compile pwscf. But at the end it  gives the
>> following error:
>>
>> ld: Undefined symbols:
>> _errore_
>> _ylmr2_
>> _dylmr2_
>> _simpson_
>> _zgefa_
>> _zgedi_
>> _sph_bes_
>> _sph_dbes_
>> _erf_
>> _flush_unit_
>> _int_to_char_
>> _invmat_
>> _infomsg_
>> .
>> .
>> .
>> _iotk_write_dat_character1_0_
>> _iotk_write_attr_integer1_0_
>> _iotk_write_attr_integer1_1_
>> _iotk_write_dat_logical1_0_
>> _iotk_write_attr_integer1_2_
>> _iotk_write_attr_real2_0_
>> _iotk_write_dat_complex2_1_
>> _iotk_scan_dat_complex2_1_
>> make[1]: *** [pw.x] Error 1
>> make: *** [pw] Error 2
>>
>> which I don't know how to solve. Does anybody have any idea/ 
>> experience about it?
>> Of course it's not urgent problem to solve, but maybe this could  
>> help having the
>> make.sys for another kind of architecture.
>> By the way: the compiler seems to be affected by an internal error  
>> which one
>> finds trying to compile cp (make cp). But the issue with the  
>> compilation of pw
>> seems to be unrelated to that.
>>
>> I would appreciate any help/suggestion/comment. Thank you.
>>
>> Matteo
>> <make.sys>
>
> ---
> Stefano Baroni - SISSA  &  DEMOCRITOS National Simulation Center -  Trieste
> [+39] 040 3787 406 (tel) -528 (fax) / stefanobaroni (skype)
>
> Please, if possible, don't  send me MS Word or PowerPoint attachments
> Why? See:  http://www.gnu.org/philosophy/no-word-attachments.html
>
>
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.sys_mac
Type: application/octet-stream
Size: 2360 bytes
Desc: not available
Url : /pipermail/attachments/20060816/3fc7e7b5/attachment.obj 


More information about the Pw_forum mailing list