compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Failed to execute make command
When I execute the make command, the package contains the following error. Can you give me some help? In addition, the version I tested was 3.6
root@simon28li spack-src]# make
/home/spack/lib/spack/env/gcc/g++ -std=c++20 -Iinclude -O3 -pedantic -Wall -Wextra -Werror -Wconversion -MMD -c tests/generating.cpp -o tests/generating.o
tests/generating.cpp:56:21: error: static assertion failed
56 | static_assert(same_f(CTRE_GEN("\\x80"), ctre::character<char32_t{0x80}>()));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/generating.cpp:57:21: error: static assertion failed
57 | static_assert(same_f(CTRE_GEN("\\xFF"), ctre::character<char32_t{0xFF}>()));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/generating.cpp:58:21: error: static assertion failed
58 | static_assert(same_f(CTRE_GEN("\\x{FF}"), ctre::character<char32_t{0xFF}>()));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:33: tests/generating.o] Error 1
My system information is as follows:
[root@simon28li spack-src]# gcc -v
gcc version 10.2.0 (Spack GCC)
[root@simon28li spack-src]# uname -a
Linux simon28li 4.18.0-193.el8.aarch64 #1 SMP Fri May 8 11:05:12 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
[root@simon28li spack-src]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
I would recommend updating to GCC 10.3 as its replacing 10.2. There could be some bugs in the version.
I would recommend updating to GCC 10.3 as its replacing 10.2. There could be some bugs in the version.
Its so bad,I still reported the same error when I used version 10.3.0 of gcc.
I'm testing the code with GCC 10.3 and it matches. Do you have some weird locale set?
The test is bogus. '\x80' is a valid char if char is unsigned.