在OSX上编译OpenMP失败并出现perl错误

时间:2014-08-29 17:42:48

标签: macos perl openmp

我正在尝试使用此处给出的说明编译OpenMP for OSX 10.9: Error enabling openmp - "ld: library not found for -lgomp" and Clang errors

但是我遇到了perl的问题:

make compiler=clang
omp_root=.
omp_os=macos
arch=intel64
compiler=clang
mic=no
mode=release
Created ./tmp directory
./tools/build.pl --arch=intel64 --mode=release lib inc common
./tools/build.pl  --arch=intel64 --mode=release lib inc common
Use of uninitialized value in substr at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 120.
Use of uninitialized value $fqdn in substr at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 120.
Use of uninitialized value $fqdn in string eq at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 120.
Use of uninitialized value in numeric eq (==) at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 120.
Use of uninitialized value in numeric eq (==) at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 120.
Use of uninitialized value $fqdn in pattern match (m//) at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 400.
Unexpected error: undefined or empty host name; stopped at /Users/simon/Downloads/libomp_oss/tools/lib/Uname.pm line 403.

我的怀疑是,这是一个与Perl相关的问题。其中一条违规行写着:

my $fqdn = Net::Domain::hostfqdn(); # "fqdn" stands for "fully qualified doamain name".                                                                                         
if ($fqdn eq substr( $fqdn, 0, length( $fqdn ))
...

似乎Net::Domain::hostfqdn()没有返回任何内容。知道如何解决这个问题吗?

0 个答案:

没有答案