Opened 9 years ago

Closed 9 years ago

#48434 closed defect (fixed)

blosc@1.6.1 Build error - Undefined Symbols

Reported by: manuel.schaich@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: elcapitan Cc:
Port: blosc

Description

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"

Attachments (1)

main.log (118.1 KB) - added by manuel.schaich@… 9 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 9 years ago by Ionic (Mihai Moldovan)

Cc: stromnov@… removed
Owner: changed from macports-tickets@… to stromnov@…

Did you install the beta version of Xcode and its command line tools?

comment:2 Changed 9 years ago 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.

comment:3 Changed 9 years ago by Ionic (Mihai Moldovan)

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.

comment:4 Changed 9 years ago by Ionic (Mihai Moldovan)

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.

comment:5 Changed 9 years ago by mf2k (Frank Schima)

Keywords: elcapitan added; ElCapitan removed

Changed 9 years ago by manuel.schaich@…

Attachment: main.log added

comment:6 Changed 9 years ago by Ionic (Mihai Moldovan)

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?

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.