parallaxsecond / parsec

Platform AbstRaction for SECurity service
https://parsec.community/
Apache License 2.0
469 stars 67 forks source link

parsec 1.1.0/1.2.0-rc1 fail to build with gcc13 #672

Open ggardet opened 1 year ago

ggardet commented 1 year ago

parsec 1.1.0 fails to build with gcc13 on openSUSE Tumbleweed. Log:

[  228s] error: failed to run custom build command for `grpcio-sys v0.9.1+1.38.0`
[  228s] 
[  228s] Caused by:
[  228s]   process didn't exit successfully: `/home/abuild/rpmbuild/BUILD/parsec-1.1.0/target/release/build/grpcio-sys-ed6ea38e1b4b69f0/build-script-build` (exit status: 101)
[  228s]   In file included from /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.cc:16:
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:34:6: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  228s]      34 | enum class FormatConversionChar : uint8_t;
[  228s]         | ~~~~ ^~~~~
[  228s]         |      -----
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:34:33: error: found ':' in nested-name-specifier, expected '::'
[  228s]      34 | enum class FormatConversionChar : uint8_t;
[  228s]         |                                 ^
[  228s]         |                                 ::
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:34:12: error: 'FormatConversionChar' has not been declared
[  228s]      34 | enum class FormatConversionChar : uint8_t;
[  228s]         |            ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:35:6: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  228s]      35 | enum class FormatConversionCharSet : uint64_t;
[  228s]         | ~~~~ ^~~~~
[  228s]         |      -----
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:35:36: error: found ':' in nested-name-specifier, expected '::'
[  228s]      35 | enum class FormatConversionCharSet : uint64_t;
[  228s]         |                                    ^
[  228s]         |                                    ::
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:35:12: error: 'FormatConversionCharSet' has not been declared
[  228s]      35 | enum class FormatConversionCharSet : uint64_t;
[  228s]         |            ^~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:173:8: warning: elaborated-type-specifier for a scoped enum must not use the 'class' keyword
[  228s]     173 |   enum class Enum : uint8_t {
[  228s]         |   ~~~~ ^~~~~
[  228s]         |        -----
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:173:14: error: use of enum 'Enum' without previous declaration
[  228s]     173 |   enum class Enum : uint8_t {
[  228s]         |              ^~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:173:21: error: 'uint8_t' was not declared in this scope
[  228s]     173 |   enum class Enum : uint8_t {
[  228s]         |                     ^~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:29:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
[  228s]      28 | #include "absl/strings/internal/str_format/output.h"
[  228s]     +++ |+#include <cstdint>
[  228s]      29 | #include "absl/strings/string_view.h"
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:173:29: error: default member initializer for unnamed bit-field
[  228s]     173 |   enum class Enum : uint8_t {
[  228s]         |                             ^
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:147:3: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     147 |   X_VAL(c) X_SEP X_VAL(s) X_SEP \
[  228s]         |   ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:147:18: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     147 |   X_VAL(c) X_SEP X_VAL(s) X_SEP \
[  228s]         |                  ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:149:3: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     149 |   X_VAL(d) X_SEP X_VAL(i) X_SEP X_VAL(o) X_SEP \
[  228s]         |   ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:149:18: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     149 |   X_VAL(d) X_SEP X_VAL(i) X_SEP X_VAL(o) X_SEP \
[  228s]         |                  ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:149:33: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     149 |   X_VAL(d) X_SEP X_VAL(i) X_SEP X_VAL(o) X_SEP \
[  228s]         |                                 ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:150:3: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     150 |   X_VAL(u) X_SEP X_VAL(x) X_SEP X_VAL(X) X_SEP \
[  228s]         |   ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:150:18: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     150 |   X_VAL(u) X_SEP X_VAL(x) X_SEP X_VAL(X) X_SEP \
[  228s]         |                  ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:150:33: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     150 |   X_VAL(u) X_SEP X_VAL(x) X_SEP X_VAL(X) X_SEP \
[  228s]         |                                 ^~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:185:3: note: in expansion of macro 'ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_'
[  228s]     185 |   ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(ABSL_INTERNAL_X_VAL, )
[  228s]         |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:183:20: error: 'FormatConversionChar' does not name a type; did you mean 'FormatConversionCharInternal'?
[  228s]     183 |   static constexpr FormatConversionChar id = \
[  228s]         |                    ^~~~~~~~~~~~~~~~~~~~
[  228s]   /home/abuild/rpmbuild/BUILD/parsec-1.1.0/vendor/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h:152:3: note: in expansion of macro 'ABSL_INTERNAL_X_VAL'
[  228s]     152 |   X_VAL(f) X_SEP X_VAL(F) X_SEP X_VAL(e) X_SEP X_VAL(E) X_SEP \
[  228s]         |   ^~~~~

And more. Full build log available at: https://paste.opensuse.org/pastes/ab553dda0eb8

ggardet commented 1 year ago

parsec 1.2.0-rc1 is also affected.

gowthamsk-arm commented 1 year ago

Thanks for raising this issue. I'm currently looking into it and will give you an update.

ggardet commented 1 year ago

As a workaround, disabling jwt-svid-authenticator allows to build parsec.