Bug#632503: yade: FTBFS: unrecognized command line option '-march=native'

Jakub Wilk jwilk at debian.org
Sat Jul 2 22:11:08 UTC 2011


Source: yade
Version: 0.60.3-1
Severity: serious
Justification: fails to build from source

yade failed to build from source on powerpc[0]:
| g++ -o debian/build/lib/yade-support.os -c -pipe -Wall -Wall -g -O2 -fopenmp -O3 -march=native -fPIC -fPIC -DQT_GUI_LIB -DQT_CORE_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_SHARED -DPYGTS_HAS_NUMPY -DYADE_GTS -DYADE_OPENGL -DYADE_OPENMP -DYADE_QT4 -DYADE_VTK -DYADE_OPENMP -DYADE_CAST=static_cast -DYADE_PTR_CAST=static_pointer_cast -DNDEBUG -I/usr/include/vtk-5.0 -I/usr/include/vtk-5.2 -I/usr/include/vtk-5.4 -I/usr/include/vtk-5.6 -I/usr/include/eigen3 -I/usr/include/vtk -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtGui -Idebian/build/include -Iinclude -I/usr/include/python2.6 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include debian/build/lib/yade-support.cpp
| cc1plus: error: unrecognized command line option '-march=native'

Please never use -march=native for Debian packages, even on 
architectures that support it.

[0] https://buildd.debian.org/status/fetch.php?pkg=yade&arch=powerpc&ver=0.60.3-1&stamp=1309599469

-- 
Jakub Wilk





More information about the debian-science-maintainers mailing list