Skip to content

Broken build on linux with gcc 13.2.0 #613

@bradh

Description

@bradh

Doing a default build on a newly upgraded Kubuntu 24.04 machine, I'm hitting:

[ 42%] Building CXX object externals/coda-oss/modules/c++/str/CMakeFiles/str-c++.dir/source/Convert.cpp.o
In file included from /home/bradh/coding/nitro/externals/coda-oss/modules/c++/str/include/str/Convert.h:39,
                 from /home/bradh/coding/nitro/externals/coda-oss/modules/c++/str/source/Convert.cpp:35:
/home/bradh/coding/nitro/externals/coda-oss/modules/c++/coda_oss/include/coda_oss/string.h:54:20: error: identifier ‘char8_t’ is a keyword in C++20 [-Werror=c++20-compat]
   54 |         enum class char8_t : unsigned char { }; // https://en.cppreference.com/w/cpp/language/types
      |                    ^~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [externals/coda-oss/modules/c++/str/CMakeFiles/str-c++.dir/build.make:76: externals/coda-oss/modules/c++/str/CMakeFiles/str-c++.dir/source/Convert.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3328: externals/coda-oss/modules/c++/str/CMakeFiles/str-c++.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

It looks like there is code in the header that tries to deal with this, but for some reason it doesn't work for me, and I'm not sure why.

Is there a useful cmake flag I could be providing here? Or anything else I can do to help debug / fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions