Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#57195 closed defect (fixed)

bladeRF @20180927: fatal error: 'malloc.h' file not found

Reported by: BitBangingBytes (BitBangingBytes) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: bladeRF

Description (last modified by BitBangingBytes (BitBangingBytes))

BladeRF fails installing with the following error:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src/driver/thirdparty/adi/ad9361.c:44:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^~~~~~~~~~
[ 25%] Building C object host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/adc_core.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF && /usr/bin/clang -DHAVE_LIBUSB_GET_VERSION -DLIBBLADERF_SEARCH_PREFIX=\"/opt/local\" -DLOGGING_ENABLED -DLOG_INCLUDE_FILE_INFO -Dlibbladerf_shared_EXPORTS -DSHORT_FILE_=host/libraries/libbladeRF/src/driver/thirdparty/adi/adc_core.c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/common/include/osx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/../firmware_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/../fpga_common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF/src -I/usr/include/malloc -I/opt/local/include/libusb-1.0  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fvisibility=hidden -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fPIC   -Wall -Wextra -Wno-unused-parameter -std=gnu11 -o CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/adc_core.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src/driver/thirdparty/adi/adc_core.c
1 error generated.
make[2]: *** [host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/ad9361.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 25%] Building C object host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/dac_core.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF && /usr/bin/clang -DHAVE_LIBUSB_GET_VERSION -DLIBBLADERF_SEARCH_PREFIX=\"/opt/local\" -DLOGGING_ENABLED -DLOG_INCLUDE_FILE_INFO -Dlibbladerf_shared_EXPORTS -DSHORT_FILE_=host/libraries/libbladeRF/src/driver/thirdparty/adi/dac_core.c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/common/include/osx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/../firmware_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/../fpga_common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF/src -I/usr/include/malloc -I/opt/local/include/libusb-1.0  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fvisibility=hidden -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fPIC   -Wall -Wextra -Wno-unused-parameter -std=gnu11 -o CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/dac_core.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src/driver/thirdparty/adi/dac_core.c
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
make[1]: *** [host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build" && /usr/bin/make -j8 -w all VERBOSE=ON 
Exit code: 2
Warning: The following existing file was hidden from the build system by trace mode:
  /opt
The following files would have been hidden from the build system by trace mode if they existed:
  /usr/gnu/include
  /usr/local/cuda
  /usr/local/cuda-7.0
  /usr/local/cuda-7.5
  /usr/local/cuda-8.0
  /usr/local/include
  /usr/local/lib
Error: Failed to build bladeRF: command execution failed

Attachments (1)

main.log (245.4 KB) - added by kencu (Ken) 6 years ago.
bladerf build fail Mojave (no command-line tools installed)

Download all attachments as: .zip

Change History (27)

comment:1 Changed 6 years ago by BitBangingBytes (BitBangingBytes)

Description: modified (diff)
Port: bladerf added
Summary: gr-osmosdr fails installing while installing BladeRFgr-osmosdr @20170704_1 fails while installing BladeRF

comment:2 Changed 6 years ago by BitBangingBytes (BitBangingBytes)

Owner: set to BitBangingmichaelld@…
Status: newassigned

comment:3 Changed 6 years ago by BitBangingBytes (BitBangingBytes)

Owner: changed from BitBangingmichaelld@… to michaelld@…

comment:4 Changed 6 years ago by mf2k (Frank Schima)

Owner: changed from michaelld@… to michaelld

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

Would you please do the following:

sudo port selfupdate
sudo port clean bladeRF
sudo port install bladeRF

and, if that fails, then upload the whole bladeRF build log, not just a snippet. The build log contains other useful info in it that sometimes helps debug these issues.

comment:6 Changed 6 years ago by mf2k (Frank Schima)

Port: bladeRF added; bladerf removed

comment:7 Changed 6 years ago by markmower

:debug:build Executing org.macports.build (bladeRF)
:debug:build Environment: 
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.14'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /opt/local/bin/cmake -H/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build --check-build-system CMakeFiles/Makefile.cmake 0
:info:build /opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/CMakeFiles/progress.marks
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/build.make host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_fir_filter.dir/build.make host/utilities/bladeRF-fsk/c/
CMakeFiles/bladeRF-fsk_test_fir_filter.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_fir_filter.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/libraries/libbladeRF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/DependInfo.cmake --color=
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_fir_filter.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_fir_filter.dir/build
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/build
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Nothing to be done for `host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_fir_filter.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Nothing to be done for `host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_correlator.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Nothing to be done for `host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_pnorm.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/build.make host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/build
:info:build [  3%] Built target bladeRF-fsk_test_fir_filter
:info:build [  4%] Built target bladeRF-fsk_test_correlator
:info:build [  5%] Built target bladeRF-fsk_test_pnorm
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/depend
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/DependInfo.cmake --color=
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/build
:info:build /Applications/Xcode.app/Contents/Developer/usr/bin/make -f host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/build.make host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/build
:info:build [  5%] Building C object host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/ad9361.c.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF && /usr/bin/clang -DHAVE_LIBUSB_GET_VERSION -DLIBBLADERF_SEARCH_PREFIX=\"/opt/local\" -DLOGGING_ENABLED -DLOG_INCLUDE_FILE_INFO -Dlibbladerf_shared_EXPORTS -DSHORT_FILE_=host/libraries/libbladeRF/src/driver/thirdparty/adi/ad9361.c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/libraries/libbladeRF/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/libraries/libbladeRF/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/common/include/osx -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/../firmware_common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/../fpga_common/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build/host/libraries/libbladeRF/src -I/usr/include/malloc -I/opt/local/include/libusb-1.0  -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fvisibility=hidden -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fPIC   -Wall -Wextra -Wno-unused-parameter -std=gnu11 -o CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/ad9361.c.o   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/libraries/libbladeRF/src/driver/thirdparty/adi/ad9361.c
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Nothing to be done for `host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_crc32.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[2]: Nothing to be done for `host/utilities/bladeRF-fsk/c/CMakeFiles/bladeRF-fsk_test_prng.dir/build'.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build [  6%] Built target bladeRF-fsk_test_crc32
:info:build [  6%] Built target bladeRF-fsk_test_prng
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/bladeRF-f38dde896b6b6d46332a42a620e3841b0233157e/host/libraries/libbladeRF/src/driver/thirdparty/adi/ad9361.c:44:10: fatal error: 'malloc.h' file not found
:info:build #include <malloc.h>
:info:build          ^~~~~~~~~~
:info:build 1 error generated.
:info:build make[2]: *** [host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/src/driver/thirdparty/adi/ad9361.c.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build'
:info:build make[1]: *** [host/libraries/libbladeRF/CMakeFiles/libbladerf_shared.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_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_macports_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_macports_release_tarballs_ports_science_bladeRF/bladeRF/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build bladeRF: command execution failed
:debug:build Error code: CHILDSTATUS 60844 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_macports_release_tarballs_ports_science_bladeRF/bladeRF/main.log for details.
Last edited 6 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 Changed 6 years ago by markmower

as above still have same problem

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

Interesting; "malloc.h" is a pretty common header ... but if its missing its missing!

I don't think I've gotten to this point in my MP install on Mojave 10.14. I'll try it tomorrow when I'm in front of my MP testbed computers.

comment:10 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

malloc.h is deprecated and Linux-specific. #include <stdlib.h> instead.

comment:11 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: gr-osmosdr @20170704_1 fails while installing BladeRFbladeRF @20180927: fatal error: 'malloc.h' file not found

comment:12 Changed 6 years ago by markmower

Just wondering when to expect a fix inward bound, I am stuck at the moment and can't progress

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

Embedded in the build log is this jewel:

-I/usr/include/malloc

I'd guess that you have malloc installed via some other means (e.g., Homebrew, from source). I'd suggest you remove the offending header & library, "sudo port clean bladerf", and then try again.

comment:14 Changed 6 years ago by kencu (Ken)

strangely, I don't have any malloc installed from anywhere and I also see this error. Log attached.

Changed 6 years ago by kencu (Ken)

Attachment: main.log added

bladerf build fail Mojave (no command-line tools installed)

comment:15 Changed 6 years ago by kencu (Ken)

The failing file has this weird bit:

#if 0 == BLADERF_OS_FREEBSD  
#include <malloc.h>
#endif // BLADERF_OS_FREEBSD

which apparently evaluates to TRUE, ergo the failure. Removing that chunk completely fixes build:

$ port -v installed bladerf
The following ports are currently installed:
  bladeRF @20180914_0+tecla (active) platform='darwin 18' archs='x86_64' date='2018-10-05T11:37:43-0700'
Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:16 Changed 6 years ago by kencu (Ken)

heres the culprit

work/bladeRF-6737d7b02be1dcb38c1e02ca31e88fe3d99b783a/host/libraries/libbladeRF/src/driver/thirdparty/adi/ad9361.c

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

OK that is really strange code. On my 10.14 install (which admittedly is the latest beta), bladeRF builds cleanly. I do have the CLT installed.

What I'm going to to is patch out that section of code; it's just strange and wrong.

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

Resolution: fixed
Status: assignedclosed

In cc0713cadddd2f9ae08d5eab91d61f982fa50715/macports-ports (master):

bladeRF: add patch to remove strange include of malloc.h

Closes: #57195

comment:19 Changed 6 years ago by markmower

just to add I have clean Mac osx 10.14(GM) install, only dev env is Xcode as I am an iOS dev, so nothing else other than what is being installed via gnu radio.

Hope this helps.

comment:20 Changed 6 years ago by markmower

Is this fix been released I have just tried and still have error

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

Ignore the comment about "/usr/include/malloc" ... it exists on various OSX installs (including my 10.12 and 10.14).

The commit is in place in the GIT master. I believe it takes ~1 hour to go live (e.g., via "sudo port selfupdate" or "sudo port sync"). You'll want to "sudo port clean bladeRF" before trying again, to get the patch.

comment:22 Changed 6 years ago by markmower

just to confirm fixed and working thank you

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

Great; thanks for reporting back!

comment:24 Changed 6 years ago by jmroot (Joshua Root)

Just noting that /usr/include doesn't exist at all in a default Mojave installation even with the CLT. There is a package included in the CLT that you can manually install to get it however.

comment:25 Changed 6 years ago by kencu (Ken)

I think the real issue here is that this file on macOS exists at <malloc/malloc.h>. Even with the CLT it shouldn't work. Actually dunno how it worked for Michael. Although the real real issue is that it never should have been called in, because that wacky test is testing what?

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:26 Changed 6 years ago by jmroot (Joshua Root)

Yes, it's all very odd regardless, as malloc/malloc.h on macOS is not the same as malloc.h on Linux and older systems anyway.

Note: See TracTickets for help on using tickets.