Opened 4 years ago

Closed 4 years ago

#60567 closed defect (invalid)

uhd @3.15.0.0: fatal error: 'CoreFoundation/CFBase.h' file not found

Reported by: dani-hopkins Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: uhd

Description (last modified by mf2k (Frank Schima))

i have been trying to install gnuradio onto my mac. i had succesfully completed this but had to uninstall it but am now having issues trying to get it back. it always brings up the same error that the UHD failed to build. i have unistalled macports and reinstalled but the issue still comes up

Dani@Danielles-MacBook-Air ~ % sudo port install gnuradio
--->  Computing dependencies for gnuradio
The following dependencies will be installed: 
 coreutils
 docbook-xml
 docbook-xml-4.1.2
 docbook-xml-4.2
 docbook-xml-4.3
 docbook-xml-4.4
 docbook-xml-4.5
 docbook-xml-5.0
 docbook-xsl-nons
 findutils
 fop
 getopt
 grep
 gsed
 orc
 uhd
 volk
 xmlcatmgr
 xmlto
Continue? [Y/n]: y
--->  Fetching archive for uhd
--->  Attempting to fetch uhd-3.15.0.0_3+docs+examples+libusb+manpages+manual+python37+python_api+test.darwin_19.x86_64.tbz2 from https://packages.macports.org/uhd
--->  Attempting to fetch uhd-3.15.0.0_3+docs+examples+libusb+manpages+manual+python37+python_api+test.darwin_19.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/uhd
--->  Attempting to fetch uhd-3.15.0.0_3+docs+examples+libusb+manpages+manual+python37+python_api+test.darwin_19.x86_64.tbz2 from http://lil.fr.packages.macports.org/uhd
--->  Building uhd
Error: Failed to build uhd: 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 gnuradio failed
Dani@Danielles-MacBook-Air ~ % 

Attachments (1)

uhd-log.txt.bz2 (23.8 KB) - added by dani-hopkins 4 years ago.
UHD log

Download all attachments as: .zip

Change History (17)

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

I'm not sure what the exact issue is, but this should be a way around it ... try:

sudo port clean uhd
sudo port -s install uhd

and, then if that works, then go back to your original GNU Radio install command.

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

Keywords: UHD removed
Owner: set to michaelld
Port: uhd added
Status: newassigned

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

Before you do the above, just for the sake of it, would you please attach the log file as noted in the error message? The file is listed as /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/main.log . Here's what I'd recommend you do:

cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/main.log ~/Desktop/uhd-log.txt
bzip2 ~/Desktop/uhd-log.txt

and, then attach the file ~/Desktop/uhd-log.txt.bz2.

Changed 4 years ago by dani-hopkins

Attachment: uhd-log.txt.bz2 added

UHD log

comment:4 Changed 4 years ago by dani-hopkins

i have attached the uhd log. i have previously tried a number of times to clean and install the uhd and it comes up with the same error. appologies for this. i am trying to get gnu companion on my mac as i need it for my MSc thesis work

Last edited 4 years ago by dani-hopkins (previous) (diff)

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

Thx & Yes I get you've tried this a few times. Try with the "-s" to build it from source instead of trying to download the pre-compiled binary.

comment:6 Changed 4 years ago by dani-hopkins

I copy and pasted the above and had the same issues which were:

Last login: Thu May 28 09:39:05 on ttys001

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. Danielles-MacBook-Air:~ Dani$ cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/main.log ~/Desktop/uhd-log.txt Danielles-MacBook-Air:~ Dani$ bzip2 ~/Desktop/uhd-log.txt~/Desktop/uhd-log.txt.bz2 bzip2: Can't open input file /Users/Dani/Desktop/uhd-log.txt~/Desktop/uhd-log.txt.bz2: No such file or directory. Danielles-MacBook-Air:~ Dani$ cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_uhd/uhd/main.log ~/Desktop/uhd-log.txt Danielles-MacBook-Air:~ Dani$ bzip2 ~/Desktop/uhd-log.txt Danielles-MacBook-Air:~ Dani$ sudo port clean uhd Password: ---> Cleaning uhd Danielles-MacBook-Air:~ Dani$ sudo port -s install uhd ---> Computing dependencies for uhd ---> Fetching distfiles for uhd ---> Verifying checksums for uhd ---> Extracting uhd ---> Applying patches to uhd ---> Configuring uhd Warning: ----------------------------------------------------------------------- Warning: The port 'uhd' uses the cxx11 PortGroup which is deprecated. Warning: Please instead specify the required c++ standard directly using Warning: compiler.cxx_standard 2011 Warning: replacing 2011 with newer standards (e.g. 2014, 2017) as required. Warning: For more details see https://trac.macports.org/wiki/CompilerSelection Warning: ----------------------------------------------------------------------- ---> Building uhd Error: Failed to build uhd: 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

