Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139235

fatal error: stdlib.h: No such file or directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.9.1
    • WebEngine
    • None
    • KDE Craft build system on AlmaLinux 8.10
      -- The CXX compiler identification is GNU 14.2.1
      -- The C compiler identification is GNU 14.2.1
    • Linux/Other display system
    • 75bbc52d7 (134-based)

      We are trying to compile QtWebEngine and it fails to compile, this is our config.summary

      It used to compile fine with Qt 6.8.3.

      We already checked the basics like: `glibc-headers` and `glibc-devel` are installed and `/usr/include/stdlib.h` exists.

      This is the output for the failure:

      [7700/22090] CXX obj/ui/events/keycodes/x11/x11_jumbo_1.o
      FAILED: [code=1] obj/ui/events/keycodes/x11/x11_jumbo_1.o
      /opt/rh/gcc-toolset-14/root/usr/bin/g++ -MD -MF obj/ui/events/keycodes/x11/x11_jumbo_1.o.d -DKEYCODES_X_IMPLEMENTATION -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_DISABLE_LEGACY_BACKEND_TEXTURE_FUNCS -DSK_DISABLE_LEGACY_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_BACKEND_SEMAPHORE_FUNCS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGES -DSK_DISABLE_LEGACY_DAWN_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_DAWN_BACKEND_TEXTURE_FUNCS -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_GANESH -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DVK_USE_PLATFORM_XCB_KHR -I. -Igen -I../../../../../src/src/3rdparty/chromium -I../../../../../src/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../../src/src/3rdparty/chromium/third_party/skia -Igen/third_party/skia -I../../../../../src/src/3rdparty/chromium/third_party/wuffs/src/release/c -I../../../../../src/src/3rdparty/chromium/third_party/vulkan/include -I../../../../../src/src/3rdparty/chromium/third_party/vulkan-headers/src/include -I../../../../../src/src/3rdparty/chromium/base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../../../../src/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../src/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../src/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-misleading-indentation -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -fno-ident -fno-strict-aliasing -fstack-protector -Wno-unknown-pragmas -Wno-address -Wno-parentheses -Wno-sign-compare -Wno-stringop-overflow -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -msse3 -O2 -fdata-sections -ffunction-sections -fno-math-errno -fno-omit-frame-pointer -gdwarf-4 -g1 -fvisibility=hidden -isystem/usr/include -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -Wno-invalid-offsetof -Wno-deprecated-copy -Wno-expansion-to-defined -std=gnu++20 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c gen/ui/events/keycodes/x11_jumbo_1.cc -o obj/ui/events/keycodes/x11/x11_jumbo_1.o
      In file included from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/ext/string_conversions.h:43,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/bits/basic_string.h:4154,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/string:54,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/bits/locale_classes.h:40,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/bits/ios_base.h:41,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/ios:44,
      from /opt/rh/gcc-toolset-14/root/usr/include/c++/14/ostream:40,
      from ../../../../../src/src/3rdparty/chromium/ui/events/keycodes/dom/dom_key.h:11,
      from ../../../../../src/src/3rdparty/chromium/ui/events/keycodes/keyboard_code_conversion_x.h:11,
      from ./../../../../../src/src/3rdparty/chromium/ui/events/keycodes/keyboard_code_conversion_x.cc:10,
      from gen/ui/events/keycodes/x11_jumbo_1.cc:5:
      /opt/rh/gcc-toolset-14/root/usr/include/c++/14/cstdlib:79:15: fatal error: stdlib.h: No such file or directory
      79 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
      compilation terminated.
      

      You can see the full log here: https://invent.kde.org/sysadmin/ci-management/-/jobs/3248195/viewer

      Note: we saw the same failure before our system update with: Suse Linux Enterprise Server 15.5 – The C compiler identification is GNU 12.3.0 – The CXX compiler identification is GNU 12.3.0

        1. config.summary
          3 kB
          Julius Künzel
        For Gerrit Dashboard: QTBUG-139235
        # Subject Branch Project Status CR V

            moheim Moss Heim
            jlskuz Julius Künzel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change