Skip to content

Instantly share code, notes, and snippets.

@ADKaster
Created October 23, 2022 19:57
Show Gist options
  • Save ADKaster/462e9690de0bbcbda77fa9a11a6e1d40 to your computer and use it in GitHub Desktop.
Save ADKaster/462e9690de0bbcbda77fa9a11a6e1d40 to your computer and use it in GitHub Desktop.
llvm 16 libweb failure
FAILED: _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o
/usr/bin/ccache /home/andrew/emsdk/upstream/emscripten/em++ -I/home/andrew/serenity -I/home/andrew/serenity/Userland/Libraries -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Services -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries -I/home/andrew/serenity/Meta/Lagom/../.. -I/home/andrew/serenity/Meta/Lagom/../../Userland -I/home/andrew/serenity/Meta/Lagom/../../Userland/Libraries -I/home/andrew/serenity/Meta/Lagom/../../Userland/Services -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug -g -ggnu-pubnames -Wall -Wextra -Werror -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fdiagnostics-color=always -fPIC -g1 -O2 -fno-semantic-interposition -Wno-overloaded-virtual -Wno-user-defined-literals -fconstexpr-steps=16777216 -Wno-unused-private-field -std=c++20 -MD -MT _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o -MF _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o.d -o _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o -c /home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries/LibWeb/Bindings/ResponseConstructor.cpp
/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries/LibWeb/Bindings/ResponseConstructor.cpp:288:107: error: no viable conversion from 'Optional<Variant<[...], Fetch::XMLHttpRequestBodyInit, (no argument), (no argument), (no argument)>>' to 'const Optional<Variant<[...], JS::Handle<FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<URL::URLSearchParams>, String>>'
auto impl = TRY(throw_dom_exception_if_needed(vm, [&] { return Fetch::Response::construct_impl(realm, body, init); }));
^~~~
/home/andrew/serenity/AK/Try.h:19:35: note: expanded from macro 'TRY'
auto _temporary_result = (expression); \
^~~~~~~~~~
/home/andrew/serenity/AK/Optional.h:55:19: note: candidate constructor not viable: no known conversion from 'Optional<Variant<JS::Handle<ReadableStream>, Fetch::XMLHttpRequestBodyInit>>' (aka 'Optional<Variant<Handle<ReadableStream>, Variant<JS::Handle<FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<URL::URLSearchParams>, String>>>') to 'const Optional<Variant<Handle<ReadableStream>, Handle<Blob>, Handle<Object>, Handle<URLSearchParams>, String>> &' for 1st argument
ALWAYS_INLINE Optional(Optional const& other)
^
/home/andrew/serenity/AK/Optional.h:65:19: note: candidate constructor not viable: no known conversion from 'Optional<Variant<JS::Handle<ReadableStream>, Fetch::XMLHttpRequestBodyInit>>' (aka 'Optional<Variant<Handle<ReadableStream>, Variant<JS::Handle<FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<URL::URLSearchParams>, String>>>') to 'Optional<Variant<Handle<ReadableStream>, Handle<Blob>, Handle<Object>, Handle<URLSearchParams>, String>> &&' for 1st argument
ALWAYS_INLINE Optional(Optional&& other)
^
/home/andrew/serenity/AK/Optional.h:89:52: note: candidate template ignored: constraints not satisfied [with U = AK::Optional<AK::Variant<JS::Handle<Web::Streams::ReadableStream>, AK::Variant<JS::Handle<Web::FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<Web::URL::URLSearchParams>, AK::String>>> &]
ALWAYS_INLINE explicit(!IsConvertible<U&&, T>) Optional(U&& value) requires(!IsSame<RemoveCVReference<U>, Optional<T>> && IsConstructible<T, U&&>)
^
/home/andrew/serenity/AK/Optional.h:89:127: note: because 'IsConstructible<AK::Variant<JS::Handle<Web::Streams::ReadableStream>, JS::Handle<Web::FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<Web::URL::URLSearchParams>, AK::String>, AK::Optional<AK::Variant<JS::Handle<Web::Streams::ReadableStream>, AK::Variant<JS::Handle<Web::FileAPI::Blob>, JS::Handle<JS::Object>, JS::Handle<Web::URL::URLSearchParams>, AK::String> > > &>' evaluated to false
ALWAYS_INLINE explicit(!IsConvertible<U&&, T>) Optional(U&& value) requires(!IsSame<RemoveCVReference<U>, Optional<T>> && IsConstructible<T, U&&>)
^
/home/andrew/serenity/AK/Optional.h:73:139: note: explicit constructor is not a candidate
requires(IsConstructible<T, U const&> && !IsSpecializationOf<T, Optional> && !IsSpecializationOf<U, Optional>) ALWAYS_INLINE explicit Optional(Optional<U> const& other)
^
/home/andrew/serenity/AK/Optional.h:81:134: note: explicit constructor is not a candidate
requires(IsConstructible<T, U&&> && !IsSpecializationOf<T, Optional> && !IsSpecializationOf<U, Optional>) ALWAYS_INLINE explicit Optional(Optional<U>&& other)
^
/home/andrew/serenity/Userland/Libraries/LibWeb/Fetch/Response.h:35:113: note: passing argument to parameter 'body' here
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Response>> construct_impl(JS::Realm&, Optional<BodyInit> const& body = {}, ResponseInit const& init = {});
^
/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries/LibWeb/Bindings/ResponseConstructor.cpp:288:21: error: no matching function for call to 'throw_dom_exception_if_needed'
auto impl = TRY(throw_dom_exception_if_needed(vm, [&] { return Fetch::Response::construct_impl(realm, body, init); }));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/andrew/serenity/AK/Try.h:19:35: note: expanded from macro 'TRY'
auto _temporary_result = (expression); \
^~~~~~~~~~
/home/andrew/serenity/Userland/Libraries/LibWeb/Bindings/ExceptionOrUtils.h:94:28: note: candidate template ignored: substitution failure [with F = (lambda at /home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries/LibWeb/Bindings/ResponseConstructor.cpp:288:17)]
JS::ThrowCompletionOr<Ret> throw_dom_exception_if_needed(auto&& vm, F&& fn)
^
2 errors generated.
em++: error: '/home/andrew/emsdk/llvm/git/build_main_64/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -I/home/andrew/emsdk/upstream/emscripten/cache/sysroot/include/SDL --sysroot=/home/andrew/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -g3 -ggnu-pubnames -Wall -Wextra -Wno-implicit-const-int-float-conversion -Wno-literal-suffix -Wno-maybe-uninitialized -Wno-unknown-warning-option -Wno-unused-command-line-argument -fsigned-char -fno-exceptions -fPIC -g0 -O2 -fno-semantic-interposition -Wno-overloaded-virtual -Wno-user-defined-literals -fconstexpr-steps=16777216 -Wno-unused-private-field -std=c++20 -fdiagnostics-color=always -Werror -I/home/andrew/serenity -I/home/andrew/serenity/Userland/Libraries -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Services -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries -I/home/andrew/serenity/Meta/Lagom/../.. -I/home/andrew/serenity/Meta/Lagom/../../Userland -I/home/andrew/serenity/Meta/Lagom/../../Userland/Libraries -I/home/andrew/serenity/Meta/Lagom/../../Userland/Services -I/home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug -c -MD -MT _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o -MF _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o.d /home/andrew/build-ladybird-WebAssembly_Qt_6_4_0-Debug/_deps/lagom-build/Userland/Libraries/LibWeb/Bindings/ResponseConstructor.cpp -o _deps/lagom-build/Userland/Libraries/LibWeb/CMakeFiles/LibWeb.dir/Bindings/ResponseConstructor.cpp.o' failed (returned 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment