Closed ligitsu closed 7 months ago
I don't know anything Arch specific, but it's whatever standard package of C++ based build tools.
You can probably use Docker with a Debian or Ubuntu image so that these distro-specific differences are not a problem.
Over the long weekend here I might get around to making an .appimage build for Linux.
Thanks!
you just need install base-devel, it's the equivalent to arch Btw I use Arch
@GustavoJCL Would you mind providing build instructions for Arch users as a PR?
yes, of course, I'm also thinking in making a package for Arch in aur
I tried to make a aur package of awrit for ArchLinux, but seems Arch use -02 optimization level for PKGBUILD in the build enviroment https://wiki.archlinux.org/title/CMake_package_guidelines, what optimization level use awrit? I tried to use -DCMAKE_BUILD_TYPE=None but still failed to compile
-- Build files have been written to: /media/gus/proyectos/awrit/src/awrit/build
[1/1] Linking CXX executable awrit/None/awrit
FAILED: awrit/None/awrit
: && /usr/bin/c++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTI
FY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-
map=/media/gus/proyectos/awrit/src=/usr/src/debug/awrit-git -flto=auto -Wl,-O1 -Wl,--sort-common -W
l,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -fPIC -pthr
ead -Wl,--disable-new-dtags -Wl,--fatal-warnings -Wl,-rpath,. -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,
relro -m64 awrit/CMakeFiles/awrit.dir/main.cc.o awrit/CMakeFiles/awrit.dir/input_event_handler.cc.o
awrit/CMakeFiles/awrit.dir/awrit.cc.o awrit/CMakeFiles/awrit.dir/tui.cc.o -o awrit/None/awrit -Wl
,-rpath,"\$ORIGIN" _deps/cef_src-src/Release/libcef.so libcef_dll_wrapper/libcef_dll_wrapper.a -
lX11 awrit/string/libstring.a awrit/tty/libtty.a third_party/libplatform_folders.a awrit/string
/libstring.a third_party/libutf8_decode.a third_party/libmodp_b64.a && cd /media/gus/proyectos/aw
rit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyectos/awrit/src/awr
it/build/_deps/cef_src-src/None/chrome-sandbox /media/gus/proyectos/awrit/src/awrit/build/awrit/Non
e/chrome-sandbox && cd /media/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_i
f_different /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/None/libcef.so /media/gus/
proyectos/awrit/src/awrit/build/awrit/None/libcef.so && cd /media/gus/proyectos/awrit/src/awrit/bui
ld/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/ce
f_src-src/None/libEGL.so /media/gus/proyectos/awrit/src/awrit/build/awrit/None/libEGL.so && cd /med
ia/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proy
ectos/awrit/src/awrit/build/_deps/cef_src-src/None/libGLESv2.so /media/gus/proyectos/awrit/src/awri
t/build/awrit/None/libGLESv2.so && cd /media/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/
cmake -E copy_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/None/libvk_
swiftshader.so /media/gus/proyectos/awrit/src/awrit/build/awrit/None/libvk_swiftshader.so && cd /me
dia/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/pro
yectos/awrit/src/awrit/build/_deps/cef_src-src/None/libvulkan.so.1 /media/gus/proyectos/awrit/src/a
writ/build/awrit/None/libvulkan.so.1 && cd /media/gus/proyectos/awrit/src/awrit/build/awrit && /usr
/bin/cmake -E copy_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/None/s
napshot_blob.bin /media/gus/proyectos/awrit/src/awrit/build/awrit/None/snapshot_blob.bin && cd /med
ia/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proy
ectos/awrit/src/awrit/build/_deps/cef_src-src/None/v8_context_snapshot.bin /media/gus/proyectos/awr
it/src/awrit/build/awrit/None/v8_context_snapshot.bin && cd /media/gus/proyectos/awrit/src/awrit/bu
ild/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/c
ef_src-src/None/vk_swiftshader_icd.json /media/gus/proyectos/awrit/src/awrit/build/awrit/None/vk_sw
iftshader_icd.json && cd /media/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy
_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/Resources/chrome_100_per
cent.pak /media/gus/proyectos/awrit/src/awrit/build/awrit/None/chrome_100_percent.pak && cd /media/
gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyect
os/awrit/src/awrit/build/_deps/cef_src-src/Resources/chrome_200_percent.pak /media/gus/proyectos/aw
rit/src/awrit/build/awrit/None/chrome_200_percent.pak && cd /media/gus/proyectos/awrit/src/awrit/bu
ild/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyectos/awrit/src/awrit/build/_deps/c
ef_src-src/Resources/resources.pak /media/gus/proyectos/awrit/src/awrit/build/awrit/None/resources.
pak && cd /media/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /
media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/Resources/icudtl.dat /media/gus/proyect
os/awrit/src/awrit/build/awrit/None/icudtl.dat && cd /media/gus/proyectos/awrit/src/awrit/build/awr
it && /usr/bin/cmake -E copy_directory /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src
/Resources/locales /media/gus/proyectos/awrit/src/awrit/build/awrit/None/locales && cd /media/gus/p
royectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E copy_if_different /media/gus/proyectos/aw
rit/src/awrit/LICENSE.txt /media/gus/proyectos/awrit/src/awrit/build/awrit/None/LICENSE.txt && cd /
media/gus/proyectos/awrit/src/awrit/build/awrit && /usr/bin/cmake -E echo "" && /usr/bin/cmake -E e
cho "*** Run the following command manually to set SUID permissions ***" && /usr/bin/cmake -E echo
"EXE=\"/media/gus/proyectos/awrit/src/awrit/build/awrit/None/chrome-sandbox\" && sudo -- chown root
:root \$EXE && sudo -- chmod 4755 \$EXE" && /usr/bin/cmake -E echo ""
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/print_settings_ctocpp.cc:
In member function ‘GetPageRanges’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/print_settings_ctocpp.cc:2
55:45: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 922337203685477
5807 [-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/browser_ctocpp.cc: In memb
er function ‘GetFrameIdentifiers’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/browser_ctocpp.cc:360:51:
warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-
Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/x509certificate_ctocpp.cc:
In member function ‘GetPEMEncodedIssuerChain’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/x509certificate_ctocpp.cc:
224:51: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 92233720368547
75807 [-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/print_settings_ctocpp.cc:
In member function ‘SetPageRanges’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/print_settings_ctocpp.cc:2
04:45: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 922337203685477
5807 [-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/v8value_ctocpp.cc: In memb
er function ‘ExecuteFunction’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/v8value_ctocpp.cc:1037:54:
warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [
-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/v8value_ctocpp.cc: In memb
er function ‘ExecuteFunctionWithContext’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/v8value_ctocpp.cc:1082:54:
warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [
-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/browser_host_ctocpp.cc: In
member function ‘ImeSetComposition’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/browser_host_ctocpp.cc:943
:69: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 92233720368547758
07 [-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/post_data_ctocpp.cc: In me
mber function ‘GetElements’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/post_data_ctocpp.cc:92:62:
warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [
-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/x509certificate_ctocpp.cc:
In member function ‘GetDEREncodedIssuerChain’:
/usr/src/debug/awrit-git/awrit/build/_deps/cef_src-src/libcef_dll/ctocpp/x509certificate_ctocpp.cc:
182:51: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 92233720368547
75807 [-Walloc-size-larger-than=]
/usr/include/c++/13.2.1/new:128:26: note: in a call to allocation function ‘operator new []’ declar
ed here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
Error copying file (if different) from "/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-sr
c/None/chrome-sandbox" to "/media/gus/proyectos/awrit/src/awrit/build/awrit/None/chrome-sandbox".
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
That build error seems unrelated to build flags:
Error copying file (if different) from "/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-sr c/None/chrome-sandbox" to "/media/gus/proyectos/awrit/src/awrit/build/awrit/None/chrome-sandbox".
The None
here seems to show that it is not built correctly, since it is neither a Debug nor Release build.
For AUR, please use the existing issue here: https://github.com/chase/awrit/issues/29
The readme says I need build-essential but its not in aur nor available via pacman. I am using arch