Opened 3 hours ago

Closed 66 minutes ago

#71352 closed defect (fixed)

libheif 1.19.3 fails to build: grid.cc: error: 'this' pointer is null [-Werror=nonnull]

Reported by: barracuda156 Owned by: Sergey Fedorov <barracuda@…>
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), mascguy (Christopher Nielsen)
Port: libheif

Description

https://github.com/strukturag/libheif/issues/1393

[ 40%] Building CXX object libheif/CMakeFiles/heif.dir/image-items/grid.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/image-items/grid.cc.o -MF CMakeFiles/heif.dir/image-items/grid.cc.o.d -o CMakeFiles/heif.dir/image-items/grid.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/grid.cc
[ 41%] Building CXX object libheif/CMakeFiles/heif.dir/image-items/overlay.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/image-items/overlay.cc.o -MF CMakeFiles/heif.dir/image-items/overlay.cc.o.d -o CMakeFiles/heif.dir/image-items/overlay.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/overlay.cc
[ 42%] Building CXX object libheif/CMakeFiles/heif.dir/image-items/iden.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/image-items/iden.cc.o -MF CMakeFiles/heif.dir/image-items/iden.cc.o.d -o CMakeFiles/heif.dir/image-items/iden.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/iden.cc
[ 43%] Building CXX object libheif/CMakeFiles/heif.dir/image-items/tiled.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/image-items/tiled.cc.o -MF CMakeFiles/heif.dir/image-items/tiled.cc.o.d -o CMakeFiles/heif.dir/image-items/tiled.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/tiled.cc
[ 44%] Building CXX object libheif/CMakeFiles/heif.dir/color-conversion/colorconversion.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/color-conversion/colorconversion.cc.o -MF CMakeFiles/heif.dir/color-conversion/colorconversion.cc.o.d -o CMakeFiles/heif.dir/color-conversion/colorconversion.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/color-conversion/colorconversion.cc
[ 45%] Building CXX object libheif/CMakeFiles/heif.dir/color-conversion/rgb2yuv.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build/libheif && /opt/local/bin/ccache /opt/local/bin/g++-mp-14 -DENABLE_MULTITHREADING_SUPPORT=1 -DENABLE_PARALLEL_TILE_DECODING=1 -DHAVE_AOM_DECODER=1 -DHAVE_AOM_ENCODER=1 -DHAVE_LIBDE265=1 -DHAVE_LIBSHARPYUV=1 -DHAVE_OpenH264_DECODER=1 -DHAVE_UNISTD_H -DHAVE_VISIBILITY -DHAVE_X265=1 -DIS_BIG_ENDIAN=1 -DLIBHEIF_EXPORTS -Dheif_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/api -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include/libheif -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/include -I/opt/local/include -I/opt/local/include/webp -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++20 -arch ppc -mmacosx-version-min=10.6 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden   -Werror -Wall -Wsign-compare -Wconversion -Wno-sign-conversion -Wno-error=conversion -Wno-error=unused-parameter -Wno-error=deprecated-declarations -Werror -MD -MT libheif/CMakeFiles/heif.dir/color-conversion/rgb2yuv.cc.o -MF CMakeFiles/heif.dir/color-conversion/rgb2yuv.cc.o.d -o CMakeFiles/heif.dir/color-conversion/rgb2yuv.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/color-conversion/rgb2yuv.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/grid.cc: In static member function 'static Result<std::shared_ptr<ImageItem_Grid> > ImageItem_Grid::add_and_encode_full_grid(HeifContext*, const std::vector<std::shared_ptr<HeifPixelImage> >&, uint16_t, uint16_t, heif_encoder*, const heif_encoding_options&)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/grid.cc:741:55: error: 'this' pointer is null [-Werror=nonnull]
  741 |       pixi_property = out_tile->get_property<Box_pixi>();
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/grid.h:24,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/grid.cc:21:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_libheif/libheif/work/libheif-1.19.3/libheif/image-items/image_item.h:104:28: note: in a call to non-static member function 'std::shared_ptr<_Tp> ImageItem::get_property() const [with BoxType = Box_pixi]'
  104 |   std::shared_ptr<BoxType> get_property() const
      |                            ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [libheif/CMakeFiles/heif.dir/image-items/grid.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Attachments (1)

main.log (147.2 KB) - added by barracuda156 2 hours ago.
Also fails likewise if build as +kvazaar

Download all attachments as: .zip

Change History (2)

Changed 2 hours ago by barracuda156

Attachment: main.log added

Also fails likewise if build as +kvazaar

comment:1 Changed 66 minutes ago by Sergey Fedorov <barracuda@…>

Owner: set to Sergey Fedorov <barracuda@…>
Resolution: fixed
Status: newclosed

In 583cf07bbed722edfd2ebdbb505753a9f09a316e/macports-ports (master):

libheif: backport upstream fix for 1.19.3

Closes: #71352

Note: See TracTickets for help on using tickets.