Compile error: namespace does not have a type
depate opened this issue · 3 comments
depate commented
While building this subproject for service-config-manager
this error occured:
FAILED: subprojects/phosphor-logging/phosphor-rsyslog-config/phosphor-rsyslog-conf.p/meson-generated_.._.._elog-process-metadata.cpp.o
ccache c++ -Isubprojects/phosphor-logging/phosphor-rsyslog-config/phosphor-rsyslog-conf.p -Isubprojects/phosphor-logging/phosphor-rsyslog-config -I../subprojects/phosphor-logging/phosphor-rsyslog-config -Isubprojects/phosphor-logging -I../subprojects/phosphor-logging -Isubprojects/phosphor-dbus-interfaces/gen -I../subprojects/phosphor-dbus-interfaces/gen -I../subprojects/sdbusplus/include -Isubprojects/sdeventplus/src -I../subprojects/sdeventplus/src -Isubprojects/stdplus/src -I../subprojects/stdplus/src -I../subprojects/span-lite/include -Isubprojects/span-lite/__CMake_build -I../subprojects/span-lite/__CMake_build -Isubprojects/span-lite -I../subprojects/span-lite -I../subprojects/function2/include -Isubprojects/function2/__CMake_build -I../subprojects/function2/__CMake_build -Isubprojects/function2 -I../subprojects/function2 -Isubprojects/phosphor-logging/phosphor-logging -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -Werror -std=c++17 -g -MD -MQ subprojects/phosphor-logging/phosphor-rsyslog-config/phosphor-rsyslog-conf.p/meson-generated_.._.._elog-process-metadata.cpp.o -MF subprojects/phosphor-logging/phosphor-rsyslog-config/phosphor-rsyslog-conf.p/meson-generated_.._.._elog-process-metadata.cpp.o.d -o subprojects/phosphor-logging/phosphor-rsyslog-config/phosphor-rsyslog-conf.p/meson-generated_.._.._elog-process-metadata.cpp.o -c subprojects/phosphor-logging/elog-process-metadata.cpp
In file included from subprojects/phosphor-logging/elog-process-metadata.cpp:7:
subprojects/phosphor-logging/phosphor-logging/elog-errors.hpp:2408:31: error: 'example' in namespace 'phosphor::logging::subprojects' does not name a type
2408 | using type = subprojects::example::net::poettering::Calculator::DivisionByZero;
| ^~~~~~~
subprojects/phosphor-logging/phosphor-logging/elog-errors.hpp:2452:31: error: 'example' in namespace 'phosphor::logging::subprojects' does not name a type
2452 | using type = subprojects::example::net::poettering::Calculator::PermissionDenied;
| ^~~~~~~
GCC
> gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
williamspatrick commented
I think @wak-google is fixing this in phosphor-dbus-interfaces.
williamspatrick commented
I believe this is resolved.