Try

cmake -DRDK_OPTIMIZE_NATIVE=off 

This should turn off popcnt which doesn't exist on arm7



----
Brian Kelley

> On May 31, 2017, at 5:08 PM, Samo Turk <samo.t...@gmail.com> wrote:
> 
> Dear RDKit community,
> 
> I have trouble compiling RDKit on Arch Linux on armv7h cpu. It has to be 
> something with CPU architecture since the same build script is working on 
> Arch Linux on x86_64. Package versions are the same on both computers: gcc 
> 7.1.1, boost 1.64.0, python 3.6.1 and build script is here: 
> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=rdkit
> 
> Error I get:
> c++: error: unrecognized command line option ‘-mpopcnt’
> make[2]: *** [Code/RDGeneral/CMakeFiles/RDGeneral.dir/build.make:63: 
> Code/RDGeneral/CMakeFiles/RDGeneral.dir/Invariant.cpp.o] Error 1
> make[1]: *** [CMakeFiles/Makefile2:528: 
> Code/RDGeneral/CMakeFiles/RDGeneral.dir/all] Error 2
> make: *** [Makefile:163: all] Error 2
> 
> Cheers,
> Samo
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Rdkit-discuss mailing list
> Rdkit-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to