Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
Version: 4.6.2-15 Both gmime and gmime2.4 have now been built sucessfully (one on the buildd the other on a porterbox). I am therefore closing this bug (versioned with the version that built gmime successfully. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
The patch has been backported to the FSF 4.6 release branch. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
forwarded 657682 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 tags 657682 + confirmed fixed-upstream upstream stop Hi On Fri, Jan 27, 2012, Peter Green wrote: /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 Looks like above bug (fixed upstream); also pending a backport of the fix in gcc-linaro 4.6: https://code.launchpad.net/~ramana/gcc-linaro/pr50313-backport/+merge/89058 Cheers, -- Loïc Minier -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
Sample backport for gcc-linaro 4.6 at: http://bazaar.launchpad.net/~ramana/gcc-linaro/pr50313-backport/revision/106861?start_revid=106861 -- Loïc Minier -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
Note that we'll backport to FSF 4.6 if appropriate. On Jan 29, 2012 7:03 AM, Loïc Minier l...@dooz.org wrote: forwarded 657682 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50313 tags 657682 + confirmed fixed-upstream upstream stop Hi On Fri, Jan 27, 2012, Peter Green wrote: /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 Looks like above bug (fixed upstream); also pending a backport of the fix in gcc-linaro 4.6: https://code.launchpad.net/~ramana/gcc-linaro/pr50313-backport/+merge/89058 Cheers, -- Loďc Minier -- To UNSUBSCRIBE, email to debian-arm-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120128175639.gb14...@bee.dooz.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
Package: gcc-4.6 Version: 4.6.2-12 Severity: important Gmime failed to build on armhf with the following error 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 reduced this to the attatched testcase, to build the testcase use the following command. gcc -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -O2 -c test.c -fPIC I attempted to reduce it further but any further significant code removals I did made the error go away. removing -fPIC makes the error go away as does reducing the optimisation level to -O1 -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: armhf (armv7l) Kernel: Linux 2.6.39.2-x2 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gcc-4.6 depends on: ii binutils 2.22-4 ii cpp-4.6 4.6.2-12 ii gcc-4.6-base 4.6.2-12 ii libc6 2.13-24 ii libgcc1 1:4.6.2-12 ii libgmp10 2:5.0.2+dfsg-2+b1 ii libgomp1 4.6.2-12 ii libmpc2 0.9-4+b1 ii libmpfr4 3.1.0-3+b1 ii zlib1g1:1.2.3.4.dfsg-3+b1 Versions of packages gcc-4.6 recommends: ii libc6-dev 2.13-24 Versions of packages gcc-4.6 suggests: pn binutils-goldnone pn gcc-4.6-doc none pn gcc-4.6-locales none pn libgcc1-dbg none pn libgomp1-dbg none pn libmudflap0-4.6-dev none pn libmudflap0-dbg none pn libquadmath-dbg none -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section}
I have reduced this to the attatched testcase sorry, screwed up trying to attatch the file in reportbug, here's the testcase. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* GMime * Copyright (C) 2000-2010 Jeffrey Stedfast * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free * Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ #include string.h #include limits.h #include ctype.h #include errno.h typedef struct _GMimeParam GMimeParam; /** * GMimeParam: * @next: Pointer to the next param. * @name: Parameter name. * @value: Parameter value. * * A parameter name/value pair as used for some Content header fields. **/ struct _GMimeParam { GMimeParam *next; char *name; char *value; }; #include glib.h static unsigned short gmime_special_table[256] = {1029}; enum { IS_CTRL = (1 0), IS_LWSP = (1 1), IS_TSPECIAL = (1 2), IS_SPECIAL = (1 3), IS_SPACE= (1 4), IS_DSPECIAL = (1 5), IS_QPSAFE = (1 6), IS_ESAFE= (1 7), /* encoded word safe */ IS_PSAFE= (1 8), /* encode word in phrase safe */ IS_ATTRCHAR = (1 9), /* attribute-char from rfc2184 */ /* ctype replacements */ IS_ASCII= (1 10), /* ascii */ IS_BLANK= (1 11), /* space or tab */ }; #define is_ctrl(x) ((gmime_special_table[(unsigned char)(x)] IS_CTRL) != 0) #define is_lwsp(x) ((gmime_special_table[(unsigned char)(x)] IS_LWSP) != 0) #define is_tspecial(x) ((gmime_special_table[(unsigned char)(x)] IS_TSPECIAL) != 0) #define is_type(x, t) ((gmime_special_table[(unsigned char)(x)] (t)) != 0) #define is_ttoken(x) ((gmime_special_table[(unsigned char)(x)] (IS_TSPECIAL|IS_LWSP|IS_CTRL)) == 0) #define is_atom(x) ((gmime_special_table[(unsigned char)(x)] (IS_SPECIAL|IS_SPACE|IS_CTRL)) == 0) #define is_dtext(x) ((gmime_special_table[(unsigned char)(x)] IS_DSPECIAL) == 0) #define is_fieldname(x) ((gmime_special_table[(unsigned char)(x)] (IS_CTRL|IS_SPACE)) == 0) #define is_qpsafe(x) ((gmime_special_table[(unsigned char)(x)] IS_QPSAFE) != 0) #define is_especial(x) ((gmime_special_table[(unsigned char)(x)] IS_ESAFE) != 0) #define is_psafe(x) ((gmime_special_table[(unsigned char)(x)] IS_PSAFE) != 0) #define is_attrchar(x) ((gmime_special_table[(unsigned char)(x)] IS_ATTRCHAR) != 0) /* ctype replacements */ #define is_ascii(x) ((gmime_special_table[(unsigned char)(x)] IS_ASCII) != 0) #define is_blank(x) ((gmime_special_table[(unsigned char)(x)] IS_BLANK) != 0) #define CHARS_LWSP \t\n\r /* linear whitespace chars */ #define CHARS_TSPECIAL ()@,;:\\\/[]?= #define CHARS_SPECIAL ()@,;:\\\.[] #define CHARS_CSPECIAL ()\\\r /* not in comments */ #define CHARS_DSPECIAL []\\\r \t /* not in domains */ #define CHARS_ESPECIAL ()@,;:\/[]?.=_ /* encoded word specials (rfc2047 5.1) */ #define CHARS_PSPECIAL !*+-/=_ /* encoded phrase specials (rfc2047 5.3) */ #define CHARS_ATTRCHAR *'% /* attribute-char from rfc2184 */ #define GMIME_FOLD_LEN 76 #define w(x) #define d(x) static char * decode_value (const char **in) { const char *inptr = *in; if (*inptr == '') { return decode_quoted_string (in); } else if (is_ttoken (*inptr)) { return decode_token (in); } return decode_token (in); } static char * decode_param_token (const char **in) { const char *inptr = *in; while (is_ttoken (*inptr) *inptr != '*') inptr++; } static gboolean decode_rfc2184_param (const char **in, char **paramp, int *part, gboolean *encoded) { const char *inptr = *in; decode_param_token (inptr); } static gboolean decode_param (const char **in, char **paramp, char **valuep, int *id, gboolean *encoded) { gboolean is_rfc2184 = FALSE; const char *inptr = *in; char *param, *value = NULL; char *val; is_rfc2184 = decode_rfc2184_param (inptr, param, id, encoded); if (*inptr == '=') { inptr++; value = decode_value (inptr); if (!is_rfc2184 value) { if (strstr (value, =?) != NULL) { /* We (may) have a broken param value that is rfc2047 * encoded. Since both Outlook and Netscape/Mozilla do * this, we should handle this case. */ if ((val = g_mime_utils_header_decode_text (value))) { g_free (value); value = val; } } if (!g_utf8_validate (value, -1, NULL)) { /* A (broken) mailer has sent us an unencoded 8bit