Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2024 09:52:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280650] graphics/libheif fails to build on main ports tree
Message-ID:  <bug-280650-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280650

            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

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

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

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

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

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

=3D=3D=3D>  Cleaning for libheif-1.18.1
=3D=3D=3D>  License LGPL3+ accepted by the user
=3D=3D=3D>   libheif-1.18.1 depends on file: /usr/local/sbin/pkg - found
=3D=3D=3D> Fetching all distfiles required by libheif-1.18.1 for building
=3D=3D=3D>  Extracting for libheif-1.18.1
=3D> SHA256 Checksum OK for libheif-1.18.1.tar.gz.
=3D=3D=3D>  Patching for libheif-1.18.1
=3D=3D=3D>  Applying FreeBSD patches for libheif-1.18.1 from
/usr/ports/graphics/libheif/files
=3D=3D=3D>   libheif-1.18.1 depends on file: /usr/local/bin/cmake - found
=3D=3D=3D>   libheif-1.18.1 depends on executable: ninja - found
=3D=3D=3D>   libheif-1.18.1 depends on package: gettext-runtime>=3D0.22_1 -=
 found
=3D=3D=3D>   libheif-1.18.1 depends on package: pkgconf>=3D1.3.0_1 - found
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libsharpyuv.so - fou=
nd
(/usr/local/lib/libsharpyuv.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libaom.so - found
(/usr/local/lib/libaom.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libdav1d.so - found
(/usr/local/lib/libdav1d.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libpng16.so - found
(/usr/local/lib/libpng16.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libtiff.so - found
(/usr/local/lib/libtiff.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libavcodec.so - found
(/usr/local/lib/libavcodec.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libopenjp2.so - found
(/usr/local/lib/libopenjp2.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libSvtAv1Enc.so - fo=
und
(/usr/local/lib/libSvtAv1Enc.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libx265.so - found
(/usr/local/lib/libx265.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libgdk_pixbuf-2.0.so=
 - found
(/usr/local/lib/libgdk_pixbuf-2.0.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libglib-2.0.so - fou=
nd
(/usr/local/lib/libglib-2.0.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
=3D=3D=3D>   libheif-1.18.1 depends on shared library: libjpeg.so - found
(/usr/local/lib/libjpeg.so)
=3D=3D=3D>  Configuring for libheif-1.18.1
=3D=3D=3D>  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 component=
s:
avcodec avutil

=3D=3D=3D Summary of compiled codecs =3D=3D=3D
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

=3D=3D=3D Supported formats =3D=3D=3D
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")

=3D=3D=3D Active input formats for heif-enc =3D=3D=3D
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
=3D=3D=3D>  Building for libheif-1.18.1
[  1% 1/91] /usr/bin/c++ -DHAVE_JPEG_WRITE_ICC_PROFILE=3D1 -DHAVE_LIBJPEG=
=3D1
-DHAVE_LIBPNG=3D1 -DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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=3D1 -DHAVE_LIBJPEG=
=3D1
-DHAVE_LIBPNG=3D1 -DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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=3D1 -DHAVE_LIBJPEG=
=3D1
-DHAVE_LIBPNG=3D1 -DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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=3D1 -DHAVE_LIBJPEG=
=3D1
-DHAVE_LIBPNG=3D1 -DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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=3D1 -DHAVE_LIBJPEG=
=3D1
-DHAVE_LIBPNG=3D1 -DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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=3D1 -DHAVE_LIBJPEG=3D1 -DHAVE_LI=
BPNG=3D1
-DHAVE_LIBSHARPYUV=3D1 -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=3Dhaswell -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -isystem /usr/local/include -O2 -pipe -march=3Dhaswell
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-isystem /usr/local/include  -DNDEBUG -std=3Dc++11 -fPIE -fvisibility=3Dhid=
den
-fvisibility-inlines-hidden   -Wall -Wsign-compare -Wconversion
-Wno-sign-conversion -Wno-error=3Dconversion -Wno-error=3Dunused-parameter
-Wno-error=3Ddeprecated-declarations -Wno-error=3Dtautological-compare
-Wno-error=3Dtautological-constant-out-of-range-compare
-Wno-error=3Dpotentially-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

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

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


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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280650-7788>