[Debian-med-packaging] Bug#793344: How to inject options only for intel architectures with cmake (Was: Bug#793344: hyphy: FTBFS on non-x86: unrecognized command line option '-msse3')

Andreas Tille andreas at an3as.eu
Thu Jul 23 12:36:22 UTC 2015


Hi,

considering the fact that SSE3 optimisation is really wanted on intel
architectures how could the option be added only for those architectures
that understand -msse3 option?

Kind regards

        Andreas.

On Wed, Jul 22, 2015 at 10:30:58PM -0400, Aaron M. Ucko wrote:
> Source: hyphy
> Version: 2.2.5+dfsg-1
> Severity: important
> 
> Builds of hyphy for most architectures failed when trying to cover GTEST:
> 
>   /usr/bin/c++   -D_HYPHY_LIBDIRECTORY_=\"/usr/lib/hyphy\" -D_SLKP_LFENGINE_REWRITE_ -D__AFYP_REWRITE_BGM__ -D__HYPHYCURL__ -D__HYPHYDEBUG__ -D__HYPHY_64__ -D__UNITTEST__ -D__UNIX__ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/core/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/lib/Link -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/new/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/gui/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/gui/include/Components -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/gui/include/WindowClasses -I/«BUILDDIR»/hyphy-2.2.5+dfsg/contrib/gtest-1.7.0/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/tests/gtests -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/lib/aarch64-linux-gnu/gtk-2.0/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/gui/gtk/include -I/«BUILDDIR»/hyphy-2.2.5+dfsg/src/gui/gtk/include/Components -I/Developer/Headers/FlatCarbon    -g -fsigned-char -O3 -fopenmp -msse3 -g -fprofile-arcs -ftest-coverage -pg -Wno-int-to-pointer-cast -Wno-conversion-null -o CMakeFiles/HYPHYGTEST.dir/src/core/variablecontainer.cpp.o -c /«BUILDDIR»/hyphy-2.2.5+dfsg/src/core/variablecontainer.cpp
>   c++: error: unrecognized command line option '-msse3'
>   make[5]: *** [CMakeFiles/HYPHYGTEST.dir/src/core/variablecontainer.cpp.o] Error 1
> 
> Could you please take a look?  Incidentally, -msse3 isn't great
> practice even on x86, because it limits portability.
> 
> Thanks!
> 
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list