Version 0, edited 4 years ago by dani-hopkins (next)

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

The Milestone field is for use by Macports team members only, please do not set it.

In the future, please use WikiFormatting, fill in the Port field with the port that fails to build and Cc the port maintainer(s) (port info --maintainers uhd).

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

Description: modified (diff)
Milestone: MacPorts 2.6.3

comment:9 Changed 4 years ago by dani-hopkins

Apologies Frank, i do not know hwat a milesone field is. I am really new to this and am trying to find my feet. i do not know what i have done wrong and am trying to seek help. Thank you for your patience and help so far and apologies in advance if i do something else incorrect

comment:10 Changed 4 years ago by dani-hopkins

i have just uploaded the text file that was in the zip folder as when i clicked on the attachment here it didnt show any english. the text file does. apologies if i have sentthe same thing twice and you could access the file form the zip folder

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

@dani-hopkins: Do you know which exact OSX version you're using? I'm currently updating my Catalina install to the current release: 10.15.5. This will also involve updating Xcode, so it'll be a few hours. The errors you have are OSX SDK related, so I'm wondering if somehow Xcode isn't properly installed for you:

:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:45:10: fatal error: 'CoreFoundation/CFBase.h' file not found
:info:build #include <CoreFoundation/CFBase.h>
:info:build          ^~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:45:10: note: did not find header 'CFBase.h' in framework 'CoreFoundation' (loaded from '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks')

comment:12 Changed 4 years ago by dani-hopkins

it is asking me to update my os now, i am on catalina. i have tried putting that into terminal and it says command not found. i will try the OS update and try to instal xcode again as when i do install or update xcode it tells me its all upto date

comment:13 in reply to:  12 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Error building UHDuhd @3.15.0.0: fatal error: 'CoreFoundation/CFBase.h' file not found

Replying to michaelld:

Try with the "-s" to build it from source instead of trying to download the pre-compiled binary.

It's obviously already building from source, after failing to download a binary.

Replying to dani-hopkins:

i have just uploaded the text file that was in the zip folder as when i clicked on the attachment here it didnt show any english. the text file does. apologies if i have sentthe same thing twice and you could access the file form the zip folder

I've deleted this attachment since it was the same content as the bz2 you uploaded already.

Replying to dani-hopkins:

it is asking me to update my os now, i am on catalina. i have tried putting that into terminal and it says command not found. i will try the OS update and try to instal xcode again as when i do install or update xcode it tells me its all upto date

Michael wasn't asking you to put anything into your Terminal; he was showing us which lines of the log you attached contain the relevant error message. It said fatal error: 'CoreFoundation/CFBase.h' file not found, and that's odd, because that header should exist. What happens when you run this in the Terminal:

ls -l /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h

On our Catalina buildbot worker, that file exists, and the build of uhd 3.15.0.0 succeeded. So I agree with Michael in suspecting something strange about your computer—not Xcode, since this port doesn't use Xcode, but rather the command line tools. You may need to update or reinstall them.

Another possibility is that the port actually is using Xcode, even though it does not declare that (it does not say use_xcode yes). Your log shows you do not have Xcode installed. If the port is trying to find CFBase.h in Xcode, the fact that you don't have Xcode could explain the error message about it not being there. You could try installing Xcode.

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

The file is in the command line tools and in Xcode:

% uname -a
Darwin MacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64

% locate CFBase.h               
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFBase.h
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CFBase.h

comment:15 Changed 4 years ago by dani-hopkins

Thank you. What I did, which I know is drastic, is completely reset my laptop and reload everything back on it. It now works fine.

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

Resolution: invalid
Status: assignedclosed

thanks for report!

Note: See TracTickets for help on using tickets.