pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Please suggest a compiler given these errors
The README of the package (pytorch, being built in wip/py-torch) says:
#### Prerequisites
...
- A C++14 compatible compiler, such as clang
I don't think it is mandating clang
This build is on NetBSD 9.1 amd64 and the default compiler is the
following, which I suppose supports C++14
# gcc --version
gcc (nb4 20200810) 7.5.0
However my impression from the following errors is it's something to do
with the choice of compiler:
# grep error: /usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeError.log
/usr/include/gcc-7/avxintrin.h:1311:1: error: inlining failed in call to always_inline '_mm256_set1_ps': target specific option mismatch
/usr/include/gcc-7/avxintrin.h:551:1: error: inlining failed in call to always_inline '_mm256_extract_epi64': target specific option mismatch
/usr/include/gcc-7/avx2intrin.h:63:1: error: inlining failed in call to always_inline '_mm256_abs_epi16': target specific option mismatch
/usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeTmp/src.c:6:17: error: incompatible types when initializing type '__m512i {aka __vector(8) long long int}' using type 'int'
/usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeTmp/src.c:6:17: error: incompatible types when initializing type '__m512i {aka __vector(8) long long int}' using type 'int'
gcc: error: /arch:AVX512: No such file or directory
/usr/include/gcc-7/avxintrin.h:1311:1: error: inlining failed in call to always_inline '_mm256_set1_ps': target specific option mismatch
/usr/include/gcc-7/avxintrin.h:551:1: error: inlining failed in call to always_inline '_mm256_extract_epi64': target specific option mismatch
/usr/include/gcc-7/avx2intrin.h:63:1: error: inlining failed in call to always_inline '_mm256_abs_epi16': target specific option mismatch
/usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeTmp/src.c:6:17: error: incompatible types when initializing type '__m512i {aka __vector(8) long long int}' using type 'int'
/usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeTmp/src.c:6:17: error: incompatible types when initializing type '__m512i {aka __vector(8) long long int}' using type 'int'
gcc: error: /arch:AVX512: No such file or directory
g++: error: unrecognized command line option '-Wshorten-64-to-32'
g++: error: unrecognized command line option '-Wshorten-64-to-32'
g++: error: unrecognized command line option '-wd654'
g++: error: unrecognized command line option '-wd654'
g++: error: unrecognized command line option '-Wthread-safety'; did you mean '-fthread-jumps'?
g++: error: unrecognized command line option '-Wthread-safety'; did you mean '-fthread-jumps'?
/usr/local/netbsd/work/wip/py-torch/work/pytorch/build/CMakeFiles/CMakeTmp/CheckPrototypeDefinition.c:1:10: fatal error: magma.h: No such file or directory
Shall I be trying out clang and what does it mean to dependencies - do they
have to use the same compiler? So far a buildlink dependency is found on
devel/google-glog
--
Mayuresh
Home |
Main Index |
Thread Index |
Old Index