[MacPorts] #48434: blosc@1.6.1 Build error - Undefined Symbols
#48434: blosc@1.6.1 Build error - Undefined Symbols ------------------------------+-------------------------------- Reporter: manuel.schaich@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: ElCapitan | Port: blosc ------------------------------+-------------------------------- On OS X 10.11 I get the following problem: {{{ :info:build /Applications/Xcode- beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib libblosc.a :info:build Undefined symbols for architecture x86_64: :info:build "_aligned_alloc", referenced from: :info:build _do_job in blosc.c.o :info:build _blosc_getitem in blosc.c.o :info:build _blosc_init in blosc.c.o :info:build _blosc_set_nthreads_ in blosc.c.o :info:build _t_blosc in blosc.c.o :info:build ld: symbol(s) not found for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) :info:build make[2]: *** [blosc/libblosc.1.6.1.dylib] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1' :info:build make[1]: *** [blosc/CMakeFiles/blosc_shared.dir/all] Error 2 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1' :info:build /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1/CMakeFiles 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 :info:build [100%] Built target blosc_static :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_blosc/blosc/work/c-blosc-1.6.1" && /usr/bin/make -j8 -w all VERBOSE=ON :info:build Exit code: 2 :error:build org.macports.build for port blosc returned: command execution failed :debug:build Error code: CHILDSTATUS 6877 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" }}} -- Ticket URL: <https://trac.macports.org/ticket/48434> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: ElCapitan Port: blosc | -------------------------------+------------------------ Changes (by ionic@…): * cc: stromnov@… (removed) * owner: macports-tickets@… => stromnov@… Comment: Did you install the beta version of Xcode and its command line tools? -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: ElCapitan Port: blosc | -------------------------------+------------------------ Comment (by manuel.schaich@…): I did indeed. 'xcrun --show-sdk-version' returns 10.11 which is what you'd expect with xcode 7.0. This was an issue before so I was thorough on this. -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: ElCapitan Port: blosc | -------------------------------+------------------------ Comment (by ionic@…): `std::aligned_alloc` is part of C++11. Maybe the port uses C++11 features without explicitly saying `-std=c++11` or `-std=c++0x` or `-std=gnu++1` or `-std=gnu++0x`? Please upload the main.log, as told by `port`. If the build log is incomplete, `sudo port clean blosc`, then try installing whatever port you initially tried to install again and upload the `main.log` file as suggested by `port`. -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: ElCapitan Port: blosc | -------------------------------+------------------------ Comment (by ionic@…): Oh, more specifically... without C++11 support, it would fail at build time (as opposed to link time.) So it's probably not linking to `libc++`, which should be default on 10.9+. This is why I suspect your toolchain is wonky. -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: elcapitan Port: blosc | -------------------------------+------------------------ Changes (by mf2k@…): * keywords: ElCapitan => elcapitan -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: elcapitan Port: blosc | -------------------------------+------------------------ Comment (by ionic@…): Hm, it's using `C11` features, but is not adding `-std=c11` to its `C(PP)FLAGS`. The compiler is right to reject that. I don't think this is an OS issue per se. Most likely this build failure also manifests on older systems. I see that `blosc` 1.7.0 fixes the issue and was released 23 days ago. Andrew, can you please update this port? -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48434: blosc@1.6.1 Build error - Undefined Symbols -------------------------------+------------------------ Reporter: manuel.schaich@… | Owner: stromnov@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: elcapitan Port: blosc | -------------------------------+------------------------ Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r139008 -- Ticket URL: <https://trac.macports.org/ticket/48434#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts