Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65845 closed defect (invalid)

hwloc-2.8.0_0+gui.darwin_21.x86_64: Problem compiling

Reported by: danichcr72 Owned by: i0ntempest
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: hwloc

Description

The is on Mac OS Montery 12.5.1 on Intel x86_64.

:info:build topology-darwin.c:124:39: error: use of undeclared identifier 'kIOMainPortDefault'; did you mean 'kIOMasterPortDefault'?
:info:build   cpus_root = IORegistryEntryFromPath(kIOMainPortDefault, DT_PLANE ":/cpus");
:info:build                                       ^~~~~~~~~~~~~~~~~~
:info:build                                       kIOMasterPortDefault
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:103:19: note: 'kIOMasterPortDefault' declared here
:info:build const mach_port_t kIOMasterPortDefault;
:info:build                   ^
:info:build 1 error generated.

Attachments (1)

main.log (42.1 KB) - added by danichcr72 2 years ago.
Complete log file

Download all attachments as: .zip

Change History (8)

comment:1 Changed 2 years ago by kencu (Ken)

I have Monterey 12.6, but on this platform, hwloc installs +gui without troubles:

% port -v installed hwloc
The following ports are currently installed:
  hwloc @2.8.0_0+gui (active) requested_variants='+gui' platform='darwin 21' archs='x86_64' date='2022-09-15T17:45:46-0700'

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Owner: set to i0ntempest
Status: newassigned

Are your CLTs up to date? Do you have /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk ? Can you attach the complete log?

Changed 2 years ago by danichcr72

Attachment: main.log added

Complete log file

comment:3 Changed 2 years ago by danichcr72

It seems that the SDK is in a different location on my machine:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/

comment:4 Changed 2 years ago by i0ntempest

Try deleting /Library/Developer/CommandLineTools and then reinstalling it.

comment:5 Changed 2 years ago by danichcr72

Thanks for your suggestion. That worked great! Must have had a damaged Xcode command tools installation.

comment:6 Changed 2 years ago by i0ntempest

Resolution: invalid
Status: assignedclosed

comment:7 Changed 2 years ago by jmroot (Joshua Root)

Or possibly just outdated due to ProblemHotlist#reinstall-clt.

Note: See TracTickets for help on using tickets.