#48507: julia @0.3.9 +gcc48: destroot fails building OpenBLAS with native clang ----------------------------+-------------------------------- Reporter: andy.nowacki@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.99 Keywords: | Port: julia ----------------------------+-------------------------------- When trying to upgrade julia from 0.3.8 to 0.3.9, or install julia @0.3.9 +gcc48, destroot fails when trying to build OpenBLAS (see following from main.log): {{{ [Lots of other undeclared BLAS identifiers in getarch_2nd.c] [...] :info:destroot getarch_2nd.c:70:50: error: use of undeclared identifier 'ZGEMM_DEFAULT_Q' :info:destroot printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double))); :info:destroot ^ :info:destroot fatal error: too many errors emitted, stopping now [-ferror-limit=] :info:destroot 20 errors generated. :info:destroot make[4]: *** [getarch_2nd] Error 1 :info:destroot make[4]: Entering directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia/deps/openblas-v0.2.13' :info:destroot Makefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop. :info:destroot make[4]: Leaving directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia/deps/openblas-v0.2.13' :info:destroot *** Clean the OpenBLAS build with 'make -C deps clean- openblas'. Rebuild with 'make OPENBLAS_USE_THREAD=0 if OpenBLAS had trouble linking libpthread.so, and with 'make OPENBLAS_TARGET_ARCH=NEHALEM' if there were errors building SandyBridge support. Both these options can also be used simultaneously. *** :info:destroot make[3]: *** [openblas-v0.2.13/libopenblas.dylib] Error 1 :info:destroot make[3]: Leaving directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia/deps' :info:destroot make[2]: *** [julia-release] Error 2 :info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia' :info:destroot make[1]: *** [release] Error 2 :info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia' :info:destroot make: *** [install] Error 2 :info:destroot make: Leaving directory `/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia' :info:destroot Command failed: cd "/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/julia" && /usr/bin/make -w install CC=/usr/bin/clang CXX=/usr/bin/clang++ FC=/opt/local/bin/gfortran-mp-4.8 USE_SYSTEM_LLVM=1 LLVM_CONFIG=llvm- config-mp-3.5 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_LIBM=1 USE_SYSTEM_GMP=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_ZLIB=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_ARPACK=1 USE_SYSTEM_SUITESPARSE=1 DESTDIR=/opt/local/var/macports/build/_Users_user_macports_trunk_dports_lang_julia/julia/work/destroot }}} This occurs whether upgrading the existing port, or cleaning then installing julia +gcc48. I haven't tried installing gcc49 and using the julia +gcc49 (default) variant on this machine, but another machine (2013 Mac Pro) with gcc49 upgrades without issue, so I suspect this may be a gcc version problem. I am on MacPorts trunk r139164, OS X 10.10.4. -- Ticket URL: <https://trac.macports.org/ticket/48507> MacPorts <https://www.macports.org/> Ports system for OS X