DecodeGenetics / graphtyper

Population-scale genotyping using pangenome graphs
http://dx.doi.org/10.1038/ng.3964
MIT License
174 stars 20 forks source link

use clang++ make, fatal error: redefinition of 'this_compile_arch' #123

Open liuyong201811 opened 1 year ago

liuyong201811 commented 1 year ago

[root@eee release-build]# make -j4 graphtyper [ 3%] Performing build step for 'project_paw' [ 10%] Built target project_libdeflate -- Compilable archs are: NONE_NULL;ARM_NEON;ARM_NEON_FLT_SP;ARM64_NEON -- Runnable archs are: NONE_NULL;ARM_NEON;ARM_NEON_FLT_SP [ 19%] Built target project_htslib -- CMAKE_BUILD_TYPE is set to RELEASE -- clang-tidy found: /usr/local/bisheng/BiSheng-compiler-2.5.0-aarch64-linux/bin/clang-tidy -- Configuring done -- Generating done -- Build files have been written to: /root/graphtyper/release-build/paw [ 10%] Building CXX object CMakeFiles/static.dir/src/paw.cpp.o [ 20%] Building CXX object CMakeFiles/static.dir/src/alignsimdpp-null.cpp.o [ 30%] Building CXX object CMakeFiles/static.dir/src/alignsimdpp-arm_neon.cpp.o [ 40%] Building CXX object CMakeFiles/static.dir/src/alignsimdpp-arm_neon_flt_sp.cpp.o clang-12: fatal error: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument] clang-12: fatal error: argument unused during compilation: '-mfpu=neon' [-Wunused-command-line-argument] make[7]: [CMakeFiles/static.dir/build.make:124: CMakeFiles/static.dir/src/alignsimdpp-arm_neon.cpp.o] Error 1 make[7]: Waiting for unfinished jobs.... make[7]: *** [CMakeFiles/static.dir/build.make:137: CMakeFiles/static.dir/src/alignsimdpp-arm_neon_flt_sp.cpp.o] Error 1 In file included from /root/graphtyper/paw/src/paw.cpp:2: In file included from /root/graphtyper/paw/include/paw.hpp:9: In file included from /root/graphtyper/paw/include/paw/align.hpp:5: In file included from /root/graphtyper/paw/include/paw/align/alignment_cache.hpp:13: /root/graphtyper/paw/include/paw/align/event.hpp:103:21: warning: lambda capture 's' is not used [-Wunused-lambda-capture] [&pos, &pos_q, &s, &s1, &s2, &edit_script, &ref, is_normalize, is_trim_indel_on_ends]() -> void


In file included from /root/graphtyper/release-build/paw/src/align_simdpp_-null.cpp:7:
In file included from /root/graphtyper/paw/include/simdpp/simd.h:205:
In file included from /root/graphtyper/paw/include/simdpp/dispatch/make_dispatcher.h:11:
In file included from /root/graphtyper/paw/include/simdpp/dispatch/macros_generated.h:14:
In file included from /root/graphtyper/paw/include/simdpp/dispatch/collect_macros_generated.h:640:
/root/graphtyper/paw/include/simdpp/dispatch/preprocess_single_compile_arch.h:47:20: **fatal error: redefinition of 'this_compile_arch'
static inline Arch this_compile_arch()**
                   ^
/root/graphtyper/paw/include/simdpp/dispatch/preprocess_single_compile_arch.h:47:20: note: previous definition is here
static inline Arch this_compile_arch()
                   ^
1 error generated.
make[7]: *** [CMakeFiles/static.dir/build.make:111: CMakeFiles/static.dir/src/align_simdpp_-null.cpp.o] Error 1
1 warning generated.
make[6]: *** [CMakeFiles/Makefile2:287: CMakeFiles/static.dir/all] Error 2
make[5]: *** [CMakeFiles/Makefile2:294: CMakeFiles/static.dir/rule] Error 2
make[4]: *** [Makefile:207: static] Error 2
make[3]: *** [CMakeFiles/project_paw.dir/build.make:133: paw/src/project_paw-stamp/project_paw-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:260: CMakeFiles/project_paw.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:294: src/CMakeFiles/graphtyper.dir/rule] Error 2
make: *** [Makefile:259: graphtyper] Error 2
hannespetur commented 1 year ago

Hi, the paw submodule doesn't support ARM on clang. Could you try again with GCC?

Best, Hannes