turing-machines / mentals-ai

Agents in Markdown syntax (loops, memory and tools included)
https://x.com/mentals_ai
MIT License
348 stars 32 forks source link

make: *** [Makefile:63: build/./src/code_interpreter.cpp.o] Error 1 #13

Open fahdmirza opened 5 months ago

fahdmirza commented 5 months ago

I am trying to install it in Ubuntu 22.04 and getting following error on make:

(mentalsai) Ubuntu@0068-kci-prxmx10127:~/mentals-ai$ make Using compiler: g++ version mkdir -p build/./src/ g++ -DLINUX -I./src -I./src/toml++ -I./src/toml++/impl -I./src/treehh -I./src/liboai -I./src/liboai/components -I./src/liboai/include -I./src/liboai/include/components -I./src/liboai/include/core -I./src/liboai/core -I./src/nlohmann -MMD -MP -std=c++20 -Wall -Wextra -Werror -O3 -march=native -c src/code_interpreter.cpp -o build/./src/code_interpreter.cpp.o src/code_interpreter.cpp: In member function ‘void CodeInterpreter::delete_virtual_environment()’: src/code_interpreter.cpp:37:11: error: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] 37 | system(command.c_str()); | ~~^~~~~ cc1plus: all warnings being treated as errors make: *** [Makefile:63: build/./src/code_interpreter.cpp.o] Error 1 (mentalsai) Ubuntu@0068-kci-prxmx10127:~/mentals-ai$