Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#55793 closed defect (fixed)

bladeRF @20180201 Fails to build on Mavericks

Reported by: tehcog (tehcog) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: mavericks Cc:
Port: bladeRF

Description

:info:build [100%] Linking C executable ../../output/bladeRF-cli
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-cli && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/bladeRF-cli.dir/link.txt --verbose=ON
:info:build /usr/bin/clang -pipe -Os -DNDEBUG -arch x86_64 -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names CMakeFiles/bladeRF-cli.dir/src/main.c.o CMakeFiles/bladeRF-cli.dir/src/common.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/calibrate.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/cmd.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/erase.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/flash_backup.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/flash_image.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/flash_init_cal.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/flash_restore.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/fw_log.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/info.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/load.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/open.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/peek.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/lms_reg_info.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/peekpoke.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/poke.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/printset.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/probe.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/xb.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/xb100.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/xb200.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/xb300.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/recover.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/rx.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/rxtx.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/tx.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/version.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/jump_boot.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/mimo.c.o CMakeFiles/bladeRF-cli.dir/src/cmd/trigger.c.o CMakeFiles/bladeRF-cli.dir/src/input/input.c.o CMakeFiles/bladeRF-cli.dir/src/input/script.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/conversions.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/dc_calibration.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/log.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/str_queue.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/parse.c.o CMakeFiles/bladeRF-cli.dir/src/input/tecla.c.o CMakeFiles/bladeRF-cli.dir/__/__/common/src/osx/clock_gettime.c.o  -o ../../output/bladeRF-cli -Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/output ../../output/libbladeRF.1.dylib -lm /opt/local/lib/libtecla.dylib -lncurses /opt/local/lib/libusb-1.0.dylib 
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build [100%] Built target bladeRF-cli
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
: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_science_bladeRF/bladeRF/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build bladeRF: command execution failed
:debug:build Error code: CHILDSTATUS 3273 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/main.log for details.

Attachments (1)

main.log (588.2 KB) - added by tehcog (tehcog) 3 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by tehcog (tehcog)

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by michaelld (Michael Dickens)

Actual error is:

:info:build Undefined symbols for architecture x86_64:
916	:info:build   "_clock_gettime", referenced from:
917	:info:build       _populate_abs_timeout in bladerf_priv.c.o
918	:info:build ld: symbol(s) not found for architecture x86_64
919	:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
920	:info:build make[2]: *** [host/output/libbladeRF_test_config_file] Error 1
921	:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
922	:info:build make[1]: *** [host/libraries/libbladeRF_test/test_config_file/CMakeFiles/libbladeRF_test_config_file.dir/all] Error 2

So this should be an easy fix at least ;)

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Cc: michaelld@… removed
Keywords: mavericks added; Mavericks removed
Owner: set to michaelld
Status: newassigned

comment:3 Changed 3 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: assignedclosed

In 9de41e07ce9563c6ba39d32150b8fb649338bbbe/macports-ports:

bladeRF: add a temporary patch to correctly build "test_config_file" on OSX.

Closes: #55793

comment:4 Changed 3 years ago by michaelld (Michael Dickens)

This patch works for me on 10.8 and 10.12. What it does is very generic, and so should work on any other OSX too.

comment:5 in reply to:  4 Changed 3 years ago by tehcog (tehcog)

Replying to michaelld:

This patch works for me on 10.8 and 10.12. What it does is very generic, and so should work on any other OSX too.

Works on Mavericks! Thanks.

comment:6 Changed 3 years ago by michaelld (Michael Dickens)

Excellent! You're welcome & thank you for reporting back.

Note: See TracTickets for help on using tickets.