hvml / purc Goto Github PK
View Code? Open in Web Editor NEWThe prime HVML interpreter for C Language.
License: GNU Lesser General Public License v3.0
The prime HVML interpreter for C Language.
License: GNU Lesser General Public License v3.0
The file https://github.com/HVML/PurC/blob/master/COPYING.LESSER indicates PurC is available under LGPLv3,
but many files indicate GPLv3:
https://github.com/HVML/PurC/blob/master/Source/Executables/purc/purc.c
https://github.com/HVML/PurC/blob/master/Source/Tools/debian/copyright
https://github.com/HVML/PurC/blob/master/README.md
My understanding is that correct license is GPL, but if the included files from miniGUI have been relicensed under LGPL,
LGPL seems fine.
Can make a pull request to update the code either way.
现在(Ubuntu 22.04.1 LTS)的输出是这样的:
tsy@tsy-Lenovo-V330-14IKB:~/PurC/build$ purc -b hvml/fibonacci-html-temp.hvml
purc 0.8.0
Copyright (C) 2022 FMSoft Technologies.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Executing HVML program from file:///home/tsy/PurC/build/hvml/fibonacci-html-temp.hvml
...
The main coroutine exited.
<title> Fibonacci Numbers </title>The document generated:
Totally 18 numbers
The executed result:
[ 18, 1597 ]
经 pretty printer 过滤后的 HTML 部分看起来:
<title>Fibonacci Numbers</title>Totally 18 numbers
When building on Fedora linux, the following samples and tests fail:
Failed samples:
Source/Samples/DOMRuler/layout_html/layout_html
Failed tests:
Source/test/dvobjs/test_dvobjs_system
Source/test/dvobjs/test_dvobjs_logical
Source/test/dvobjs/test_dvobjs_stream
Source/test/extdvobjs/test_extdvobjs_math
Source/test/extdvobjs/test_extdvobjs_fs
Source/test/interpreter/test_vcm_eval
linux下打包、编译,来回调试安装错误问题,时间成本太高了,时间不是这么浪费的,小老头儿我后半辈子时间本来就不够用!
期待Windows版的HVML,期待一键安装搞定的省时省力。
祝:HVML早日便利、造福万众!
ziglang构建ffmpeg:https://github.com/andrewrk/ffmpeg
like:
/usr/local/lib/libDOMRuler.0.9.5.dylib
/usr/local/lib/libDOMRuler.0.dylib
/usr/local/lib/libDOMRuler.dylib
/usr/local/lib/libDOMRuler.0.9.5.dylib
/usr/local/lib/libDOMRuler.0.dylib
/usr/local/lib/libDOMRuler.dylib
/usr/local/lib/libDOMRuler.0.9.5.dylib
/usr/local/lib/libDOMRuler.0.dylib
/usr/local/lib/libDOMRuler.dylib
关于最近在尝试使用Python 脚本,结合对HTML的了解,有没有可能增加 类似<script type="xxx">支持,更加规范多语言的支持,可能有以下好处:规范对其他语言增加支持,如Python,JavaScript等,可通过编译等建立对对象的解析,减少代码编写和额外的学习成本;
{{
$PY.import('datetime', ['datetime:dt', 'timedelta:td']);
$PY.stringify($PY.dt.fromtimestamp(1429417200.0))
}}
简化后的:
{{ //script="python"
import('datetime', ['datetime:dt', 'timedelta:td']);
stringify($PY.dt.fromtimestamp(1429417200.0))
}}
My dependencies:
dev-haskell/glib
Available versions: ~0.13.8.1(0/0.13.8.1) {+closure-signals doc hscolour profile}
Homepage: http://projects.haskell.org/gtk2hs/
Description: Binding to the GLIB library for Gtk2Hs
[U] dev-libs/glib
Available versions: (2) 2.70.2^t ~2.70.3^t 2.70.4^t
{dbus debug +elf fam gtk-doc +mime selinux static-libs sysprof systemtap test utils xattr ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 2.68.3-r1(2)^t(11:25:57 PM 09/19/2021)(dbus elf mime xattr -debug -fam -gtk-doc -selinux -static-libs -sysprof -systemtap -test -utils ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="glibc" KERNEL="linux")
Homepage: https://www.gtk.org/
Description: The GLib library of C routines
gcc (Gentoo 10.3.0-r2 p3) 10.3.0
workspace/PurC/Source/PurC/utils/stringbuilder.c:123:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
123 | *p = '\0';
| ~~~^~~~~~
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/variant/variant.c.o
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/variant/walk.c.o
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vcm/vcm.c.o
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/hvml-attr.c.o
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/hvml-tag.c.o
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/vdom/vdom.c.o
cc1: all warnings being treated as errors
make[2]: *** [Source/PurC/CMakeFiles/PurC.dir/build.make:5042: Source/PurC/CMakeFiles/PurC.dir/utils/stringbuilder.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 80%] Building C object Source/PurC/CMakeFiles/PurC.dir/ports/vasprintf.c.o
/home/saito/workspace/PurC/Source/PurC/variant/basic-types.c: In function ‘purc_variant_make_string_ex’:
/home/saito/workspace/PurC/Source/PurC/variant/basic-types.c:235:27: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
235 | value->bytes[len] = '\0';
| ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /home/saito/workspace/PurC/Source/PurC/include/private/instance.h:32,
from /home/saito/workspace/PurC/Source/PurC/variant/basic-types.c:30:
/home/saito/workspace/PurC/Source/PurC/include/private/variant.h:168:21: note: at offset 0 to object ‘bytes’ with size 0 declared here
168 | uint8_t bytes[0];
| ^~~~~
cc1: all warnings being treated as errors
make[2]: *** [Source/PurC/CMakeFiles/PurC.dir/build.make:5112: Source/PurC/CMakeFiles/PurC.dir/variant/basic-types.c.o] Error 1
[ 80%] Linking CXX static library ../../../../lib/libgtest_main.a
[ 80%] Built target gtest_main
make[1]: *** [CMakeFiles/Makefile2:967: Source/PurC/CMakeFiles/PurC.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 80%] Linking CXX static library ../../../../lib/libgmock.a
[ 80%] Built target gmock
make: *** [Makefile:156: all] Error 2
需要vscode针对hvml智能提示、调试、打包相关插件。
$ cd build/
$ cmake -DCMAKE_BUILD_TYPE=Release -DPORT=Linux .. #后面应该有两点
I use Arch Linux, and I don't install bc, you can install bc by typing sudo pacman -s bc
on Arch Linux
Calculator should not crash even without bc and some tips should be given
Calculator works after I installed bc
sudo pacman -s bc
build failed in archlinux.
cmake version: 3.23.3
gcc version: 12.1.0
glibc version: 2.35-6
build error log file:
log.txt
Build error information:
-Dport
parameter I tried Linux and MAC, but both failed to compile.
❯ uname -a
Darwin username 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64
❯ gcc --version
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
❯ cmake --version
cmake version 3.23.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
❯ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Mac -B build && cmake --build build && sudo cmake --install build
-- The CMake build type is: RelWithDebInfo
-- Enabling ccache: Couldn't find ccache program. Not enabling it.
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test C_COMPILER_SUPPORTS_-fmax-errors=10 - Success
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10
-- Performing Test CXX_COMPILER_SUPPORTS_-fmax-errors=10 - Success
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
-- Could NOT find HiBus (missing: HiBus_LIBRARY HiBus_INCLUDE_DIR) (Required is at least version "100")
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found suitable version "1.1.1q", minimum required is "1.1.1")
CMake Error at /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find BISON: Found unsuitable version "2.3", but required is at
least "3.0" (found /usr/bin/bison)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:592 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/FindBISON.cmake:306 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
Source/cmake/PurCFindPackage.cmake:100 (_find_package)
Source/cmake/OptionsLinux.cmake:30 (find_package)
Source/cmake/PurCCommon.cmake:48 (include)
CMakeLists.txt:138 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeOutput.log".
See also "/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeError.log".
CMakeError.log content:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
Build flags:
Id flags:
The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
Build flags:
Id flags:
The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Performing C SOURCE FILE Test C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_30e9b/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_30e9b.dir/build.make CMakeFiles/cmTC_30e9b.dir/build
Building C object CMakeFiles/cmTC_30e9b.dir/src.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -fno-strict-aliasing -fno-exceptions -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -DC_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -Wno-maybe-uninitialized -MD -MT CMakeFiles/cmTC_30e9b.dir/src.c.o -MF CMakeFiles/cmTC_30e9b.dir/src.c.o.d -o CMakeFiles/cmTC_30e9b.dir/src.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from <built-in>:370:
<command line>:1:29: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
#define C_COMPILER_SUPPORTS_-Wno-maybe-uninitialized 1
^
2 warnings generated.
Linking C executable cmTC_30e9b
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_30e9b.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -fno-strict-aliasing -fno-exceptions -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_30e9b.dir/src.c.o -o cmTC_30e9b
Source file was:
int main(void) { return 0; }
Performing C++ SOURCE FILE Test CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_0cc03/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_0cc03.dir/build.make CMakeFiles/cmTC_0cc03.dir/build
Building CXX object CMakeFiles/cmTC_0cc03.dir/src.cxx.o
/Library/Developer/CommandLineTools/usr/bin/c++ -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -fno-strict-aliasing -fno-exceptions -fno-rtti -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -DCXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized -Wno-maybe-uninitialized -MD -MT CMakeFiles/cmTC_0cc03.dir/src.cxx.o -MF CMakeFiles/cmTC_0cc03.dir/src.cxx.o.d -o CMakeFiles/cmTC_0cc03.dir/src.cxx.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.cxx
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
In file included from <built-in>:380:
<command line>:1:31: warning: whitespace recommended after macro name
#define CXX_COMPILER_SUPPORTS_-Wno-maybe-uninitialized 1
^
2 warnings generated.
Linking CXX executable cmTC_0cc03
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0cc03.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/c++ -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -fno-strict-aliasing -fno-exceptions -fno-rtti -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_0cc03.dir/src.cxx.o -o cmTC_0cc03
Source file was:
int main() { return 0; }
Determining if the include file features.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_5b6bd/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_5b6bd.dir/build.make CMakeFiles/cmTC_5b6bd.dir/build
Building C object CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'features.h' file not found
#include <features.h>
^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_5b6bd.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_5b6bd/fast] Error 2
Determining if the include file pthread_np.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_4395c/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_4395c.dir/build.make CMakeFiles/cmTC_4395c.dir/build
Building C object CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'pthread_np.h' file not found
#include <pthread_np.h>
^~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_4395c.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_4395c/fast] Error 2
Determining if the include file sys/sysmacros.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_78b1b/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_78b1b.dir/build.make CMakeFiles/cmTC_78b1b.dir/build
Building C object CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'sys/sysmacros.h' file not found
#include <sys/sysmacros.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_78b1b.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_78b1b/fast] Error 2
Determining if the include file linux/memfd.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_5cf37/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_5cf37.dir/build.make CMakeFiles/cmTC_5cf37.dir/build
Building C object CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/memfd.h' file not found
#include <linux/memfd.h>
^~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_5cf37.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_5cf37/fast] Error 2
Determining if the include file linux/fs.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_f0bc1/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_f0bc1.dir/build.make CMakeFiles/cmTC_f0bc1.dir/build
Building C object CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'linux/fs.h' file not found
#include <linux/fs.h>
^~~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_f0bc1.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_f0bc1/fast] Error 2
Determining if the include file stropts.h exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_bda79/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_bda79.dir/build.make CMakeFiles/cmTC_bda79.dir/build
Building C object CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'stropts.h' file not found
#include <stropts.h>
^~~~~~~~~~~
1 error generated.
make[1]: *** [CMakeFiles/cmTC_bda79.dir/CheckIncludeFile.c.o] Error 1
make: *** [cmTC_bda79/fast] Error 2
Determining if the function _aligned_malloc exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_1a6d5/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_1a6d5.dir/build.make CMakeFiles/cmTC_1a6d5.dir/build
Building C object CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=_aligned_malloc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_1a6d5
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1a6d5.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=_aligned_malloc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_1a6d5.dir/CheckFunctionExists.c.o -o cmTC_1a6d5
Undefined symbols for architecture x86_64:
"__aligned_malloc", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_1a6d5] Error 1
make: *** [cmTC_1a6d5/fast] Error 2
Determining if the function IsDebuggerPresent exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_2d51e/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_2d51e.dir/build.make CMakeFiles/cmTC_2d51e.dir/build
Building C object CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=IsDebuggerPresent -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_2d51e
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2d51e.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=IsDebuggerPresent -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_2d51e.dir/CheckFunctionExists.c.o -o cmTC_2d51e
Undefined symbols for architecture x86_64:
"_IsDebuggerPresent", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_2d51e] Error 1
make: *** [cmTC_2d51e/fast] Error 2
Determining if the function malloc_trim exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_74ecf/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_74ecf.dir/build.make CMakeFiles/cmTC_74ecf.dir/build
Building C object CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=malloc_trim -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_74ecf
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_74ecf.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=malloc_trim -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_74ecf.dir/CheckFunctionExists.c.o -o cmTC_74ecf
Undefined symbols for architecture x86_64:
"_malloc_trim", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_74ecf] Error 1
make: *** [cmTC_74ecf/fast] Error 2
Determining if the function alloca exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_323b0/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_323b0.dir/build.make CMakeFiles/cmTC_323b0.dir/build
Building C object CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=alloca -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c:7:3: warning: incompatible redeclaration of library function 'alloca' [-Wincompatible-library-redeclaration]
CHECK_FUNCTION_EXISTS(void);
^
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS alloca
^
/usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c:7:3: note: 'alloca' is a builtin with type 'void *(unsigned long)'
<command line>:1:31: note: expanded from here
#define CHECK_FUNCTION_EXISTS alloca
^
1 warning generated.
Linking C executable cmTC_323b0
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_323b0.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=alloca -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_323b0.dir/CheckFunctionExists.c.o -o cmTC_323b0
Undefined symbols for architecture x86_64:
"_alloca", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_323b0] Error 1
make: *** [cmTC_323b0/fast] Error 2
Determining if the function strverscmp exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_996a4/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_996a4.dir/build.make CMakeFiles/cmTC_996a4.dir/build
Building C object CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=strverscmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_996a4
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_996a4.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=strverscmp -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_996a4.dir/CheckFunctionExists.c.o -o cmTC_996a4
Undefined symbols for architecture x86_64:
"_strverscmp", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_996a4] Error 1
make: *** [cmTC_996a4/fast] Error 2
Determining if the function random_r exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_6a754/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_6a754.dir/build.make CMakeFiles/cmTC_6a754.dir/build
Building C object CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=random_r -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_6a754
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6a754.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=random_r -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_6a754.dir/CheckFunctionExists.c.o -o cmTC_6a754
Undefined symbols for architecture x86_64:
"_random_r", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_6a754] Error 1
make: *** [cmTC_6a754/fast] Error 2
Determining if the function get_process_stats exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_93e30/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_93e30.dir/build.make CMakeFiles/cmTC_93e30.dir/build
Building C object CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=get_process_stats -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_93e30
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_93e30.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=get_process_stats -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_93e30.dir/CheckFunctionExists.c.o -o cmTC_93e30
Undefined symbols for architecture x86_64:
"_get_process_stats", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_93e30] Error 1
make: *** [cmTC_93e30/fast] Error 2
Determining if the function posix_fallocate exists failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_516a9/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_516a9.dir/build.make CMakeFiles/cmTC_516a9.dir/build
Building C object CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=posix_fallocate -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -MF CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o.d -o CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.23.3/share/cmake/Modules/CheckFunctionExists.c
Linking C executable cmTC_516a9
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_516a9.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -DCHECK_FUNCTION_EXISTS=posix_fallocate -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_516a9.dir/CheckFunctionExists.c.o -o cmTC_516a9
Undefined symbols for architecture x86_64:
"_posix_fallocate", referenced from:
_main in CheckFunctionExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_516a9] Error 1
make: *** [cmTC_516a9/fast] Error 2
Performing C SOURCE FILE Test HAVE_STRUCT_STAT_ST_MTIM_value failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_03783/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_03783.dir/build.make CMakeFiles/cmTC_03783.dir/build
Building C object CMakeFiles/cmTC_03783.dir/src.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -DHAVE_STRUCT_STAT_ST_MTIM_value -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_03783.dir/src.c.o -MF CMakeFiles/cmTC_03783.dir/src.c.o.d -o CMakeFiles/cmTC_03783.dir/src.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c
/Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/src.c:6:36: error: no member named 'st_mtim' in 'struct stat'
(void)sizeof(((struct stat *)0)->st_mtim);
~~~~~~~~~~~~~~~~~~ ^
1 error generated.
make[1]: *** [CMakeFiles/cmTC_03783.dir/src.c.o] Error 1
make: *** [cmTC_03783/fast] Error 2
Source file was:
#include <sys/stat.h>
int main()
{
(void)sizeof(((struct stat *)0)->st_mtim);
return 0;
}
Determining if the ESCDELAY exist failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_d422e/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_d422e.dir/build.make CMakeFiles/cmTC_d422e.dir/build
Building C object CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_d422e
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d422e.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_d422e.dir/CheckSymbolExists.c.o -o cmTC_d422e
Undefined symbols for architecture x86_64:
"_ESCDELAY", referenced from:
_main in CheckSymbolExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_d422e] Error 1
make: *** [cmTC_d422e/fast] Error 2
File /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/ncurses.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef ESCDELAY
return ((int*)(&ESCDELAY))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the resizeterm exist failed with the following output:
Change Dir: /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make -f Makefile cmTC_d88f6/fast && /Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_d88f6.dir/build.make CMakeFiles/cmTC_d88f6.dir/build
Building C object CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIE -std=gnu99 -MD -MT CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -MF CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o.d -o CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -c /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_d88f6
/usr/local/Cellar/cmake/3.23.3/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d88f6.dir/link.txt --verbose=1
/Library/Developer/CommandLineTools/usr/bin/cc -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 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/usr/local/opt/openresty-openssl111/lib CMakeFiles/cmTC_d88f6.dir/CheckSymbolExists.c.o -o cmTC_d88f6
Undefined symbols for architecture x86_64:
"_resizeterm", referenced from:
_main in CheckSymbolExists.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTC_d88f6] Error 1
make: *** [cmTC_d88f6/fast] Error 2
File /Users/username/Codes/github/PurC/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/ncurses.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef resizeterm
return ((int*)(&resizeterm))[argc];
#else
(void)argc;
return 0;
#endif
}
Firstly, thank you for your great work in HVML.
Secondly, I meet exception when I follow this article:
I copy this hello world source code:
$STREAM.stdout.writelines('Hello, world!')
<body>
<h1 style="color:red;text-align:center">Hello, World!</h1>
<p>This paragraph is generated by HVML, and it is in HTML.</p>
<!-- 新添加的代码如下。-->
<test with $L.streq('caseless', $RDR.state.comm, 'socket') >
<observe on $CRTN for 'rdrState:pageClosed'>
<exit with "User Closed" />
</observe>
</test>
</body>
and run it by:
$ purc -c socket hello.hvml
the output of xGUIPro is the same with the screenshot in "在 HVML 程序中嵌入 Python" article.
It is OK.
But when I try Find Primes HVML program (the file name I gave is embed-python-find-primes.hvml ):
$ purc -c socket embed-python-find-primes.hvml
the xGUIPro flash quickly and then exit.
I can not see the content of the output page in the Tailored WebKit which I compiled by myself.
When I run it by:
$ purc -c thread embed-python-find-primes.hvml
there is blank output by Foil.
the DEBUG messages of Tailored WebKit are:
DEBUG >> webkit_web_extension_initialize_with_user_data: got desired user data: HVML
DEBUG >> web_page_created_callback: Page 8 created for (null)
DEBUG >> web_page_created_callback: Script world: 0x1232e70
DEBUG >> window_object_cleared_callback: window_object_cleared_callback called: uri (hvml://localhost/default)
DEBUG >> window_object_cleared_callback: Failed to split HVML URI: hvml://localhost/default
DEBUG >> webkit_web_extension_initialize_with_user_data: got desired user data: HVML
DEBUG >> web_page_created_callback: Page 18 created for (null)
DEBUG >> web_page_created_callback: Script world: 0x1074c70
DEBUG >> window_object_cleared_callback: window_object_cleared_callback called: uri (hvml://localhost/cn.fmsoft.hvml.purc/main/-/page-0?irId=REQXXXXX-00000000642F05F0-00000000122DC4CC-0000000000000001)
DEBUG >> document_loaded_callback: uri: hvml://localhost/cn.fmsoft.hvml.purc/main/-/page-0?irId=REQXXXXX-00000000642F05F0-00000000122DC4CC-0000000000000001
DEBUG >> document_loaded_callback: injecting hvml.js to page (0x1009420)
DEBUG >> hvml_set_property: set HVML.onrequest with a value (0x7f1f04016c80)
DEBUG >> hvml_set_property: value (0x7f1f04016c80) is a function
DEBUG >> document_loaded_callback: result of injected script: ((null))
DEBUG >> user_message_received_callback: Got a message with name (request)
DEBUG >> document_loaded_callback: hvml.js injected
DEBUG >> user_message_received_callback: result of onrequest: ({"requestId":"REQXXXXX-00000000642F05F0-000000001B53B0BB-0000000000000002","state":"Ok"})
Please help me to solve this problem. Thank you!
安装方式
# git clone purc
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Linux -B build && cmake --build build && sudo cmake --install build
执行
purc
purc: error while loading shared libraries: libpurc.so.0: cannot open shared object file: No such file or directory
ldd /usr/local/bin/purc
linux-vdso.so.1 (0x00007fffce0ff000)
libpurc.so.0 => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2a7de08000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2a7e05d000)
ls -l /usr/local/lib/libpurc*
lrwxrwxrwx 1 root root 12 9月 26 22:26 /usr/local/lib/libpurc.so -> libpurc.so.0
lrwxrwxrwx 1 root root 16 9月 26 22:26 /usr/local/lib/libpurc.so.0 -> libpurc.so.0.8.2
-rw-r--r-- 1 root root 35127256 9月 26 22:22 /usr/local/lib/libpurc.so.0.8.2
这可执行文件正常 不过动态库是指向编译目录下的
./build/Source/Executables/purc/purc --version # purc 0.8.2
不知道哪里影响最终的可执行文件
[ 81%] Building C object Source/PurC/CMakeFiles/PurC.dir///DerivedSources/PurC/purc-error-except.c.o
[ 81%] Linking CXX shared library libpurc.so
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o: in function .L0 ': /home/atzlinux/HVML-PurC/Source/WTF/wtf/Assertions.cpp:339: undefined reference to
__atomic_compare_exchange_1'
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o: in function WTFReportError': /home/atzlinux/HVML-PurC/Source/WTF/wtf/Assertions.cpp:349: undefined reference to
__atomic_compare_exchange_1'
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o: in function PurCWTF::String::append(char)': /home/atzlinux/HVML-PurC/Source/WTF/wtf/text/WTFString.h:229: undefined reference to
__atomic_compare_exchange_1'
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o: in function .L0 ': /usr/include/riscv64-linux-gnu/c++/12/bits/gthr-default.h:700: undefined reference to
__atomic_compare_exchange_1'
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o: in function .L0 ': /home/atzlinux/HVML-PurC/Source/WTF/wtf/Assertions.cpp:127: undefined reference to
__atomic_compare_exchange_1'
/usr/bin/ld: ../WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o:/usr/include/riscv64-linux-gnu/c++/12/bits/gthr-default.h:702: more undefined references to `__atomic_compare_exchange_1' follow
collect2: error: ld returned 1 exit status
gmake[2]: *** [Source/PurC/CMakeFiles/PurC.dir/build.make:6289:Source/PurC/libpurc.so.0.8.0] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:941:Source/PurC/CMakeFiles/PurC.dir/all] 错误 2
gmake: *** [Makefile:156:all] 错误 2
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
cmake version 3.23.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Mac -B build && cmake --build build && sudo cmake --install build
[ 73%] Building C object Source/PurC/CMakeFiles/PurC.dir/utils/rbtree.c.o
[ 74%] Building C object Source/PurC/CMakeFiles/PurC.dir/utils/real.c.o
/workspace/PurC/Source/PurC/utils/real.c:775:1: error: '_dummy_f128' declared as an array with a negative size
_COMPILE_TIME_ASSERT(f128, sizeof(long double) == sizeof(uint64_t) * 2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/PurC/Source/PurC/utils/real.c:774:36: note: expanded from macro '_COMPILE_TIME_ASSERT'
typedef int dummy ## name[(x) * 2 - 1]
^~~~~~~~~~~
1 error generated.
make[2]: *** [Source/PurC/CMakeFiles/PurC.dir/utils/real.c.o] Error 1
make[1]: *** [Source/PurC/CMakeFiles/PurC.dir/all] Error 2
make: *** [all] Error 2
i hope the statement is simple like observe 'some event' on timer_id
to make the expression more natural
purc 0.8.1
Copyright (C) 2022 FMSoft Technologies.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Failed to load HVML from file:///home/x/文档/HVML/hello.hvml: Bad system call
@localhost/cn.fmsoft.hvml.instmgr/main DEBUG >> InstMgr is quiting, 0 messages discarded
去掉中文 Remove Chinese
purc 0.8.1
Copyright (C) 2022 FMSoft Technologies.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Executing HVML program from `file:///home/x/HVML/hello.hvml`...
Hello, world!
The main coroutine exited.
>> The document generated:
>> The executed result:
14
@localhost/cn.fmsoft.hvml.instmgr/main DEBUG >> InstMgr is quiting, 0 messages discarded
Purc不支持含有中文的路径 Purc does not support path which contains Chinese
建议搞个json,如{“language”:[“en”,“zh”,……],“keywords”:[[“init”,“初始化”,……],[“as”,“作”,……],[“on”,“在”,……]……},编辑器用此json将HVML搞成母语编程,机器用英语版,用户用母语版,就有可能帮助业余用户零基础拿来即用!
本产品“任意精度计算器”的设计目标:
为了体现HVML本身的特点,本产品的设计宗旨如下:
为了达到基本的实用性,本计算器需必须要实现的功能:
本产品的界面应包含以下几个功能区块:
按照惯例,最终结果显示区应在界面的最上方,下方紧接着输入区。状态区可以处于最下方,亦可放置在显示区与输入区之间。
本产品的名称可以显示在程序的标题栏等地方,要求能够明显的被看到,但是总体显示尺寸不得大于某个功能区块的大小,以防喧宾夺主。
其他空白部位可以放置一些背景或者文字,要求实现此种放置的代码不能够太复杂以免影响代码阅读。
因为是任意精度计算器,需要一个进度条用来表示当前显示的位置。下方有一个显示框用来显示数字。显示字体要求较大 (18pt以上)。
当显示结果未超出显示范围时,进度条为锁定状态,无法使用鼠标或者热键进行操作。
当显示结果超出显示范围时,进度条需要激活。进度条可以使用鼠标进行拖动,或者使用进度条默认绑定的热键进行操作。通过操作进度条,能够使用户看到结果所有的片段,不得有死区。
输入区主要为按钮,包含数字键,运算键和功能键。
数字键和小数点的排列要求与小键盘排列基本相似;且数字键和加减乘除回车要与小键盘的按键进行热键绑定,以方便输入数字。
按下任意数字键和符号键进入输入过程,结果显示在显示区。
按下运算键,则当前运算被设置为按键代表的运算。如当前已有在记录的运算,则将当前缓存(历史)中的数据现有的运算操作进行运算并把结果显示在显示区,以替代之前的数字。同时将被取代的数字和运算写入历史。
按下回车则以当前记录的运算操作进行运算;如无运算符则设置 加法 为当前运算操作。
功能键-复制:将当前选中的数字以字符串的形式复制到剪贴板中。
功能键-黏贴:试图将粘贴板内容以数字的形式读取进来。
状态区主要是数字和运算操作的历史记录。右边有一个进度条可供翻页,当历史记录较多时。
单击状态条的某个条目,会将选中的数字覆盖当前记录的数字,选中运算操作历史时无动作。当前显示区的数字被替换时,当前显示区的数字需要被记录为历史记录,处在最新的状态,可以影响进度条长短但是当前状态去显示不得翻页。
MySQL 包需要用户自行编译,mariadb 可以从官方仓库获取能减少用户处理依赖关系难度。
https://wiki.archlinuxcn.org/wiki/MariaDB
MariaDB 是一个可靠的、高性能的、功能全面的数据库,旨在为用户提供长期免费、向下兼容能直接替代MySQL的数据库服务。自2013年起,MariaDB就被Arch Linux当作官方默认的MySQL实现[1]。
[evil]$uname -a
Darwin host 17.7.0 Darwin Kernel Version 17.7.0: Wed Feb 27 00:43:23 PST 2019; root:xnu-4570.71.35~1/RELEASE_X86_64 x86_64
[evil]$gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Found CUDA installation: /usr/local/cuda, version unknown
make -j8
[ 0%] Built target ScriptToRunSamples
[ 0%] Built target VALGRIND_Suppressions
[ 2%] Building CXX object Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 3%] Built target TEST_Script
[ 4%] Built target SampleHVMLFiles
[ 35%] Built target WTF_CopyHeaders
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/NumberOfCores.cpp.o
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/OSRandomSource.cpp.o
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/MonotonicTime.cpp.o
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/OSLogPrintStream.cpp.o
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ObjectIdentifier.cpp.o
[ 35%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/Lock.cpp.o
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/MetaAllocator.cpp.o
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:38:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest.h:64:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-death-test.h:41:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h:39:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:44:
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:253:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not
defined, evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_STRING_VIEW
^
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:581:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not
defined, evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_STRING_VIEW
^
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:701:5: error: 'GTEST_INTERNAL_HAS_ANY' is not defined,
evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_ANY
^
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:729:5: error: 'GTEST_INTERNAL_HAS_OPTIONAL' is not defined,
evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_OPTIONAL
^
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-printers.h:749:5: error: 'GTEST_INTERNAL_HAS_VARIANT' is not defined,
evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_VARIANT
^
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/PageBlock.cpp.o
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:38:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest.h:64:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-death-test.h:41:
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h:39:
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:555:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not
defined, evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_STRING_VIEW
^
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/include/gtest/gtest-matchers.h:801:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not
defined, evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_STRING_VIEW
^
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParallelHelperPool.cpp.o
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParallelJobsGeneric.cpp.o
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:45:9: error: unknown type name 'Locker'; did you mean 'Lock'?
Locker locker(m_lock);
^~~~~~
Lock
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here
class Lock {
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:62:9: error: unknown type name 'Locker'; did you mean 'Lock'?
Locker locker(m_lock);
^~~~~~
Lock
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here
class Lock {
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:101:9: error: unknown type name 'Locker'; did you mean 'Lock'?
Locker locker(m_lock);
^~~~~~
Lock
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here
class Lock {
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:112:9: error: unknown type name 'Locker'; did you mean 'Lock'?
Locker locker(m_lock);
^~~~~~
Lock
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here
class Lock {
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:119:9: error: unknown type name 'Locker'; did you mean 'Lock'?
Locker locker(m_lock);
^~~~~~
Lock
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:50:7: note: 'Lock' declared here
class Lock {
^
In file included from /Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-all.cc:44:
/Users/evil/dev/c/PurC/Source/ThirdParty/gtest/googletest/src/gtest-matchers.cc:61:5: error: 'GTEST_INTERNAL_HAS_STRING_VIEW' is not defined,
evaluates to 0 [-Werror,-Wundef]
#if GTEST_INTERNAL_HAS_STRING_VIEW
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:45:16: error: call to deleted constructor of 'PurCWTF::Lock'
Locker locker(m_lock);
^ ~~~~~~
/Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:54:19: note: in instantiation of member function 'PurCWTF::Spectrum<PurCWTF::StackShot,
double>::add' requested here
m_profile.add(StackShot(m_numFrames + m_framesToSkip));
^
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:51:26: note: 'Lock' has been explicitly marked deleted here
WTF_MAKE_NONCOPYABLE(Lock);
^
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.cpp:30:
In file included from /Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:31:
/Users/evil/dev/c/PurC/Source/WTF/wtf/Spectrum.h:101:16: error: call to deleted constructor of 'PurCWTF::Lock'
Locker locker(m_lock);
^ ~~~~~~
/Users/evil/dev/c/PurC/Source/WTF/wtf/StackShotProfiler.h:64:35: note: in instantiation of member function 'PurCWTF::Spectrum<PurCWTF::StackShot,
double>::buildList' requested here
auto list = m_profile.buildList();
^
/Users/evil/dev/c/PurC/Source/WTF/wtf/Lock.h:51:26: note: 'Lock' has been explicitly marked deleted here
WTF_MAKE_NONCOPYABLE(Lock);
^
7 errors generated.
make[2]: *** [Source/WTF/wtf/CMakeFiles/WTF.dir/Lock.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 36%] Building CXX object Source/WTF/wtf/CMakeFiles/WTF.dir/PrintStream.cpp.o
8 errors generated.
make[2]: *** [Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o] Error 1
make[1]: *** [Source/ThirdParty/gtest/googletest/CMakeFiles/gtest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Source/WTF/wtf/CMakeFiles/WTF.dir/all] Error 2
make: *** [all] Error 2
cmake version 3.18.4
GLIBC 2.33-8
gcc version 10.2.1 20210110 (Debian 10.2.1-6)
[ 67%] Building C object Source/PurC/CMakeFiles/PurC.dir/instance/move-buffer.c.o /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c: In function ‘do_move_message’: /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:334:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 334 | if (msg->variants[i]) | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:335:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 335 | msg->variants[i] = pcvariant_move_heap_in(msg->variants[i]); | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c: In function ‘pcinst_put_message’: /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:167:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 167 | if (msg->variants[i]) | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c: In function ‘purc_inst_destroy_move_buffer’: /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:257:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 257 | if (msg->variants[i]) | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c: In function ‘purc_inst_take_away_message’: /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:352:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 352 | if (msg->variants[i]) | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:353:30: error: array subscript 5 is outside the bounds of an interior zero-length array ‘struct purc_variant *[0]’ {aka ‘struct purc_variant *[]’} [-Werror=zero-length-bounds] 353 | msg->variants[i] = pcvariant_move_heap_out(msg->variants[i]); | ~~~~~~~~~~~~~^~~ In file included from /home/atzlinux/devel/HVML-PurC/Source/PurC/instance/move-buffer.c:28: /home/atzlinux/devel/HVML-PurC/Source/PurC/include/purc-pcrdr.h:680:21: note: while referencing ‘variants’ 680 | purc_variant_t variants[0]; | ^~~~~~~~ cc1: all warnings being treated as errors gmake[2]: *** [Source/PurC/CMakeFiles/PurC.dir/build.make:3537:Source/PurC/CMakeFiles/PurC.dir/instance/move-buffer.c.o] 错误 1 gmake[1]: *** [CMakeFiles/Makefile2:1093:Source/PurC/CMakeFiles/PurC.dir/all] 错误 2 gmake: *** [Makefile:171:all] 错误 2
The problem comes like this:
In file included from /home/hrpccs/PurC/PurC/Source/WTF/wtf/AutomaticThread.cpp:26:
/home/hrpccs/PurC/PurC/Source/WTF/config.h:23:10: fatal error: cmakeconfig.h: No such file or directory
23 | #include "cmakeconfig.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
I found cmakeconfig.h generated in build/, but not included by config.h in several subdirs in Source/ like Source/WTF/config.h and Source/PurC/config.h
I don't kown whether the version of my cmake is not fit
$ cmake --version
cmake version 3.23.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Platform : (Ubuntu 20.04 in WSL2)
$ uname -a
Linux DESKTOP-CDET219 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I have sloved this problem easily by copy build/cmakeconfig.h to the subdir that miss cmakeconfig.h
PurC/build$ cp cmakeconfig.h ../Source/WTF/
PurC/build$ cp cmakeconfig.h ../Source/PurC/
in openeuler environment build PurC with command:
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Linux -B build && cmake --build build && sudo cmake --install build
[xilong-tongji@tongji-openeuler PurC]$ uname -a
Linux tongji-openeuler 4.19.90-2012.4.0.0053.oe1.aarch64 #1 SMP Mon Dec 21 14:33:58 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
-- Using platform-specific CMakeLists: /home/xilong-tongji/PurC/Source/ExtDVObjs/fs/PlatformLinux.cmake
-- Platform-specific CMakeLists not found: /home/xilong-tongji/PurC/Source/ExtDVObjs/math/PlatformLinux.cmake
-- Found Python: /home/xilong-tongji/archiconda3/bin/python3.7 (found version "3.7.1") found components: Interpreter
-- Platform-specific CMakeLists not found: /home/xilong-tongji/PurC/Source/PlatformLinux.cmake
-- Enabled features:
-- ENABLE_API_TESTS ....... ON
-- ENABLE_HIBUS OFF
-- ENABLE_HTML ............ ON
-- ENABLE_ICU OFF
-- ENABLE_MQTT ............ ON
-- ENABLE_REMOTE_FETCHER ON
-- ENABLE_RENDERER_HIBUS .. ON
-- ENABLE_RENDERER_PURCMC ON
-- ENABLE_RENDERER_THREAD . ON
-- ENABLE_SOCKET_STREAM OFF
-- ENABLE_SSL ............. ON
-- ENABLE_WEB_SOCKET ON
-- ENABLE_XGML ............ ON
-- ENABLE_XML OFF
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLIB_GIO_LIBRARIES (ADVANCED)
linked by target "WTF" in directory /home/xilong-tongji/PurC/Source/WTF/wtf
linked by target "PurC" in directory /home/xilong-tongji/PurC/Source/PurC
GLIB_GMODULE_LIBRARIES (ADVANCED)
linked by target "PurC" in directory /home/xilong-tongji/PurC/Source/PurC
GLIB_GOBJECT_LIBRARIES (ADVANCED)
linked by target "WTF" in directory /home/xilong-tongji/PurC/Source/WTF/wtf
linked by target "PurC" in directory /home/xilong-tongji/PurC/Source/PurC
GLIB_LIBRARIES (ADVANCED)
linked by target "WTF" in directory /home/xilong-tongji/PurC/Source/WTF/wtf
linked by target "PurC" in directory /home/xilong-tongji/PurC/Source/PurC
linked by target "test_utils" in directory /home/xilong-tongji/PurC/Source/test/utils
-- Configuring incomplete, errors occurred!
See also "/home/xilong-tongji/PurC/build/CMakeFiles/CMakeOutput.log".
See also "/home/xilong-tongji/PurC/build/CMakeFiles/CMakeError.log".
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The CMake build type is: Release
-- Enabling ccache: Couldn't find ccache program. Not enabling it.
CMake Error at Source/cmake/PurCFeatures.cmake:21 (message):
ENABLE_3D_TRANSFORMS is not a valid PurC option
Call Stack (most recent call first):
Source/cmake/PurCFeatures.cmake:40 (_ENSURE_IS_PURC_OPTION)
Source/cmake/OptionsWin.cmake:20 (PURC_OPTION_DEFAULT_PORT_VALUE)
Source/cmake/OptionsWindows.cmake:3 (include)
Source/cmake/PurCCommon.cmake:48 (include)
CMakeLists.txt:138 (include)
-- Configuring incomplete, errors occurred!
See also "D:/SexCLs/PurC/CMakeFiles/CMakeOutput.log".
See also "D:/SexCLs/PurC/CMakeFiles/CMakeError.log".
ENABLE_3D_TRANSFORMS is not a valid PurC option
Hi, i installed purc using this command:
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPORT=Linux -B build && cmake --build build && sudo cmake --install build
And did as readme said:
But i got no more message but this:
Additionally, i try to run hello world demo as readme described:
But i got two message printing:
Is there something i missed?
该变量的接口描述如下:
https://github.com/HVML/hvml-docs/blob/master/zh/hvml-spec-predefined-variables-v1.0-zh.md#313-sock
要求实现相应的接口以及对应的单元测试。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.