-
-
Save nikicat/d151acd51bb5fcb98ca3ccc73de5798e to your computer and use it in GitHub Desktop.
gcc 14 linux-enable-ir-emitter error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccache c++ -Ilinux-enable-ir-emitter.p -I. -I.. -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/cloudproviders -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/sysprof-6 -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -Wcast-qual -Wconversion -Wfloat-equal -Wformat=2 -Winline -Wmissing-declarations -Wredundant-decls -Wshadow -Wundef -Wuninitialized -Wwrite-strings -Wdisabled-optimization -Wpacked -Wpadded -Wmultichar -Wswitch-default -Wswitch-enum -Wunused-macros -Wmissing-include-dirs -Wunsafe-loop-optimizations -Wstack-protector -Wstrict-overflow=5 -Warray-bounds=2 -Wlogical-op -Wstrict-aliasing=3 -Wvla -Wdouble-promotion -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wtrampolines -Wvector-operation-performance -Wsuggest-attribute=format -Wdate-time -Wformat-signedness -Wnormalized=nfc -Wduplicated-cond -Wnull-dereference -Wshift-negative-value -Wshift-overflow=2 -Wunused-const-variable=2 -Walloca -Walloc-zero -Wformat-overflow=2 -Wformat-truncation=2 -Wstringop-overflow=3 -Wduplicated-branches -Wcast-align=strict -Wsuggest-attribute=cold -Wsuggest-attribute=malloc -Wattribute-alias=2 -Wanalyzer-too-complex -Warith-conversion -Wbidi-chars=ucn -Wopenacc-parallelism -Wtrivial-auto-var-init -Wctor-dtor-privacy -Weffc++ -Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -Wnoexcept -Wzero-as-null-pointer-constant -Wabi-tag -Wuseless-cast -Wconditionally-supported -Wsuggest-final-methods -Wsuggest-final-types -Wsuggest-override -Wmultiple-inheritance -Wplacement-new=2 -Wvirtual-inheritance -Waligned-new=all -Wnoexcept-type -Wregister -Wcatch-value=3 -Wextra-semi -Wdeprecated-copy-dtor -Wredundant-move -Wcomma-subscript -Wmismatched-tags -Wredundant-tags -Wvolatile -Wdeprecated-enum-enum-conversion -Wdeprecated-enum-float-conversion -Winvalid-imported-macros -Werror -std=c++17 -O3 -Wno-unknown-warning-option -Wno-unused-macros -Wno-pragmas -Wno-abi-tag -Wno-effc++ -Wno-padded -Wno-shadow -Wno-sign-promo -Wno-unused-const-variable -Wno-suggest-final-types -Wno-suggest-final-methods -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -Wno-inline -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -pthread -isystem/usr/include/opencv4 -MD -MQ linux-enable-ir-emitter.p/camera_camera.cpp.o -MF linux-enable-ir-emitter.p/camera_camera.cpp.o.d -o linux-enable-ir-emitter.p/camera_camera.cpp.o -c ../camera/camera.cpp | |
In file included from /usr/include/c++/14.1.1/regex:69, | |
from ../camera/camera.cpp:7: | |
In constructor ‘std::__detail::_Executor< <template-parameter-1-1>, <template-parameter-1-2>, <template-parameter-1-3>, <anonymous> >::_State_info<std::integral_constant<bool, false>, _ResultsVec>::_State_info(std::__detail::_StateIdT, std::size_t) [with _ResultsVec = std::vector<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >, std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > > >; _BiIter = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >; _TraitsT = std::__cxx11::regex_traits<char>; bool __dfs_mode = false]’, | |
inlined from ‘std::__detail::_Executor< <template-parameter-1-1>, <template-parameter-1-2>, <template-parameter-1-3>, <anonymous> >::_Executor(_BiIter, _BiIter, _ResultsVec&, const _RegexT&, _FlagT) [with _BiIter = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >; _TraitsT = std::__cxx11::regex_traits<char>; bool __dfs_mode = false]’ at /usr/include/c++/14.1.1/bits/regex_executor.h:81:2, | |
inlined from ‘bool std::__detail::_Executor< <template-parameter-1-1>, <template-parameter-1-2>, <template-parameter-1-3>, <anonymous> >::_M_lookahead(std::__detail::_StateIdT) [with _BiIter = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >; _TraitsT = std::__cxx11::regex_traits<char>; bool __dfs_mode = false]’ at /usr/include/c++/14.1.1/bits/regex_executor.tcc:155:17: | |
/usr/include/c++/14.1.1/bits/regex_executor.h:244:31: error: argument 1 value is zero [-Werror=alloc-zero] | |
244 | : _M_visited_states(new bool[__n]()), _M_start(__start) | |
| ^~~~~~~~~~~~~~~ | |
In file included from /usr/include/c++/14.1.1/bits/new_allocator.h:34, | |
from /usr/include/c++/14.1.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33, | |
from /usr/include/c++/14.1.1/bits/allocator.h:46, | |
from /usr/include/c++/14.1.1/memory:65, | |
from ../camera/camera.hpp:4, | |
from ../camera/camera.cpp:1: | |
/usr/include/c++/14.1.1/new: In member function ‘bool std::__detail::_Executor< <template-parameter-1-1>, <template-parameter-1-2>, <template-parameter-1-3>, <anonymous> >::_M_lookahead(std::__detail::_StateIdT) [with _BiIter = __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> >; _Alloc = std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >; _TraitsT = std::__cxx11::regex_traits<char>; bool __dfs_mode = false]’: | |
/usr/include/c++/14.1.1/new:133:26: note: in a call to allocation function ‘void* operator new [](std::size_t)’ declared here | |
133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc) | |
| ^~~~~~~~ | |
At global scope: | |
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics | |
cc1plus: all warnings being treated as errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment