[Bug 280650] graphics/libheif fails to build on main ports tree

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Aug 2024 09:52:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280650

            Bug ID: 280650
           Summary: graphics/libheif fails to build on main ports tree
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: makc@FreeBSD.org
          Reporter: jordan@ostreff.info
             Flags: maintainer-feedback?(makc@FreeBSD.org)
          Assignee: makc@FreeBSD.org

===>>> Launching child to install graphics/libheif

===>>> All >> graphics/libheif (1/1)

===>>> Currently installed version: libheif-1.17.6_2
===>>> Port directory: /usr/ports/graphics/libheif

===>>> Starting check for build dependencies
===>>> Gathering dependency list for graphics/libheif from ports
===>>> Dependency check complete for graphics/libheif

===>>> All >> libheif-1.17.6_2 (1/1)

===>  Cleaning for libheif-1.18.1
===>  License LGPL3+ accepted by the user
===>   libheif-1.18.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by libheif-1.18.1 for building
===>  Extracting for libheif-1.18.1
=> SHA256 Checksum OK for libheif-1.18.1.tar.gz.
===>  Patching for libheif-1.18.1
===>  Applying FreeBSD patches for libheif-1.18.1 from
/usr/ports/graphics/libheif/files
===>   libheif-1.18.1 depends on file: /usr/local/bin/cmake - found
===>   libheif-1.18.1 depends on executable: ninja - found
===>   libheif-1.18.1 depends on package: gettext-runtime>=0.22_1 - found
===>   libheif-1.18.1 depends on package: pkgconf>=1.3.0_1 - found
===>   libheif-1.18.1 depends on shared library: libsharpyuv.so - found
(/usr/local/lib/libsharpyuv.so)
===>   libheif-1.18.1 depends on shared library: libaom.so - found
(/usr/local/lib/libaom.so)
===>   libheif-1.18.1 depends on shared library: libdav1d.so - found
(/usr/local/lib/libdav1d.so)
===>   libheif-1.18.1 depends on shared library: libpng16.so - found
(/usr/local/lib/libpng16.so)
===>   libheif-1.18.1 depends on shared library: libtiff.so - found
(/usr/local/lib/libtiff.so)
===>   libheif-1.18.1 depends on shared library: libavcodec.so - found
(/usr/local/lib/libavcodec.so)
===>   libheif-1.18.1 depends on shared library: libopenjp2.so - found
(/usr/local/lib/libopenjp2.so)
===>   libheif-1.18.1 depends on shared library: libSvtAv1Enc.so - found
(/usr/local/lib/libSvtAv1Enc.so)
===>   libheif-1.18.1 depends on shared library: libx265.so - found
(/usr/local/lib/libx265.so)
===>   libheif-1.18.1 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
===>   libheif-1.18.1 depends on shared library: libgdk_pixbuf-2.0.so - found
(/usr/local/lib/libgdk_pixbuf-2.0.so)
===>   libheif-1.18.1 depends on shared library: libglib-2.0.so - found
(/usr/local/lib/libglib-2.0.so)
===>   libheif-1.18.1 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
===>   libheif-1.18.1 depends on shared library: libjpeg.so - found
(/usr/local/lib/libjpeg.so)
===>  Configuring for libheif-1.18.1
===>  Performing out-of-source build
/bin/mkdir -p /usr/ports/graphics/libheif/work/.build
-- The C compiler identification is Clang 18.1.6
-- The CXX compiler identification is Clang 18.1.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Performing Test has_potentially_evaluated_expression
-- Performing Test has_potentially_evaluated_expression - Success
-- Found X265
-- Found X265: /usr/local/include (found version "200")
-- Found DAV1D
-- Found DAV1D: /usr/local/include
-- Looking for AOM_USAGE_GOOD_QUALITY
-- Looking for AOM_USAGE_GOOD_QUALITY - found
-- Found AOM
-- Found AOM: /usr/local/include
-- Found SvtEnc
-- Found SvtEnc: /usr/local/include
-- Found JPEG: /usr/local/lib/libjpeg.so (found version "80")
-- Found FFMPEG: /usr/local/include (found version "6.1.1") found components:
avcodec avutil

=== Summary of compiled codecs ===
libde265 HEVC decoder           : - disabled
FFMPEG HEVC decoder (HW acc)    : + built-in
x265 HEVC encoder               : + built-in
Kvazaar HEVC encoder            : - disabled
AOM AV1 decoder                 : + built-in
AOM AV1 encoder                 : + built-in
Dav1d AV1 decoder               : + separate plugin
SVT AV1 encoder                 : + separate plugin
Rav1e AV1 encoder               : - disabled
JPEG decoder                    : + built-in
JPEG encoder                    : + built-in
OpenJPEG J2K decoder            : + separate plugin
OpenJPEG J2K encoder            : + separate plugin
OpenJPH HT-J2K encoder          : - disabled
uvg266 VVC enc. (experimental)  : - disabled
vvenc VVC enc. (experimental)   : - disabled
vvdec VVC dec. (experimental)   : - disabled

=== Supported formats ===
format        decoding   encoding
HEIC            YES        YES
AVIF            YES        YES
VVC             NO         NO
JPEG            YES        YES
JPEG2000        YES        YES
JPEG2000-HT     YES        NO
Uncompressed    NO         NO

-- Found LIBSHARPYUV
-- Found libsharpyuv: /usr/local/include/webp
libsharpyuv: found
-- Looking for _LIBCPP_VERSION
-- Looking for _LIBCPP_VERSION - found
-- Performing Test HAVE_JPEG_WRITE_ICC_PROFILE
-- Performing Test HAVE_JPEG_WRITE_ICC_PROFILE - Success
-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
-- Found PNG: /usr/local/lib/libpng.so (found version "1.6.43")
-- Found TIFF: /usr/local/lib/libtiff.so (found version "4.6.0")

=== Active input formats for heif-enc ===
JPEG: active
PNG:  active
TIFF: active

Doxygen tool needs to be installed to generate the API documentation
Compiling 'x265' as built-in backend
Not compiling 'libde265' backend
Compiling 'dav1d' as dynamic plugin
Compiling 'aomdec' as built-in backend
Compiling 'aomenc' as built-in backend
Compiling 'svtenc' as dynamic plugin
Not compiling 'rav1e' backend
Compiling 'jpegdec' as built-in backend
Compiling 'jpegenc' as built-in backend
Compiling 'j2kdec' as dynamic plugin
Compiling 'j2kenc' as dynamic plugin
Not compiling 'kvazaar' backend
Compiling 'ffmpegdec' as built-in backend
Not compiling 'jphenc' backend
Not compiling 'uvg266' backend
Not compiling 'vvdec' backend
Not compiling 'vvenc' backend
Compiling in 'libsharpyuv'
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PkgConfig: /usr/local/bin/pkgconf (found version "2.2.0")
-- Checking for module 'gdk-pixbuf-2.0'
--   Found gdk-pixbuf-2.0, version 2.42.10
-- Configuring done (1.3s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_VERBOSE_MAKEFILE
    FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /usr/ports/graphics/libheif/work/.build
===>  Building for libheif-1.18.1
[  1% 1/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1
-DHAVE_LIBPNG=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY
-DLIBHEIF_EXPORTS -I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-info.dir/heif_info.cc.o -MF
examples/CMakeFiles/heif-info.dir/heif_info.cc.o.d -o
examples/CMakeFiles/heif-info.dir/heif_info.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/heif_info.cc
[  2% 2/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1
-DHAVE_LIBPNG=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY
-DLIBHEIF_EXPORTS -I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-info.dir/common.cc.o -MF
examples/CMakeFiles/heif-info.dir/common.cc.o.d -o
examples/CMakeFiles/heif-info.dir/common.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/common.cc
[  3% 3/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1
-DHAVE_LIBPNG=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY
-DLIBHEIF_EXPORTS -I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-dec.dir/encoder.cc.o -MF
examples/CMakeFiles/heif-dec.dir/encoder.cc.o.d -o
examples/CMakeFiles/heif-dec.dir/encoder.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/encoder.cc
[  4% 4/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1
-DHAVE_LIBPNG=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY
-DLIBHEIF_EXPORTS -I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-dec.dir/encoder_y4m.cc.o -MF
examples/CMakeFiles/heif-dec.dir/encoder_y4m.cc.o.d -o
examples/CMakeFiles/heif-dec.dir/encoder_y4m.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/encoder_y4m.cc
[  5% 5/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1
-DHAVE_LIBPNG=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY
-DLIBHEIF_EXPORTS -I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o -MF
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o.d -o
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/heif_dec.cc
FAILED: examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o
/usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=1 -DHAVE_LIBJPEG=1 -DHAVE_LIBPNG=1
-DHAVE_LIBSHARPYUV=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DLIBHEIF_EXPORTS
-I/usr/ports/graphics/libheif/work/.build
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif/api
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include/libheif
-I/usr/ports/graphics/libheif/work/libheif-1.18.1/include -O2 -pipe
-march=haswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=haswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include  -DNDEBUG -std=c++11 -fPIE -fvisibility=hidden
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter
-Wno-error=deprecated-declarations -Wno-error=tautological-compare
-Wno-error=tautological-constant-out-of-range-compare
-Wno-error=potentially-evaluated-expression -MD -MT
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o -MF
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o.d -o
examples/CMakeFiles/heif-dec.dir/heif_dec.cc.o -c
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/heif_dec.cc
In file included from
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/heif_dec.cc:52:
In file included from
/usr/ports/graphics/libheif/work/libheif-1.18.1/examples/encoder_jpeg.h:30:
/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>"
      |      ^
1 error generated.
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/libheif
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/libheif

===>>> make build failed for graphics/libheif
===>>> Aborting update

===>>> Update for graphics/libheif failed
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> graphics/libheif

-- 
You are receiving this mail because:
You are the assignee for the bug.