Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute make command #253

Open
simon28li opened this issue Apr 21, 2022 · 4 comments
Open

Failed to execute make command #253

simon28li opened this issue Apr 21, 2022 · 4 comments

Comments

@simon28li
Copy link

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"

@hanickadot
Copy link
Owner

I would recommend updating to GCC 10.3 as its replacing 10.2. There could be some bugs in the version.

@simon28li
Copy link
Author

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.

@hanickadot
Copy link
Owner

I'm testing the code with GCC 10.3 and it matches. Do you have some weird locale set?

@andreas-schwab
Copy link

The test is bogus. '\x80' is a valid char if char is unsigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants