Closed kcleal closed 2 years ago
Hi,
Thanks for the feedback.
I don't CentOS is the problem here, but the GCC version. One of the key points of the WFA2-lib is that it autovectorizes the core loops using the "#pragma ivdep" (in the case of GCC). The problem is that this pragma is fully supported starting from GCC 4.9. If you can use a newer version of GCC, that could solve the problem. Otherwise, I will try to see what happens compiling with an older gcc (<4.9). Let me know.
Thanks for the swift response. Im trying to create a python wrapper for the C code of WFA2-lib https://github.com/kcleal/pywfa
I think I have a working prototype now, but I had to add -fPIC
to the C_FLAGS
to make it friendly for python installation. I also added a BUILD_CPP=0
option to the Makefile, not sure if this is of interest to you (I sent a pull request in any case). Thanks!
It is of interest, no doubt. Together with a Rust API (@AndreaGuarracino), I think that many users will find this useful.
Hi, Thanks for the really nice library. I have no problems building on my Mac using clang using
make BUILD_TOOLS=0 BUILD_EXAMPLES=0 clean all
However I run into problem when installing on centos, installing the c++ code (old gcc version?):
I tried deleting the /bindings/cpp from the Makefile so SUBDIRS looks like:
I also removed this line from the Makefile:
$(AR) $(AR_FLAGS) $(LIB_WFA_CPP) $(FOLDER_BUILD)/*.o $(FOLDER_BUILD_CPP)/*.o 2> /dev/null
The build now works withmake BUILD_TOOLS=0 BUILD_EXAMPLES=0 clean all
Would it be possible to add a c++ free rule to the makefile? Thanks again!