Package: contextfree
Version: 3.0.5+dfsg1-1
Severity: serious
Tags: patch
User: debian-powerpc...@breakpoint.cc
Usertags: powerpcspe

Hi,

contextfree FTBFS on several arches (everything except on I*tel like and ARM
where -march=native is supported):

...
mkdir -p objs 2> /dev/null || true
set -e; g++ -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 
-Isrc-common -Isrc-unix -Iobjs -Isrc-agg/include -Isrc-common/agg-extras 
-Isrc-ffmpeg/include -O3 -Wall -march=native -Wno-parentheses  -c -MM 
src-common/cfdg.cpp \
        | sed 's,\(.*\.o\)\( *:\),objs/\1 objs/cfdg.d\2,g' > objs/cfdg.d; \
        [ -s objs/cfdg.d ] || rm -f objs/cfdg.d
cc1plus: error: unrecognized command line option '-march=native'
...

Attaching a patch that fixes this by removing -march=native from Makefile.
Please note that -march=native is not good on Debian anyway since specialized
code on the autodetected local hardware might not work on other machines
besides the buildd.

Roland


-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
--- contextfree-3.0.5+dfsg1.orig/Makefile
+++ contextfree-3.0.5+dfsg1/Makefile
@@ -133,7 +133,7 @@ $(OUTPUT_DIR)/rtest-2k.png: cfdg $(RTEST
 #
 
 CPPFLAGS += $(patsubst %,-I%,$(INC_DIRS))
-CPPFLAGS += -O3 -Wall -march=native -Wno-parentheses
+CPPFLAGS += -O3 -Wall -Wno-parentheses
 #CPPFLAGS += -ggdb
 
 $(OBJ_DIR)/%.o : %.cpp

Reply via email to