Opened 5 years ago

Closed 5 years ago

#58838 closed defect (worksforme)

Unable to install UHD drivers on Macbook pro Mojave

Reported by: venkateshsathya Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: uhd

Description (last modified by mf2k (Frank Schima))

sudo port install uhd
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
--->  Computing dependencies for uhd
--->  Fetching archive for uhd
--->  Attempting to fetch uhd-3.14.0.0_0+docs+examples+gpsd+libusb+manpages+manual+python27+python_api+test.darwin_18.x86_64.tbz2 from https://packages.macports.org/uhd
--->  Attempting to fetch uhd-3.14.0.0_0+docs+examples+gpsd+libusb+manpages+manual+python27+python_api+test.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/uhd
--->  Attempting to fetch uhd-3.14.0.0_0+docs+examples+gpsd+libusb+manpages+manual+python27+python_api+test.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/uhd
--->  Fetching distfiles for uhd
--->  Attempting to fetch uhd-3.14.0.0.tar.gz from https://distfiles.macports.org/uhd
--->  Verifying checksums for uhd                                               
--->  Extracting uhd
--->  Applying patches to uhd
--->  Configuring uhd
Error: Failed to configure uhd: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port uhd failed

Attachments (1)

uhd_log.txt (136.1 KB) - added by venkateshsathya 5 years ago.

Download all attachments as: .zip

Change History (17)

comment:1 Changed 5 years ago by venkateshsathya

I have been traditionally using linux/ubuntu to talk to USRP. I am trying to use assess if I can use mac easily for my USRP tests and facing a lot of issues. Any help will be appreciated. Also, please note that I need to install a specific version of UHD driver to be consistent with my USRP FPGA. I am doing the UHD install with macport just to install dependencies. I did notice dependencies get installed. That being the case, I can probably skip debugging this issue and move onto install UHD from source. Please comment if I am right to do so.

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

Guessing you don't have Xcode installed correctly yet. See also: https://guide.macports.org/#installing.xcode .

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

If you want to:

cp $(port logfile uhd) ~/Desktop/uhd_log.txt

Then attach the file "~/Desktop/uhd_log.txt" to this ticket.

Changed 5 years ago by venkateshsathya

Attachment: uhd_log.txt added

comment:4 Changed 5 years ago by venkateshsathya

Thanks for the quick reply.. Please find the logs attached

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

Here's the actual error:

1636	:info:configure -- Check for working CXX compiler: /opt/local/bin/clang++-mp-8.0
1637	:info:configure -- Check for working CXX compiler: /opt/local/bin/clang++-mp-8.0 -- broken
1638	:info:configure CMake Error at /opt/local/share/cmake-3.15/Modules/CMakeTestCXXCompiler.cmake:53 (message):
1639	:info:configure   The C++ compiler
1640	:info:configure     "/opt/local/bin/clang++-mp-8.0"
1641	:info:configure   is not able to compile a simple test program.
1642	:info:configure   It fails with the following output:
1643	:info:configure     Change Dir: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/work/build/CMakeFiles/CMakeTmp
1644	:info:configure     
1645	:info:configure     Run Build Command(s):/usr/bin/make cmTC_f439d/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f439d.dir/build.make CMakeFiles/cmTC_f439d.dir/build
1646	:info:configure     Building CXX object CMakeFiles/cmTC_f439d.dir/testCXXCompiler.cxx.o
1647	:info:configure     /opt/local/bin/clang++-mp-8.0    -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14   -o CMakeFiles/cmTC_f439d.dir/testCXXCompiler.cxx.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/work/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
1648	:info:configure     Linking CXX executable cmTC_f439d
1649	:info:configure     /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f439d.dir/link.txt --verbose=1
1650	:info:configure     /opt/local/bin/clang++-mp-8.0  -pipe -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk  -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk  CMakeFiles/cmTC_f439d.dir/testCXXCompiler.cxx.o  -o cmTC_f439d
1651	:info:configure     ld: unexpected token: !tapi-tbd-v3 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd' for architecture x86_64
1652	:info:configure     clang: error: linker command failed with exit code 1 (use -v to see invocation)
1653	:info:configure     make[1]: *** [cmTC_f439d] Error 1

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

Really not sure why port picked MacPorts' Clang8 ... pretty strange! Again: Guessing from the intro-text that Xcode isn't installed enough yet.

comment:7 Changed 5 years ago by kencu (Ken)

The version of ld64 being used can’t understand the truncated tapi symbols in the SDK being used. Only Apple Xcode ld64 currently can handle tapi. You need to have that installed and the Xcode variant of ld64 selected.

comment:8 Changed 5 years ago by venkateshsathya

THank you Ken.. WIll give it a try

comment:9 Changed 5 years ago by venkateshsathya

Hi Ken/Michael,

I am trying to install ld64 and xcode variant of ld64 as suggested by ken.

I am installing ld64 from http://macappstore.org/ld64/.. please suggest where I can install/select xcode variant of ld64..

comment:10 Changed 5 years ago by kencu (Ken)

You would want to be sure you install Xcode as above <https://guide.macports.org/#installing.xcode>.

Then install ld64 with the xcode variant. These two steps should do it:

sudo port -f uninstall ld64
sudo port -v -N install ld64 +ld64_xcode

Then clean and reinstall your port:

sudo port clean uhd
sudo port -v install uhd

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

Keywords: UHD USRP removed
Port: uhd added; UHD removed

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

Description: modified (diff)

In the future, please use WikiFormatting.

comment:13 Changed 5 years ago by venkateshsathya

Thank you ken, Much appreciated..

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

Is your issue resolved?

comment:15 Changed 5 years ago by venkateshsathya

Hi Michael, I have decided to use a different laptop with linux installation for now. I had a tough time for last 3 days trying to install uhd/gnu radio since I am new to mac and therefore no longer planning to pursue the issue at this point. Thanks all for the wonderful support.

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

Resolution: worksforme
Status: assignedclosed

@venkateshsathya : sounds good. Thanks for reporting back!

Note: See TracTickets for help on using tickets.