• Bug#1101182: virtualbox: FTBFS with libicu-dev 75 or newer

    From Kentaro Hayashi@21:1/5 to All on Mon Mar 24 12:50:02 2025
    Package: virtualbox
    Version: 7.0.20-dfsg-1.2
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in
    the past) X-Debbugs-Cc: debian-amd64@lists.debian.org, kenhys@xdump.org
    User: debian-amd64@lists.debian.org
    Usertags: amd64

    Dear Maintainer,


    * What led up to the situation?

    virtualbox can not be build from source.

    It seems that recent libicu-dev expects std=c++17, but virtualbox try
    to use c++11. Thus that mismatch causes FTBFS.



    * What exactly did you do (or not do) that was effective (or
    ineffective)?

    Try to build from source on Debian unstable.
    $ apt-get source virtualbox
    $ sudo apt-get build-dep -y virtualbox
    $ cd virtualbox-7.0.20-dfsg
    $ debuild

    * What was the outcome of this action?

    FTBFS.

    g++ -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field- initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option
    -Wno-unused- parameter -Wlogical-op -Wno-variadic-macros
    -Wno-long-long -Wunused- variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-overloaded- virtual -Wno-array-bounds -Wno-ignored-qualifiers -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -std=c++11 -fvisibility-inlines-hidden -ffunction-sections -fdata-sections
    -m64 -I/build/unstable/virtualbox-7.0.20-dfsg/src/VBox/Runtime/include -I/usr/include/liblzf -I/build/unstable/virtualbox-7.0.20-dfsg/out/obj/RuntimeR3/dtrace -I/usr/include/libxml2 -I/build/unstable/virtualbox-7.0.20-dfsg/include -I/build/unstable/virtualbox-7.0.20-dfsg/out -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64
    -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING "-DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\"" "-DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib/virtualbox\"" "-DRTPATH_SHARED_LIBS=\"/usr/lib/virtualbox\"" "-DRTPATH_APP_DOCS=\"/usr/share/doc/virtualbox\"" -D_REENTRANT
    -DIN_RT_STATIC -DIN_RT_R3 -DIN_SUP_STATIC -DIN_RING3 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_RT_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_LX -DLDR_WITH_MACHO -DLDR_WITH_PE
    -DRT_WITH_VBOX -DRT_NO_GIP -DRT_WITHOUT_NOCRT_WRAPPERS -DNOFILEID
    -DIN_SUP_R3 -DRT_WITH_ICONV_CACHE -DHC_ARCH_BITS=64 -Wp,-MD,/build/unstable/virtualbox-7.0.20-dfsg/out/obj/RuntimeR3/r3/xml.o.dep -Wp,-MT,/build/unstable/virtualbox-7.0.20-dfsg/out/obj/RuntimeR3/r3/xml.o -Wp,-MP -o
    /build/unstable/virtualbox-7.0.20-dfsg/out/obj/RuntimeR3/r3/xml.o /build/unstable/virtualbox-7.0.20-dfsg/src/VBox/Runtime/r3/xml.cpp In
    file included from /usr/include/unicode/uenum.h:25, from /usr/include/unicode/ucnv.h:52, from
    /usr/include/libxml2/libxml/encoding.h:31, from /usr/include/libxml2/libxml/parser.h:812, from /usr/include/libxml2/libxml/globals.h:18, from /usr/include/libxml2/libxml/threads.h:35, from /usr/include/libxml2/libxml/xmlmemory.h:218, from /usr/include/libxml2/libxml/tree.h:1307, from /build/unstable/virtualbox-7.0.20-dfsg/src/VBox/Runtime/r3/xml.cpp:54: /usr/include/unicode/localpointer.h:561:26: error: parameter declared
    'auto' 561 | template <typename Type, auto closeFunction> |
    ^~~~ /usr/include/unicode/localpointer.h:573:76: error:
    template argument 2 is invalid
    573 | explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
    |
    ^
    /usr/include/unicode/localpointer.h:583:78: error: template argument 2
    is invalid
    583 | LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
    |
    ^
    /usr/include/unicode/localpointer.h:599:59: error: template argument 2
    is invalid
    599 | operator std::unique_ptr<Type, decltype(closeFunction)> ()
    && { | ^ /usr/include/unicode/uenum.h:69:1: note: invalid template non-type
    parameter 69 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUEnumerationPointer, UEnumeration, uenum_close);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/unicode/ucnv.h:597:1: note: invalid template non-type
    parameter 597 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterPointer,
    UConverter, ucnv_close);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:277: /build/unstable/virtualbox-7.0.20-dfsg/out/obj/RuntimeR3/r3/xml.o]
    Error 1


    * What outcome did you expect instead?

    No FTBFS.


    Regards,

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed May 14 15:20:01 2025
    This is a multi-part message in MIME format...

    Your message dated Wed, 14 May 2025 13:09:03 +0000
    with message-id <E1uFBr5-00F8ns-JN@fasolo.debian.org>
    and subject line Bug#1101182: fixed in virtualbox 7.0.26-dfsg-1
    has caused the Debian Bug report #1101182,
    regarding virtualbox: FTBFS with libicu-dev 75 or newer
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1101182: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101182
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 24 Mar 2025 11:40:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-15.2 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
    DKIM_VALID_EF,FVGT_m_MULTI_ODD,HAS_PACKAGE,SPF_HELO_NONE,SPF_PASS
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 82; hammy, 150; neutral, 216; spammy,
    0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
    0.000-+--X-Debbugs-Cc, 0.000-+--H*UA:sk:x86_64-,
    0.000-+--H*x:sk:x86_64-, 0.000-+--builddep
    Return-path: <kenhys@xdump.org>
    Received: from www2150.sakura.ne.jp ([182.48.49.60]:51264)
    by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_SECP521R1__RSA_SHA512__AES_256_GCM:256)