Bug 279505 - graphics/libheif fails to build with message about csetjmp error
Summary: graphics/libheif fails to build with message about csetjmp error
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-03 18:06 UTC by Michael Galassi
Modified: 2024-06-14 13:27 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (makc)


Attachments
make's output when attempting to build libheif (45.22 KB, text/plain)
2024-06-03 18:06 UTC, Michael Galassi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Galassi 2024-06-03 18:06:10 UTC
Created attachment 251201 [details]
make's output when attempting to build libheif

When building libheif on 14.1-STABLE I get the following error:

/usr/include/c++/v1/csetjmp:40:6: error: "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
   40 | #    error "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h>"
      |      ^

I've included the output of make > make.out 2>&1 as an attachment.

Because this behavior first surfaced immediately after I upgraded my system from 13.3-STABLE to 14.1-STABLE it is possible (probable?) that this is a problem I introduced.

The workaround to get past this and create a usable build is to add #if 0/#endif around the #error in /usr/include/c++/v1/csetjmp which feels very dirty and wrong.

$ uname -a
FreeBSD tms.home.galassi.us 14.1-STABLE FreeBSD 14.1-STABLE stable/14-n267830-339b47f01985 GENERIC amd64

This behavior is currently observed with /usr/ports at commit 3b0403f7946050b0b582f905c6b2d0e3dc929cf1

make config enables only the default options (all except for RAV1E)
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2024-06-14 12:14:01 UTC
(In reply to Michael Galassi from comment #0)
Make sure you have correctly updated to 14-STABLE and removed stale files. See bug 279692 for details.
Comment 2 Michael Galassi 2024-06-14 13:27:19 UTC
Thank you Max, this was absolutely an operator malfunction.  After running `make delete-old` I was able to build/install libheif with no issues at all.  Thank you for providing the reference.