HVML / PurC

The prime HVML interpreter for C Language.
GNU Lesser General Public License v3.0
1.06k stars 54 forks source link

Build fail on loongarch #79

Open hawordh opened 3 months ago

hawordh commented 3 months ago

[ 16%] Built target WTF_CopyHeaders [ 22%] Built target WTF [ 22%] Built target csspropgen [ 48%] Built target CSSEng [ 48%] Built target CSSEng_CopyHeaders [ 49%] Built target PurC_CopyHeaders [ 49%] Building CXX object Source/PurC/CMakeFiles/PurC.dir/fetchers/fetcher-process.cpp.o In file included from /home/haword/hvml/purc/PurC/Source/PurC/fetchers/ipc/FormDataReference.h:30, from /home/haword/hvml/purc/PurC/Source/PurC/fetchers/fetcher-request.h:38, from /home/haword/hvml/purc/PurC/Source/PurC/fetchers/fetcher-process.h:30, from /home/haword/hvml/purc/PurC/Source/PurC/fetchers/fetcher-process.cpp:30: /home/haword/hvml/purc/PurC/Source/PurC/fetchers/messages/SandboxExtension.h: In static member function ‘static std::optional PurCFetcher::SandboxExtension::HandleArray::decode(IPC::Decoder&)’: /home/haword/hvml/purc/PurC/Source/PurC/fetchers/messages/SandboxExtension.h:160:109: 错误:从初始化列表转换为‘std::optional’将使用显式构造函数‘constexpr std::optional<_Tp>::optional(std::in_place_t, _Args&& ...) [with _Args = {}; typename std::enable_if<__and_v<std::is_con structible<_Tp, _Args ...> >, bool>::type = false; _Tp = PurCFetcher::SandboxExtension::HandleArray]’ 160 | inline auto SandboxExtension::HandleArray::decode(IPC::Decoder&) -> std::optional { return {{ }}; } | ^ /home/haword/hvml/purc/PurC/Source/PurC/fetchers/messages/SandboxExtension.h:160:109: 错误:从初始化列表转换为‘std::in_place_t’将使用显式构造函数‘constexpr std::in_place_t::in_place_t()’ make[2]: *** [Source/PurC/CMakeFiles/PurC.dir/build.make:1570:Source/PurC/CMakeFiles/PurC.dir/fetchers/fetcher-process.cpp.o] 错误 1

VincentWei commented 3 months ago

Please check your toolchain:

A C11 and CXX17 compliant compiler: GCC 8+ or Clang 6+

hawordh commented 3 months ago

FAILED: Source/PurC/CMakeFiles/PurC.dir/utils/dnssd.c.o /usr/bin/clang -DBUILDING_LINUX__=1 -DBUILDING_PurC -DBUILDING_WITH_CMAKE=1 -DHAVE_CONFIG_H=1 -DPURC_LIBEXEC_DIR=\"/usr/local/bin\" -DPurC_EXPORTS -I/home/haword/hvml/purc/PurC/build -I/home/haword/hvml/purc/PurC/Source/PurC -I/home/haword/hvml/purc/PurC/Source/PurC/include -I/home/haword/hvml/purc/PurC/build/DerivedSources/PurC -I/home/haword/hvml/purc/PurC/build/DerivedSources/ForwardingHeaders/purc -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers/ipc -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers/ipc/unix -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers/launcher -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers/messages -I/home/haword/hvml/purc/PurC/Source/PurC/fetchers/messages/soup -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/home/haword/hvml/purc/PurC/build/DerivedSources/ForwardingHeaders -isystem /usr/include/libxml2 -fdiagnostics-color=always -fcolor-diagnostics -fmax-errors=10 -Wextra -Wall -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -fno-strict-aliasing -fno-exceptions -O2 -g -DNDEBUG -std=gnu99 -fPIC -MD -MT Source/PurC/CMakeFiles/PurC.dir/utils/dnssd.c.o -MF Source/PurC/CMakeFiles/PurC.dir/utils/dnssd.c.o.d -o Source/PurC/CMakeFiles/PurC.dir/utils/dnssd.c.o -c /home/haword/hvml/purc/PurC/Source/PurC/utils/dnssd.c /home/haword/hvml/purc/PurC/Source/PurC/utils/dnssd.c:209:29: error: use of undeclared identifier 'kDNSServiceFlagsShareConnection'; did you mean 'DNSServiceCreateConnection'? 209 | DNSServiceFlags flags = kDNSServiceFlagsShareConnection; | ^~~~~~~ | DNSServiceCreateConnection

I build with clang and ocuurs this error, could you tell me the value of kDNSServiceFlagsShareConnection?

ninexue commented 2 months ago

Please upload CMakeCache.txt and purc-features.h