Undefined symbols for architecture x86_64 error on fortran compiling

zhifeng yang yangzf01 at gmail.com
Wed Dec 11 08:09:34 PST 2013


Here is the whole error

Undefined symbols for architecture x86_64:
  "___kmpc_end_master", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o      _wrf_check_error_ in module_wrf_error.o      _wrf_error_fatal_ in module_wrf_error.o      _wrf_error_fatal3_ in module_wrf_error.o
  "___kmpc_global_thread_num", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o
      _wrf_check_error_ in module_wrf_error.o
      _wrf_error_fatal_ in module_wrf_error.o
      _wrf_error_fatal3_ in module_wrf_error.o
      _module_wrf_error._ in module_wrf_error.o
  "___kmpc_master", referenced from:
      _wrf_message_ in module_wrf_error.o
      _wrf_message2_ in module_wrf_error.o
      _wrf_check_error_ in module_wrf_error.o
      _wrf_error_fatal_ in module_wrf_error.o
      _wrf_error_fatal3_ in module_wrf_error.o
ld: symbol(s) not found for architecture x86_64
make[2]: [diffwrf] Error 1 (ignored)

Actually the code is fine, no error in the code. Because it’s from WRF committee. I guess the reason that I get the error is from compiler or its flags. But I am not sure currently.

Thank you
Bruce

On Dec 11, 2013, at 10:06 AM, Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Dec 11, 2013, at 01:40, Gmail wrote:
> 
>> When I compile a fortran code, I got the error 
>> Undefined symbols for architecture x86_64
>> 
>> My mac is 64bits. The fortran compiler used here is ifort.
> 
> The relevant information would be *what* symbols were undefined, what your code looks like, and where those symbols are actually defined.
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20131211/ad0c018f/attachment.html>


More information about the macports-users mailing list