Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64771 closed defect (fixed)

libvirt @8.1.0: error: unknown type name 'hyper'

Reported by: mascguy (Christopher Nielsen) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: libvirt

Description

Looks like we may need to either blacklist older Clang versions, or patch the build to relax the requirements:

In file included from ../libvirt-8.1.0/src/conf/domain_audit.c:22:
../libvirt-8.1.0/config.h:40:5: error: You need at least XCode Clang v10.0 to compile libvirt
#   error You need at least XCode Clang v10.0 to compile libvirt
    ^
1 error generated.

https://ports.macports.org/port/libvirt/builds/

Change History (6)

comment:1 Changed 3 years ago by mascguy (Christopher Nielsen)

Summary: libvirt: 8.1.0 fails to build on 10.13 and later; XCode Clang v10.0 or later requiredlibvirt: 8.1.0 fails to build on 10.13 and earlier; XCode Clang v10.0 or later required

comment:2 Changed 3 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 1b426f950dcfaeb6c0c6771713a414a31f49781d/macports-ports (master):

libvirt: blacklist clang < 1000
Fixes: #64771

comment:3 in reply to:  2 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: closedreopened

Replying to Christopher Nielsen <mascguy@…>:

In 1b426f950dcfaeb6c0c6771713a414a31f49781d/macports-ports (master):

libvirt: blacklist clang < 1000
Fixes: #64771

The previous fix solves the errors related to the Clang version, and fixes the build issues for 10.12 and 10.13.

But 10.11 and earlier are now failing with complaints regarding unknown type hyper:

In file included from src/rpc/virnetprotocol.c:7:
src/rpc/virnetprotocol.h:181:9: error: unknown type name 'hyper'
        hyper length;
        ^
1 error generated.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libvirt: 8.1.0 fails to build on 10.13 and earlier; XCode Clang v10.0 or later requiredlibvirt @8.1.0: error: unknown type name 'hyper'

I am unfamiliar with type name 'hyper'. Upstream has previously been unwilling to invest any effort in support for older systems, though they will accept uncomplicated fixes for such issues; if you can devise one, please do.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: reopenedclosed

In f1483d2d5a651f0a95d1a54a441371e76839e691/macports-ports (master):

libvirt: Fix typo in patchfile

Fixes build failure on OS X 10.11 and earlier.

Closes: #64771

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

Lousy intermittently-functioning T key...

Note: See TracTickets for help on using tickets.