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

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

Open
liuyong201811 opened this issue Feb 3, 2023 · 1 comment
Open

Comments

@liuyong201811
Copy link

[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/align_simdpp_-null.cpp.o
[ 30%] Building CXX object CMakeFiles/static.dir/src/align_simdpp_-arm_neon.cpp.o
[ 40%] Building CXX object CMakeFiles/static.dir/src/align_simdpp_-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/align_simdpp_-arm_neon.cpp.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[7]: *** [CMakeFiles/static.dir/build.make:137: CMakeFiles/static.dir/src/align_simdpp_-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
Copy link
Member

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

Best,
Hannes

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

2 participants