Open salimp2009 opened 10 months ago
I added -O optimization as it was the first error to hardening.cmake like this
elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang|GNU")
set(NEW_CXX_DEFINITIONS "${NEW_CXX_DEFINITIONS} -D_GLIBCXX_ASSERTIONS -O")
message(STATUS "*** GLIBC++ Assertions (vector[], string[], ...) enabled")
then tried again this time first error is gone but somehow fxtui is giving error for missing std header files.
FAILED: _deps/ftxui-build/CMakeFiles/screen.dir/Debug/src/ftxui/screen/string.cpp.o
/usr/bin/c++ -DCMAKE_INTDIR=\"Debug\" -I/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171119057c3d5ffb926/
src -I/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171119057c3d5ffb926/include -U_FORTIFY_SOURCE -D_FORTI
FY_SOURCE=3 -fstack-protector-strong -fcf-protection -fstack-clash-protection -D_GLIBCXX_ASSERTIONS -O -g -st
d=c++20 -flto=auto -fno-fat-lto-objects -Wall -Werror -Wextra -Wcast-align -Wdeprecated -Wmissing-declarations
-Wnon-virtual-dtor -Wnull-dereference -Woverloaded-virtual -Wpedantic -Wshadow -Wunused -MD -MT _deps/ftxui-b
uild/CMakeFiles/screen.dir/Debug/src/ftxui/screen/string.cpp.o -MF _deps/ftxui-build/CMakeFiles/screen.dir/Deb
ug/src/ftxui/screen/string.cpp.o.d -o _deps/ftxui-build/CMakeFiles/screen.dir/Debug/src/ftxui/screen/string.cp
p.o -c /home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171119057c3d5ffb926/src/ftxui/screen/string.cpp
In file included from /home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171119057c3d5ffb926/src/ftxui/screen/s
tring.cpp:8:
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171119057c3d5ffb926/include/ftxui/screen/string.hpp:51:48: e
rror: ‘uint32_t’ was not declared in this scope
51 | WordBreakProperty CodepointToWordBreakProperty(uint32_t codepoint);
| ^~~~~~~~
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
e: ‘uint32_t’ is defined in header ‘<cstdint>’; did y
6 | #include <vector> // for vector
+++ |+#include <cstdint>
7 |
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
‘bool {anonymous}::IsCombining(uint32_t)’:
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
or: ‘ftxui::CodepointToWordBreakProperty’ cannot be u
1415 | return ftxui::CodepointToWordBreakProperty(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
cope:
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
or: ‘ftxui::WordBreakProperty ftxui::CodepointToWordB
ntity
1570 | WordBreakProperty CodepointToWordBreakPropert
|
/home/salim/.cache/CPM/ftxui/56a5c8369b2a8eeef461d171
ote: previous declaration ‘ftxui::WordBreakProperty f
51 | WordBreakProperty CodepointToWordBreakPropert
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[125/196] Building CXX object _deps/ftxui-build/CMake
ninja: build stopped: subcommand failed.
AS far as I understood the fxtui issue is an fxtui issues which is build and but probably not in the release used here. So I would suggest maybe to use the master branch here but still the previous error requires -O optimization to hardening but then it how will it be used for optimized build ? I tried Debug build
Hi Thank you for this template. I am a fan. Have all the books :)
I tried to build this as is on Linux Arch. Configuration was OK but build failed due to a required optimization as mentioned in the error below. I tough this might be helpfull to have a look at it.
Salim