#67002 closed defect (fixed)

gegl-0.3 @0.3.34_14+x11: OpenCL link error

Reported by: jsalort (Julien Salort) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: ventura arm64 Cc:
Port: gegl-0.3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Gegl fails to build on Ventura with Apple M1. As far as I can see, this is another build failure, it differs from the other two opened tickets: #66777 and #66233.

The error is

:info:build dyld[28377]: symbol not found in flat namespace '_clGetContextInfo'

I attach the complete main.log.

Attachments (1)

main.log (379.3 KB) - added by jsalort (Julien Salort) 21 months ago.

Download all attachments as: .zip

Change History (6)

Changed 21 months ago by jsalort (Julien Salort)

Attachment: main.log added

comment:1 Changed 21 months ago by kencu (Ken)

Keywords: ventura arm64 added
Port: gegl-0.3 added; gegl removed
Summary: GEGL OpenCL link errorgegl-0.3 @0.3.34_14+x11: OpenCL link error

comment:2 Changed 21 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to mascguy
Status: newassigned

Perhaps the warning in the log is relevant:

ld: warning: -undefined dynamic_lookup may not work with chained fixups

See #66660 for how I fixed that in php-opcache.

comment:3 Changed 21 months ago by kencu (Ken)

You're right, adding this:

if {[vercmp ${macosx_deployment_target} >= 11]} {
	configure.ldflags-append -Wl,-no_fixup_chains
}

does indeed get past that link error. Thanks for that.

You then get into the error due to the new libraw that we have seen elsewhere.

comment:4 Changed 21 months ago by kencu (Ken)

looks like gentoo has a patch for the libraw thing, for the latest gegl at least

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e37f1398f63db9f2a6fe4133599a7169f6780e38

and the messaging says there is something already in gegl upstream to fix it too, so perhaps we should find that.

comment:5 Changed 21 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In b677d20802eced2270439120140259f4f6eee168/macports-ports (master):

gegl: fix build errors

  1. fix error with new libraw

closes: #66777

  1. fix error with chained fixups on new systems

closes: #67002

Note: See TracTickets for help on using tickets.