-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hello, I tried to compile dtc on centos8, but the following error was reported. Can you help me find out what caused it?
/home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:257:2: error: 'DTCValue::DTCValue(int64_t)'
cannot be overloaded
1828 DTCValue(int64_t v) : s64(v)
1829 ^
>> 1830 /home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:237:2: error: with 'DTCValue::DTCValue(long
int)'
1831 DTCValue(long v) : s64(v)
1832 ^
>> 1833 /home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:260:2: error: 'DTCValue::DTCValue(uint64_t)
' cannot be overloaded
1834 DTCValue(uint64_t v) : u64(v)
1835 ^
>> 1836 /home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:240:2: error: with 'DTCValue::DTCValue(long
unsigned int)'
1837 DTCValue(unsigned long v) : u64(v)
1838 ^
>> 1839 /home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:313:18: error: 'static DTCValue DTCValue::M
ake(int64_t)' cannot be overloaded
1840 static DTCValue Make(const int64_t v)
1841 ^
>> 1842 /home/stage/root/spack-stage-dtc-2.1.3-bqxrecu5onxqpgrq2z4mzgpfqa7y7mjk/spack-src/src/core/../libs/common/value.h:281:18: error: with 'static DTCValue DTCVal
ue::Make(long int)'
1843 static DTCValue Make(const long v)
The environment information is as follows:
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-redhat-linux/8/lto-wrapper
Target: aarch64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-gnu-indirect-function --build=aarch64-redhat-linux
Thread model: posix
gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]# cat /etc/re
reader.conf.d/ redhat-release redis.conf redis-sentinel.conf request-key.conf request-key.d/ resolv.conf
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]# 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"
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]# uname -a
Linux simon28li 4.18.0-383.el8.aarch64 #1 SMP Wed Apr 20 15:39:57 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]# cmake -version
cmake version 3.20.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[root@simon28li spack-stage-gcc-4.9.0-lcwfyjlftlmolm3ww4u7oldsqojdvumd]#
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels