Bug#649461: foo-yc20: FTBFS: cc1plus: error: unrecognized command line option "-march=native"

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Mon Nov 21 06:49:29 UTC 2011


Source: foo-yc20
Version: 1.3.0-2
Severity: serious
Justification: fails to build from source
Tags: patch

Hi,

foo-yc20 FTBFS on some architecture.

 http://buildd.debian.org/status/package.php?p=foo-yc20&suite=sid
 http://buildd.debian-ports.org/status/package.php?p=foo-yc20&suite=sid

-----
make[2]: Leaving directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
make[1]: Leaving directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
   debian/rules override_dh_auto_build
make[1]: Entering directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
dh_auto_build -- PREFIX=/usr
make[2]: Entering directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
g++ src/foo-yc20.cpp -O3 -mtune=native -march=native -mfpmath=sse
-ffast-math -ftree-vectorize  -fPIC -DVERSION=1.3.0 -I/usr/lib/faust
-Isrc/ -Iinclude/ -DPREFIX=/usr -Wall  -c -o src/foo-yc20.o
cc1plus: error: unrecognized command line option "-march=native"
cc1plus: error: unrecognized command line option "-mfpmath=sse"
make[2]: *** [src/foo-yc20.o] Error 1
make[2]: Leaving directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
dh_auto_build: make -j1 PREFIX=/usr returned exit code 2
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory
`/build/buildd-foo-yc20_1.3.0-2-alpha-so4dXd/foo-yc20-1.3.0'
make: *** [build] Error 2
-----

"-march=native" option can not use by all architecture.
Moreover, "-mfpmath=sse" option is only for Intel architecture.

I created a patch which reivse this problem.
Please check patch and allpy.

Best regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-yc20.patch
Type: text/x-patch
Size: 391 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20111121/da830dd9/attachment.bin>


More information about the pkg-multimedia-maintainers mailing list