package: gmime2.4
severity: important
tags: patch

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../util -DGMIME_VERSION=\"2.4.31\" 
-DGMIME_MAJOR_VERSION=2 -DGMIME_MINOR_VERSION=4 -DGMIME_MICRO_VERSION=31 
-DG_LOG_DOMAIN=\"gmime\" -DG_DISABLE_DEPRECATED -D_LARGEFILE64_SOURCE 
-D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/glib-2.0 
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -g -O2 -fno-strict-aliasing -c gmime-param.c  -fPIC 
-DPIC -o .libs/gmime-param.o
/tmp/cc1SBNmj.s: Assembler messages:
/tmp/cc1SBNmj.s:2152: Error: can't resolve `.rodata' {.rodata section} - 
`.LPIC18' {*UND* section}
make[5]: *** [gmime-param.lo] Error 1

I have produced a somewhat reduced (though not as much as i'd like) testcase and sent it as a bug report on gcc-4.6[1] but I don't expect a fast response from them and it's important for the armhf to keep things in sync as much as possible as we aim towards becoming a release architecture.

The bug is only reproducable with -O2 and higher, it is not reproducable
with -O1.

Therefore could I ask you to apple the attatched patch which reduces the
optmisation level on armhf to -O1 to your next upload (please don't upload
right now though unless you have rc issues to fix, getting the mono
transition through is more important than helping us out).
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657682

--- gmime2.4-2.4.31/debian/rules	2012-01-28 00:01:37.000000000 +0000
+++ gmime2.4-2.4.31.new/debian/rules	2012-01-27 23:48:59.000000000 +0000
@@ -16,6 +16,13 @@
 include /usr/share/quilt/quilt.make
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 
+DEB_HOST_ARCH ?=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+#use -01 on armhf to avoid assembler errors
+ifeq ($(DEB_HOST_ARCH),armhf)
+  export CFLAGS += -O1
+endif
+
 autoreconf: autoreconf-stamp
 autoreconf-stamp: $(QUILT_STAMPFN)
 	autoreconf -f -i -s

Reply via email to