-- Skipping hello because jakt is disabled
-- Configuring done (4.9s)
-- Generating done (2.0s)
-- Build files have been written to: /home/mrunix/serenity/Build/lagom
ninja: Entering directory `/home/mrunix/serenity/Build/lagom'
[21/2502] Building CXX object Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/ImageFormats/GIFLoader.cpp.o
FAILED: [code=1] Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/ImageFormats/GIFLoader.cpp.o
/usr/lib64/ccache/c++ -DENABLE_COMPILETIME_FORMAT_CHECK -DLibGfx_EXPORTS -I/home/mrunix/serenity/Meta/Lagom/../.. -I/home/mrunix/serenity/Meta/Lagom/../../Userland -I/home/mrunix/serenity/Meta/Lagom/../../Userland/Libraries -I/home/mrunix/serenity/Meta/Lagom/../../Userland/Services -I/home/mrunix/serenity/Build/lagom -I/home/mrunix/serenity/Build/lagom/Userland/Libraries -I/home/mrunix/serenity/Build/lagom/Userland/Services -std=c++26 -fPIC -fdiagnostics-color=always -Wall -Wextra -Wcast-qual -Wdeprecated-copy -Wduplicated-cond -Wformat=2 -Wimplicit-fallthrough -Wlogical-op -Wmisleading-indentation -Wmissing-declarations -Wnon-virtual-dtor -Wsuggest-override -Wundef -Wunused -Wwrite-strings -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wno-psabi -fno-exceptions -ffp-contract=off -Werror -Wcast-align -Wdouble-promotion -Wno-expansion-to-defined -Wno-literal-suffix -Wno-dangling-reference -Wno-array-bounds -fno-semantic-interposition -fvisibility-inlines-hidden -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -ggnu-pubnames -fPIC -D_FILE_OFFSET_BITS=64 -O2 -g1 -MD -MT Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/ImageFormats/GIFLoader.cpp.o -MF Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/ImageFormats/GIFLoader.cpp.o.d -o Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/ImageFormats/GIFLoader.cpp.o -c /home/mrunix/serenity/Userland/Libraries/LibGfx/ImageFormats/GIFLoader.cpp
In file included from /home/mrunix/serenity/Meta/Lagom/../../AK/MemoryStream.h:14,
from /home/mrunix/serenity/Userland/Libraries/LibGfx/ImageFormats/GIFLoader.cpp:15:
In member function ‘AK::ErrorOr<void> AK::Vector<T, inline_capacity>::try_append(T&&) [with T = unsigned char; long unsigned int inline_capacity = 0]’,
inlined from ‘void AK::Vector<T, inline_capacity>::append(const T&) requires ! AK::Vector<T, inline_capacity>::contains_reference [with T = unsigned char; long unsigned int inline_capacity = 0]’ at /home/mrunix/serenity/Meta/Lagom/../../AK/Vector.h:318:9,
inlined from ‘AK::Vector<unsigned char>& Compress::LzwDecompressor<InputStream>::get_output() [with InputStream = AK::LittleEndianInputBitStream]’ at /home/mrunix/serenity/Meta/Lagom/../../Userland/Libraries/LibCompress/Lzw.h:159:29,
inlined from ‘static AK::ErrorOr<AK::Detail::ByteBuffer<32>, AK::Error> Compress::LzwDecompressor<InputStream>::decompress_all(AK::ReadonlyBytes, u8, i32) [with InputStream = AK::LittleEndianInputBitStream]’ at /home/mrunix/serenity/Meta/Lagom/../../Userland/Libraries/LibCompress/Lzw.h:122:13:
/home/mrunix/serenity/Meta/Lagom/../../AK/Vector.h:630:13: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
630 | new (slot(m_size)) StorageType(move(value));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/mrunix/serenity/Meta/Lagom/../../AK/Optional.h:18,
from /home/mrunix/serenity/Meta/Lagom/../../AK/Array.h:10,
from /home/mrunix/serenity/Userland/Libraries/LibGfx/ImageFormats/GIFLoader.cpp:8:
In function ‘void* kmalloc_array(AK::Checked<long unsigned int>, AK::Checked<long unsigned int>)’,
inlined from ‘AK::ErrorOr<void> AK::Vector<T, inline_capacity>::try_ensure_capacity(size_t) [with T = unsigned char; long unsigned int inline_capacity = 0]’ at /home/mrunix/serenity/Meta/Lagom/../../AK/Vector.h:715:67,
inlined from ‘void AK::Vector<T, inline_capacity>::ensure_capacity(size_t) [with T = unsigned char; long unsigned int inline_capacity = 0]’ at /home/mrunix/serenity/Meta/Lagom/../../AK/Vector.h:764:9,
inlined from ‘AK::Vector<T, inline_capacity>::Vector(const AK::Vector<T, inline_capacity>&) [with T = unsigned char; long unsigned int inline_capacity = 0]’ at /home/mrunix/serenity/Meta/Lagom/../../AK/Vector.h:97:24,
inlined from ‘AK::Vector<unsigned char>& Compress::LzwDecompressor<InputStream>::get_output() [with InputStream = AK::LittleEndianInputBitStream]’ at /home/mrunix/serenity/Meta/Lagom/../../Userland/Libraries/LibCompress/Lzw.h:157:24,
inlined from ‘static AK::ErrorOr<AK::Detail::ByteBuffer<32>, AK::Error> Compress::LzwDecompressor<InputStream>::decompress_all(AK::ReadonlyBytes, u8, i32) [with InputStream = AK::LittleEndianInputBitStream]’ at /home/mrunix/serenity/Meta/Lagom/../../Userland/Libraries/LibCompress/Lzw.h:122:13:
/home/mrunix/serenity/Meta/Lagom/../../AK/kmalloc.h:47:19: note: at offset -1 into destination object of size [1, 9223372036854775807] allocated by ‘malloc’
47 | return kmalloc(size.value());
| ^
/home/mrunix/serenity/Meta/Lagom/../../AK/kmalloc.h:47:19: note: at offset -1 into destination object of size [1, 9223372036854775807] allocated by ‘malloc’
/home/mrunix/serenity/Meta/Lagom/../../AK/kmalloc.h:47:19: note: at offset -1 into destination object of size [1, 9223372036854775807] allocated by ‘malloc’
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-shorten-64-to-32’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unused-command-line-argument’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[48/2502] Building CXX object Userland/Libraries/LibGfx/CMakeFiles/LibGfx.dir/Painter.cpp.o
ninja: build stopped: subcommand failed.
When I try to build ladybird with
./Meta/serenity.sh run lagom ladybird, I get the following error: