Skip to content

Commit

Permalink
Update sse2neon.h file to fix the bug for ARM processor
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskf committed Mar 4, 2024
1 parent cdb969c commit b1552ab
Showing 1 changed file with 8,050 additions and 3,483 deletions.
Loading

1 comment on commit b1552ab

@martin-g
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!

Without the changes at https://github.com/iqtree/iqtree2/pull/148/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20a I still get the following build failure on Linux ARM64:

mgrigorov in 🌐 euler-arm-22 in iqtree2/build on  master [$] 
❯ cmake  -DUSE_LSD2=ON -DIQTREE_FLAGS=omp ..
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/include (found version "1.78.0")  
IQ-TREE flags : omp
Build mode   : Release
Target OS     : Unix
Compiler      : GNU Compiler (gcc)
Compiler version: 10.3.1
Target binary : 64-bit
OpenMP        : Yes
MPI           : NONE
Vectorization : SSE3/AVX/AVX2
C flags       :  -pthread  -O2 -g -ffunction-sections -fdata-sections
CXX flags     :  -std=c++11 -fopenmp -pthread  -O2 -g -ffunction-sections -fdata-sections
LINKER flags  :  -rdynamic  -Wl,--gc-sections
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for GlobalMemoryStatusEx
-- Looking for GlobalMemoryStatusEx - not found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
Using system zlib
-- Performing Test FLAG_WEXTRA
-- Performing Test FLAG_WEXTRA - Success
-- clang-tidy not found.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mgrigorov/git/bioconda/iqtree2/build

mgrigorov in 🌐 euler-arm-22 in iqtree2/build on  master [$] via C v10.3.1-gcc via △ v3.22.0 
❯ make -j
[  1%] Building CXX object CMakeFiles/kernelavx.dir/tree/phylotreeavx.cpp.o
[  1%] Building CXX object CMakeFiles/kernelsse.dir/tree/phylokernelsse.cpp.o
[  1%] Building CXX object lsd2/CMakeFiles/lsd2.dir/src/confidence_interval.cpp.o
[  1%] Building CXX object CMakeFiles/kernelfma.dir/tree/phylokernelfma.cpp.o
[  1%] Building C object booster/CMakeFiles/booster.dir/bitset_index.c.o
[  2%] Building CXX object ncl/CMakeFiles/ncl.dir/nxsassumptionsblock.cpp.o
[  2%] Building C object pll/CMakeFiles/pll.dir/alignment.c.o
c++: error: unrecognized command-line option ‘-mavx’
make[2]: *** [CMakeFiles/kernelavx.dir/build.make:76: CMakeFiles/kernelavx.dir/tree/phylotreeavx.cpp.o] Error 1
c++: error: unrecognized command-line option ‘-mavx’
c++: error: unrecognized command-line option ‘-mfma’
make[2]: *** [CMakeFiles/kernelfma.dir/build.make:76: CMakeFiles/kernelfma.dir/tree/phylokernelfma.cpp.o] Error 1
[  2%] Building CXX object lsd2/CMakeFiles/lsd2.dir/src/dating.cpp.o
[  3%] Building CXX object ncl/CMakeFiles/ncl.dir/nxscharactersblock.cpp.o
[  3%] Building C object booster/CMakeFiles/booster.dir/hashmap.c.o
c++: error: unrecognized command-line option ‘-msse3’
[  4%] Building C object pll/CMakeFiles/pll.dir/bipartitionList.c.o
[  5%] Building CXX object nclextra/CMakeFiles/nclextra.dir/mpdablock.cpp.o
[  5%] Building CXX object ncl/CMakeFiles/ncl.dir/nxsblock.cpp.o
make[2]: *** [CMakeFiles/kernelsse.dir/build.make:76: CMakeFiles/kernelsse.dir/tree/phylokernelsse.cpp.o] Error 1
c++: error: unrecognized command-line option ‘-msse3’
make[2]: *** [lsd2/CMakeFiles/lsd2.dir/build.make:76: lsd2/CMakeFiles/lsd2.dir/src/confidence_interval.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  5%] Building CXX object nclextra/CMakeFiles/nclextra.dir/msetsblock.cpp.o
[  5%] Building C object pll/CMakeFiles/pll.dir/evaluateGenericSpecial.c.o
c++: error: unrecognized command-line option ‘-msse3’
c++: error: unrecognized command-line option ‘-msse3’
make[2]: *** [lsd2/CMakeFiles/lsd2.dir/build.make:90: lsd2/CMakeFiles/lsd2.dir/src/dating.cpp.o] Error 1
[  6%] Building CXX object ncl/CMakeFiles/ncl.dir/nxsdatablock.cpp.o
[  6%] Building C object sprng/CMakeFiles/sprng.dir/lcg64.c.o
make[1]: *** [CMakeFiles/Makefile2:491: CMakeFiles/kernelsse.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:517: CMakeFiles/kernelavx.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1342: lsd2/CMakeFiles/lsd2.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:543: CMakeFiles/kernelfma.dir/all] Error 2
[  6%] Building CXX object nclextra/CMakeFiles/nclextra.dir/msplitsblock.cpp.o
c++: error: unrecognized command-line option ‘-msse3’
c++: error: unrecognized command-line option ‘-msse3’
[  7%] Building C object sprng/CMakeFiles/sprng.dir/makeseed.c.o
c++: error: unrecognized command-line option ‘-msse3’
[  7%] Building C object pll/CMakeFiles/pll.dir/evaluatePartialGenericSpecial.c.o
make[2]: *** [ncl/CMakeFiles/ncl.dir/build.make:76: ncl/CMakeFiles/ncl.dir/nxsassumptionsblock.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [ncl/CMakeFiles/ncl.dir/build.make:90: ncl/CMakeFiles/ncl.dir/nxsblock.cpp.o] Error 1
make[2]: *** [ncl/CMakeFiles/ncl.dir/build.make:104: ncl/CMakeFiles/ncl.dir/nxscharactersblock.cpp.o] Error 1
[  7%] Building C object booster/CMakeFiles/booster.dir/io.c.o
[  7%] Building C object booster/CMakeFiles/booster.dir/sort.c.o
c++: error: unrecognized command-line option ‘-msse3’
make[2]: *** [nclextra/CMakeFiles/nclextra.dir/build.make:76: nclextra/CMakeFiles/nclextra.dir/mpdablock.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [nclextra/CMakeFiles/nclextra.dir/build.make:90: nclextra/CMakeFiles/nclextra.dir/msetsblock.cpp.o] Error 1
c++: error: unrecognized command-line option ‘-msse3’
make[2]: *** [ncl/CMakeFiles/ncl.dir/build.make:118: ncl/CMakeFiles/ncl.dir/nxsdatablock.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:738: ncl/CMakeFiles/ncl.dir/all] Error 2
c++: error: unrecognized command-line option ‘-msse3’
make[2]: *** [nclextra/CMakeFiles/nclextra.dir/build.make:104: nclextra/CMakeFiles/nclextra.dir/msplitsblock.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:764: nclextra/CMakeFiles/nclextra.dir/all] Error 2
[  7%] Building C object sprng/CMakeFiles/sprng.dir/memory.c.o
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
[  8%] Building C object pll/CMakeFiles/pll.dir/fastDNAparsimony.c.o
[  8%] Building C object pll/CMakeFiles/pll.dir/hardware.c.o
make[2]: *** [booster/CMakeFiles/booster.dir/build.make:76: booster/CMakeFiles/booster.dir/bitset_index.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [booster/CMakeFiles/booster.dir/build.make:90: booster/CMakeFiles/booster.dir/hashmap.c.o] Error 1
make[2]: *** [booster/CMakeFiles/booster.dir/build.make:104: booster/CMakeFiles/booster.dir/io.c.o] Error 1
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [sprng/CMakeFiles/sprng.dir/build.make:76: sprng/CMakeFiles/sprng.dir/lcg64.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [sprng/CMakeFiles/sprng.dir/build.make:90: sprng/CMakeFiles/sprng.dir/makeseed.c.o] Error 1
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:76: pll/CMakeFiles/pll.dir/alignment.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:90: pll/CMakeFiles/pll.dir/bipartitionList.c.o] Error 1
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:104: pll/CMakeFiles/pll.dir/evaluateGenericSpecial.c.o] Error 1
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:118: pll/CMakeFiles/pll.dir/evaluatePartialGenericSpecial.c.o] Error 1
[  8%] Building CXX object lbfgsb/CMakeFiles/lbfgsb.dir/lbfgsb_new.cpp.o
[  8%] Building C object pll/CMakeFiles/pll.dir/hash.c.o
[  9%] Building C object booster/CMakeFiles/booster.dir/tree.c.o
[ 10%] Building C object pll/CMakeFiles/pll.dir/lexer.c.o
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [booster/CMakeFiles/booster.dir/build.make:118: booster/CMakeFiles/booster.dir/sort.c.o] Error 1
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [sprng/CMakeFiles/sprng.dir/build.make:104: sprng/CMakeFiles/sprng.dir/memory.c.o] Error 1
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:132: pll/CMakeFiles/pll.dir/fastDNAparsimony.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:921: sprng/CMakeFiles/sprng.dir/all] Error 2
c++: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:146: pll/CMakeFiles/pll.dir/hardware.c.o] Error 1
make[2]: *** [booster/CMakeFiles/booster.dir/build.make:132: booster/CMakeFiles/booster.dir/tree.c.o] Error 1
make[2]: *** [lbfgsb/CMakeFiles/lbfgsb.dir/build.make:76: lbfgsb/CMakeFiles/lbfgsb.dir/lbfgsb_new.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:619: booster/CMakeFiles/booster.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:869: lbfgsb/CMakeFiles/lbfgsb.dir/all] Error 2
cc: error: unrecognized command-line option ‘-msse3’
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:160: pll/CMakeFiles/pll.dir/hash.c.o] Error 1
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:174: pll/CMakeFiles/pll.dir/lexer.c.o] Error 1
[ 10%] Building C object pll/CMakeFiles/pll.dir/makenewzGenericSpecial.c.o
cc: error: unrecognized command-line option ‘-msse3’
make[2]: *** [pll/CMakeFiles/pll.dir/build.make:188: pll/CMakeFiles/pll.dir/makenewzGenericSpecial.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:712: pll/CMakeFiles/pll.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

Please sign in to comment.