chase / awrit

A full graphical web browser for Kitty terminal with mouse and keyboard support
Other
431 stars 14 forks source link

can we get an aur package for arch linux? #29

Open ralyodio opened 7 months ago

ralyodio commented 7 months ago

https://aur.archlinux.org

chase commented 7 months ago

I don't use Arch linux, but if you'd be willing to contribute I'm sure other Arch users would appreciate that.

At some point, when I have time, I intend on add an AppImage for Linux users to avoid distro-related issues.

ralyodio commented 7 months ago

I don't know how to make an arch pacakge unfortunately. i'll see if i can find somone.

ther0ok1eboy commented 6 months ago

I really need it :D

CyanChanges commented 6 months ago

I don't know how to make an arch pacakge unfortunately. i'll see if i can find somone.

See https://wiki.archlinux.org/title/Creating_packages Just create a PKGBUILD and run makepkg

GustavoJCL commented 5 months ago

I use -DCMAKE_BUILD_TYPE=Debug instead of None, but i some compilation errors, what level of optimization uses Debug?

makepkg -si
==> Making package: awrit-git 0.1.0-1 (Sun Apr  7 11:19:04 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating awrit git repo...
==> Validating source files with sha256sums...
    awrit ... Skipped
==> Extracting sources...
  -> Creating working copy of awrit git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- Downloading index.json
-- Resolved CEF file cef_binary_120.1.10+g3ce3184+chromium-120.0.6099.129_linux64.tar.bz2 with sha 
886632f731ab0c0732d8f39ff46fe99dfd7461a3
-- Populating cef_src
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-subbu
ild
ninja: no work to do.
-- Populating googletest
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /media/gus/proyectos/awrit/src/awrit/build/_deps/googletest-su
bbuild
ninja: no work to do.
-- *** CEF CONFIGURATION SETTINGS ***
-- Generator:                    Ninja
-- Platform:                     Linux
-- Project architecture:         x86_64
-- Build type:                   Debug
-- Binary distribution root:     /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src
-- CEF sandbox:                  ON
-- Standard libraries:           X11
-- Compile defines:              __STDC_CONSTANT_MACROS;__STDC_FORMAT_MACROS;_FILE_OFFSET_BITS=64;C
EF_USE_SANDBOX
-- Compile defines (Debug):      
-- Compile defines (Release):    NDEBUG
-- C compile flags:              -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvis
ibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initialize
rs;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-Wno-deprecated-declarations;-m64;-march=x
86-64 -std=c99;-Wno-unused-local-typedefs
-- C compile flags (Debug):      -O0;-g 
-- C compile flags (Release):    -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOUR
CE;-D_FORTIFY_SOURCE=2 
-- C++ compile flags:            -fno-strict-aliasing;-fPIC;-fstack-protector;-funwind-tables;-fvis
ibility=hidden;--param=ssp-buffer-size=4;-pipe;-pthread;-Wall;-Werror;-Wno-missing-field-initialize
rs;-Wno-unused-parameter;-Wno-error=comment;-Wno-comment;-Wno-deprecated-declarations;-m64;-march=x
86-64 -fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fvisibility-inlines-hidden;-Wsign-compare;
-Wno-undefined-var-template;-Wno-literal-suffix;-Wno-narrowing;-Wno-attributes;-std=c++20
-- C++ compile flags (Debug):    -O0;-g 
-- C++ compile flags (Release):  -O2;-fdata-sections;-ffunction-sections;-fno-ident;-U_FORTIFY_SOUR
CE;-D_FORTIFY_SOURCE=2 
-- Exe link flags:               -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-r
path,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64 
-- Exe link flags (Debug):        
-- Exe link flags (Release):     -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections 
-- Shared link flags:            -fPIC;-pthread;-Wl,--disable-new-dtags;-Wl,--fatal-warnings;-Wl,-r
path,.;-Wl,-z,noexecstack;-Wl,-z,now;-Wl,-z,relro;-m64 
-- Shared link flags (Debug):     
-- Shared link flags (Release):  -Wl,-O1;-Wl,--as-needed;-Wl,--gc-sections 
-- CEF Binary files:             chrome-sandbox;libcef.so;libEGL.so;libGLESv2.so;libvk_swiftshader.
so;libvulkan.so.1;snapshot_blob.bin;v8_context_snapshot.bin;vk_swiftshader_icd.json
-- CEF Resource files:           chrome_100_percent.pak;chrome_200_percent.pak;resources.pak;icudtl
.dat;locales
-- Configuring done (2.3s)
-- Generating done (0.0s)
-- Build files have been written to: /media/gus/proyectos/awrit/src/awrit/build
[5/212] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.c
c.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.cc.o.d -o libcef_dll_wra
pper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock.cc.o -c /media/gus/proyectos/awrit/src/awrit/b
uild/_deps/cef_src-src/libcef_dll/base/cef_lock.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/cassert:43,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_logging.h:181,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_lock.h:43,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_lock.cc:9:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[6/212] Building CXX object libcef_dll_wrapper/C...s/libcef_dll_wrapper.dir/base/cef_lock_impl.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock_impl.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock_i
mpl.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock_impl.cc.o.d -o libc
ef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_lock_impl.cc.o -c /media/gus/proyectos/aw
rit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/cef_lock_impl.cc
In file included from /usr/include/unistd.h:25,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_build.h:99,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/int
ernal/cef_lock_impl.h:35,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_lock_impl.cc:5:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[7/212] Building CXX object libcef_dll_wrapper/C...les/libcef_dll_wrapper.dir/shutdown_checker.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checke
r.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o.d -o libcef_d
ll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/shutdown_checker.cc.o -c /media/gus/proyectos/awrit/sr
c/awrit/build/_deps/cef_src-src/libcef_dll/shutdown_checker.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/bits/atomic_base.h:35,
                 from /usr/include/c++/13.2.1/atomic:41,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/shutd
own_checker.cc:7:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[8/212] Building CXX object libcef_dll_wrapper/C...libcef_dll_wrapper.dir/base/cef_atomic_flag.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomic_flag.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomic
_flag.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomic_flag.cc.o.d -o 
libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_atomic_flag.cc.o -c /media/gus/proyec
tos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/cef_atomic_flag.cc
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/stdint.h:9,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_atomic_flag.h:44,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_atomic_flag.cc:5:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[9/212] Building CXX object libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.c
c.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.cc.o.d -o libcef_dll_wra
pper/CMakeFiles/libcef_dll_wrapper.dir/transfer_util.cc.o -c /media/gus/proyectos/awrit/src/awrit/b
uild/_deps/cef_src-src/libcef_dll/transfer_util.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/bits/requires_hosted.h:31,
                 from /usr/include/c++/13.2.1/map:60,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/trans
fer_util.h:9,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/trans
fer_util.cc:5:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[10/212] Building CXX object libcef_dll_wrapper/..._dll_wrapper.dir/base/cef_callback_internal.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_internal.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callba
ck_internal.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_interna
l.cc.o.d -o libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_internal.cc.o -c
 /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/cef_callback_internal
.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/utility:67,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_ref_counted.h:46,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/int
ernal/cef_callback_internal.h:40,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_callback_internal.cc:5:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[11/212] Building CXX object libcef_dll_wrapper/...f_dll_wrapper.dir/base/cef_callback_helpers.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_helpers.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callba
ck_helpers.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_helpers.
cc.o.d -o libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_callback_helpers.cc.o -c /m
edia/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/cef_callback_helpers.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/bits/atomic_base.h:35,
                 from /usr/include/c++/13.2.1/atomic:41,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_callback_helpers.h:48,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_callback_helpers.cc:5:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[12/212] Building CXX object libcef_dll_wrapper/...les/libcef_dll_wrapper.dir/base/cef_logging.cc.
FAILED: libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_logging.cc.o 
/usr/bin/c++ -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACRO
S -D__STDC_FORMAT_MACROS -I/media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src -march=x86-
64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=
format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -m
no-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/media/gus/proyectos/awri
t/src=/usr/src/debug/awrit-git -flto=auto -g -std=gnu++20 -fno-strict-aliasing -fPIC -fstack-protec
tor -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno
-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-d
eclarations -m64 -march=x86-64 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlin
es-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing 
-Wno-attributes -O0 -g -MD -MT libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_loggin
g.cc.o -MF libcef_dll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_logging.cc.o.d -o libcef_d
ll_wrapper/CMakeFiles/libcef_dll_wrapper.dir/base/cef_logging.cc.o -c /media/gus/proyectos/awrit/sr
c/awrit/build/_deps/cef_src-src/libcef_dll/base/cef_logging.cc
In file included from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++config.h:679,
                 from /usr/include/c++/13.2.1/cassert:43,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/include/base/cef
_logging.h:181,
                 from /media/gus/proyectos/awrit/src/awrit/build/_deps/cef_src-src/libcef_dll/base/
cef_logging.cc:6:
/usr/include/features.h:414:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intende
d to silence earlier diagnostics
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
GustavoJCL commented 5 months ago

btw this the content of the PKGBUILD:

pkgname=awrit-git
pkgver=0.1.0
pkgrel=1
pkgdesc="A full graphical web browser for Kitty terminal with mouse and keyboard support "
arch=(x86_64 i686 arm64)
url="https://github.com/chase/awrit"
license=(MIT)
depends=(kitty)
makedepends=(git cmake ninja pkg-config)
source=("git+https://github.com/chase/awrit.git")
sha256sums=('SKIP')

build() {
  cd "$srcdir/awrit"

  cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -S . -B build
  cmake --build build -j$(nproc)
}

package() {
  cd "$srcdir/awrit"
  cmake --install build --prefix /usr/local
}
chase commented 5 months ago

You can see in the log itself which flags are used under C++ compile flags. Release and Debug both choose optimization flags, so that error is strange:

error: #warning _FORTIFY_SOURCE requires compiling with optimization
 (-O) [-Werror=cpp]
  414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)

