Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906309 - app-emulation/virtualbox: build failure with dev-libs/libxml2-2.11 (element include: XInclude error : could not load ...)
Summary: app-emulation/virtualbox: build failure with dev-libs/libxml2-2.11 (element i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 905399
  Show dependency tree
 
Reported: 2023-05-14 06:55 UTC by Andreas Fink
Modified: 2023-06-02 18:27 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.bz2,119.78 KB, application/x-bzip2)
2023-05-14 06:56 UTC, Andreas Fink
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Fink 2023-05-14 06:55:16 UTC
I get build errors when trying to emerge virtualbox-7.0.8a

Reproducible: Always

Steps to Reproduce:
1. emerge virtualbox




Portage 3.0.47 (python 3.11.3-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r3, 6.1.19-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.19-gentoo-dist-x86_64-Intel-R-_Xeon-R-_CPU_E5-2667_v3_@_3.20GHz-with-glibc2.37
KiB Mem:    65842388 total,  32804596 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 14 May 2023 03:45:01 +0000
Head commit of repository gentoo: 16a396722c728af28f44d89f042d8c1a933a016c
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.1-r1::gentoo
dev-lang/python:           3.10.11::gentoo, 3.11.3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.7-r1::gentoo, 16.0.3::gentoo
sys-devel/gcc:             13.1.0-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo, 16.0.3::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: --quiet

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

src_prepare-overlay
    location: /var/lib/layman/src_prepare-overlay
    masters: gentoo
    priority: 50
    volatile: True

Installed sets: @deps, @fdroidserver-deps, @mega-deps, @openvpn, @programming-tools, @rss, @sfshare-pythontools, @tmp, @wireless-hotspot, @work-laptop
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/dracut/modules.d/60crypt-ssh /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
DISTDIR="/home/portage/distfiles"
EMERGE_DEFAULT_OPTS="--buildpkg --jobs=2 --oneshot --keep-going=y --usepkg --buildpkg-exclude app-emulation/virtualbox-modules --buildpkg-exclude x11-drivers/nvidia-drivers --buildpkg-exclude sys-kernel/gentoo-sources"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de"
MAKEOPTS="-j16"
PKGDIR="/home/portage/packages"
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="/home/portage/tmp"
SHELL="/bin/bash"
USE="X acl acpi alsa amd64 bluray bzip2 cleartype cli corefonts crypt cups dbus dist-kernel dri dvb elogind fortran gdbm gif gnome-keyring gtk iconv ipv6 jpeg jpeg2k kpathsea libglvnd libtirpc lirc mmx mng multilib ncurses nls nptl opengl openmp pam pcre pdf png pulseaudio qt4 qt5 readline seccomp split-usr sse sse2 ssl startup-notification svg test-rust threads tiff truetype type1 unicode v4l vaapi vdpau verify-sig vulkan webp xattr xcb xcomposite xinerama zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 sse sse2 mmxext" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 AMDGPU NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Andreas Fink 2023-05-14 06:56:48 UTC
Created attachment 861649 [details]
build.log
Comment 2 Andreas Sturmlechner gentoo-dev 2023-05-14 07:13:32 UTC
Is that with dev-libs/libxml2-2.11.3 and if so, does downgrading to dev-libs/libxml2-2.10.4 make it succeed?
Comment 3 Andreas Fink 2023-05-14 08:30:16 UTC
It was with dev-libs/libxml2-2.11.3.
Downgrading to dev-libs/libxml2-2.10.4, made it compile. The error messages are still there, but apparently silently ignored now.

Applying the patch https://www.virtualbox.org/changeset/99138/vbox makes the initial error disappear with dev-libs/libxml2-2.11.3, but it still fails with a different error.
Comment 4 Larry the Git Cow gentoo-dev 2023-05-15 14:35:41 UTC
The bug has been closed via the following commit(s):

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

commit bdb82397c63941c5a2e59804a62ee1d7f1533802
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-05-15 14:30:17 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-05-15 14:34:11 +0000

    app-emulation/virtualbox: fix building with dev-libs/libxml2-2.11
    
    Closes: https://bugs.gentoo.org/906309
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/virtualbox-7.0.6-fix-libxml2.patch       | 169 +++++++++++++++++++++
 .../virtualbox/virtualbox-7.0.6-r2.ebuild          |   1 +
 app-emulation/virtualbox/virtualbox-7.0.8a.ebuild  |   1 +
 3 files changed, 171 insertions(+)
Comment 5 Douglas J Hunley 2023-06-02 17:10:09 UTC
I'm seeing this exact issue with virtualbox-6.1.44. it looks like the fix was only applied to virtualbox-7.x. Should I open a new issue for 6.1.x and reference this issue? Or should this one be re-opened? Other?
Comment 6 Viorel Munteanu gentoo-dev 2023-06-02 18:02:07 UTC
I'll reopen this and fix it later.  The patch from 7.0.8 doesn't work here.
Comment 7 Larry the Git Cow gentoo-dev 2023-06-02 18:27:39 UTC
The bug has been closed via the following commit(s):

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

commit 85b9381262655b68fe5f48e0e586d383f9e52c97
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-06-02 18:20:21 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-06-02 18:27:28 +0000

    app-emulation/virtualbox: fix building with dev-libs/libxml2-2.11
    
    Replace some xhtml codes with their numeric equivalents and add empty
    fallbacks for missing files.  Nothing changes in the resulting files.
    
    Closes: https://bugs.gentoo.org/906309
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/virtualbox-6.1.44-fix-libxml2.patch      | 25 ++++++++++++++++++++++
 app-emulation/virtualbox/virtualbox-6.1.44.ebuild  | 11 ++++++++++
 2 files changed, 36 insertions(+)