在macOS Darwin内核版本17.5.0上使用conda构建heasoft

时间:2018-05-09 13:11:29

标签: macos conda fits

我需要一个heasoft库的子集用于我的数据缩减管道,我想将其作为conda包发布。 我的配方在Linux下工作正常,但是当我构建heasoft包时,我在OSX中遇到了问题。

我这样做:

  1. the proper source下载所需的库作为配方目录中的tar文件;
  2. 使用食谱目录在path中设置meta.yaml关键字;
  3. build.sh中,我cd进入正确的目录,BUILD_DIR与任何heasoft包一样。
  4. 现在,在导出所有需要的变量(CC和其他变量)后,我会启动./configure,并开始看到我无法处理的行为。

    这些是配置的第一行:

    francesco:heasoft-osx(master)*$ conda build .
    Attempting to finalize metadata for heasoft
    INFO:conda_build.metadata:Attempting to finalize metadata for heasoft
    BUILD START: ['heasoft-6.24-h9b869f0_1.tar.bz2']
    Copying /Users/francesco/ascisoft-recipes/heasoft-osx to /Users/francesco/anaconda3/conda-bld/heasoft_1525868116683/work
    source tree in: /Users/francesco/anaconda3/conda-bld/heasoft_1525868116683/work
    /Users/francesco/anaconda3/conda-bld/heasoft_1525868116683/work/heasoft-6.24/BUILD_DIR
    configure: WARNING: /usr/bin/perl and /usr/local/Cellar/llvm/5.0.0/bin/clang may not work well together!
    rm: conftest.dSYM: is a directory
    rm: conftest.dSYM: is a directory
    configure: WARNING: no header file found for arc4random
    configure: WARNING: Cannot find idn library
    configure: WARNING: Compilation of Fortran wrappers and PGSBOX disabled
    configure: WARNING: CFITSIO disabled
    configure: WARNING: PGPLOT disabled
    configure: WARNING: Compilation of WCS utilities disabled
    

    相反,如果使用下载的tar文件,我会进行常规的编译步骤,我会获得公平的输出

    francesco:BUILD_DIR$ ./configure --with-components="heacore heatools"
    checking build system type... x86_64-apple-darwin17.5.0
    checking host system type... x86_64-apple-darwin17.5.0
    checking target system type... x86_64-apple-darwin17.5.0
    Will force readline build on Darwin if available
    Found component heacore
    Found heacore/BUILD_DIR/hd_config_info
    Found component heatools
    

    ...

    checking build system type... x86_64-apple-darwin17.5.0
    checking host system type... x86_64-apple-darwin17.5.0
    checking target system type... x86_64-apple-darwin17.5.0
    checking for strip... strip
    checking for ar... ar
    checking for ranlib... ranlib
    checking for gmake... no
    checking for make... make
    checking whether make is GNU make... yes
    

    等等。

    我会在这里停下来,但是构建过程继续进行,我还有更烦人的行为,例如

    ignoring file /[...]/x86_64-apple-darwin17.5.0/lib/libape_2.9.dylib, file was built for x86_64 which is not the architecture being linked (i386)
    

    是否与我的系统设置与conda-build耦合有关?

    如果需要,我当然可以提供我的食谱。

0 个答案:

没有答案