It looks like it is possibly using an incompatible C++ compiler or perhaps the build directory needs to be cleaned up.

You should probably use Release not Debug, but that likely won't solve the error.

chase commented 5 months ago

I'm considering rewriting awrit using TypeScript and Electron instead of C++ and Chromium Embedded Framework for several reasons, so if this ends up taking up a lot of your time, it might not be worth it long-term.

GustavoJCL commented 5 months ago

Yes, I tried both Release and Debug modes, and I ended up having similar errors. I can suggest rewriting it in Rust instead. Rust offers similar performance to C++ but more safer in the memory. If possible, I would like help with rewriting awrit

chase commented 5 months ago

Yes, I tried both Release and Debug modes, and I ended up having similar errors. I can suggest rewriting it in Rust instead. Rust offers similar performance to C++ but more safer in the memory. If possible, I would like help with rewriting awrit

In this case, Rust wouldn't be helpful, although I do enjoy working with it. The primary limitation is Chromium Embedded Framework (CEF) lacks the APIs required to implement extensions, use the Chromium developer tools, while still enabling off screen rendering.

Making awrit a wrapper around Electron would mean we get well-maintained API with documentation in several dozen languages, a flexible scripting engine, basic extension support, and much more. TypeScript is a supported language for Electron and is widely used. If WASM-based extensions to awrit were ever needed, Rust might be a good choice however.

GustavoJCL commented 5 months ago

I understand. Yes, Electron and TypeScript seem to be great choices. I also know TypeScript, and if you need, I can help to rewrite awrit with TypeScript and Electron. Also I can help write extensions in WASM with Rust or another language.