Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944790 - media-libs/lib3mf fails to build with dev-libs/libzip-1.11.2
Summary: media-libs/lib3mf fails to build with dev-libs/libzip-1.11.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-24 06:04 UTC by 154koz3j6
Modified: 2024-11-25 15:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildlog (lib3mf-build.log,183.21 KB, text/x-log)
2024-11-24 06:04 UTC, 154koz3j6
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 154koz3j6 2024-11-24 06:04:39 UTC
Created attachment 911728 [details]
buildlog

Portage 3.0.66.1 (python 3.13.0-final-0, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-14, glibc-2.40-r5, 6.12.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.1-gentoo-x86_64-AMD_Ryzen_9_7950X3D_16-Core_Processor-with-glibc2.40
KiB Mem:    31948624 total,  13113944 free
KiB Swap:   33554428 total,  28127152 free
Timestamp of repository gentoo: Sun, 24 Nov 2024 04:30:00 +0000
Head commit of repository gentoo: 92942d558340cd682462863582831146e28e1da0
Timestamp of repository dlang: Fri, 08 Nov 2024 15:03:24 +0000
Head commit of repository dlang: 27ec402f409d2279c4c2612a0c445da3cf4bdceb

Timestamp of repository guru: Sat, 23 Nov 2024 15:05:30 +0000
Head commit of repository guru: 57ad5af0459d1f9a06585b6a8c806048844bc205

Timestamp of repository lto-overlay: Mon, 19 Aug 2024 06:22:27 +0000
Head commit of repository lto-overlay: 72f4e578bd64c1c5cb3fc6ac1526bf8d009ee026

Timestamp of repository nest: Fri, 22 Nov 2024 22:33:21 +0000
Head commit of repository nest: 10d8552c7ee43baab3ac590f4ca98d9e8a515a4c

Timestamp of repository xwing: Mon, 18 Nov 2024 17:03:18 +0000
Head commit of repository xwing: 9faaee96cdfb1cd1e1c28fca9363d75c6760ec17

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust:             1.81.0-r100::gentoo, 1.82.0-r100::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-apps/systemd:          256.7::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.4::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.8::gentoo, 19.1.4::gentoo
sys-devel/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.4::gentoo
sys-kernel/linux-headers:  6.11::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: 
    priority: -1000
    volatile: False
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-metamanifest: yes

dlang
    location: /var/db/repos/dlang
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

dm9pZCAq
    location: /var/db/repos/dm9pZCAq
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

loatchi
    location: /var/db/repos/loatchi
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

local
    location: /usr/portage/local
    masters: gentoo
    volatile: True

lto-overlay
    location: /var/db/repos/lto-overlay
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

nest
    location: /var/db/repos/nest
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

staging
    location: /var/db/repos/staging
    masters: gentoo
    volatile: False

xwing
    location: /var/db/repos/xwing
    sync-type: git
    sync-uri: 
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: 

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE linux-fw-redistributable license(s) MakeMKV-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -flto -pipe -fgraphite-identity -floop-nest-optimize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -flto -pipe -fgraphite-identity -floop-nest-optimize"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O3 -flto -pipe -fgraphite-identity -floop-nest-optimize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O3 -flto -pipe -fgraphite-identity -floop-nest-optimize"
GENTOO_MIRRORS=""
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold"
LEX="flex"
MAKEOPTS="-j24 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 apparmor av1 avif bluetooth bluray branding btrfs bzip2 cairo cdda cdr cet codec2 colord compress-zstd crypt cryptsetup cups dav1d dbus dri dts dvd dvdr eds encode evo exif flac gdbm gdk-pixbuf gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm graphite gstreamer gtk gtk3 gtk4 gui hardened heif homed iconv icu introspection ipv6 jpeg jpeg2k jpegxl keyring kf6compat lcms libnotify libtirpc lto luks mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nftables nls ogg opencl openexr opengl openmp opus pam pango pcre pdf pgo pic pie pipewire plymouth png policykit ppds pulseaudio python qml qt6 raw readline screencast sdl seccomp sound spell ssl ssp startup-notification svg svt-av1 sysprof systemd test-rust theora tiff tracker truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland webp wxwidgets x264 x265 xattr xcb xft xml xtpax xv xvid zlib zsh-autocomplete zsh-completion zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_13" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 154koz3j6 2024-11-24 06:13:05 UTC
Please note this same error occurs if disabling both lto and mold.
Comment 2 154koz3j6 2024-11-24 06:15:18 UTC
Also occurs if dropping back to -02 instead of -03.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 11:32:26 UTC
```
-- Checking for module 'libzip'
--   Found libzip, version 1.11.2
```

```
[31mFAILED: [0mCMakeFiles/lib3mf.dir/Source/Common/OPC/NMR_OpcPackageReader.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBUILD_DLL -Dlib3mf_EXPORTS -I/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Autogenerated/Source -I/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/API -I/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include  -march=native -O3 -flto -pipe -fgraphite-identity -floop-nest-optimize -Wno-error=odr -Wno-error=lto-type-mismatch -Wno-error=strict-aliasing -fno-lto -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -D__LIB3MF_EXPORTS -MD -MT CMakeFiles/lib3mf.dir/Source/Common/OPC/NMR_OpcPackageReader.cpp.o -MF CMakeFiles/lib3mf.dir/Source/Common/OPC/NMR_OpcPackageReader.cpp.o.d -o CMakeFiles/lib3mf.dir/Source/Common/OPC/NMR_OpcPackageReader.cpp.o -c /var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Source/Common/OPC/NMR_OpcPackageReader.cpp
In file included from /var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Common/OPC/NMR_OpcPackageReader.h:43,
                 from /var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Source/Common/OPC/NMR_OpcPackageReader.cpp:33:
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:284:11: error: expected ‘;’ at end of member declaration
  284 |     char *_Nullable str; /* string representation or NULL */
      |           ^~~~~~~~~
      |                    ;
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:284:21: error: ‘str’ does not name a type
  284 |     char *_Nullable str; /* string representation or NULL */
      |                     ^~~
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:299:17: error: expected ‘;’ at end of member declaration
  299 |     const char *_Nullable name;     /* name of the file */
      |                 ^~~~~~~~~
      |                          ;
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:299:27: error: ‘name’ does not name a type
  299 |     const char *_Nullable name;     /* name of the file */
      |                           ^~~~
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:311:18: error: expected ‘;’ at end of member declaration
  311 |     zip_uint8_t *_Nonnull data;
      |                  ^~~~~~~~
      |                          ;
/var/tmp/portage/media-libs/lib3mf-2.2.0/work/lib3mf-2.2.0/Include/Libraries/libzip/zip.h:311:27: error: ‘data’ does not name a type
  311 |     zip_uint8_t *_Nonnull data;
      |                           ^~~~
```

It's absolutely related to the change for bug 830231.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 11:33:15 UTC
Why is it using the bundled header?
Comment 5 Larry the Git Cow gentoo-dev 2024-11-25 15:44:31 UTC
The bug has been closed via the following commit(s):

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

commit c93f43e52ce643fb120a663cd51545e48cf6aaf6
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2024-11-25 15:37:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-25 15:43:31 +0000

    media-libs/lib3mf: don't use bundled headers
    
    The includes are hardcoded. This is fixed in newer releases, so instead of
    patching we just link the system includes to the place where they are expected.
    
    Closes: https://bugs.gentoo.org/944790
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/lib3mf/{lib3mf-2.2.0.ebuild => lib3mf-2.2.0-r1.ebuild} | 8 ++++++++
 1 file changed, 8 insertions(+)