Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Bug#657682: gcc-4.6: assembler error on armhf Error: can't resolve `.rodata' {.rodata section} - `.LPIC10' {*UND* section} (http://www.linux-archive.org/debian-gcc/625933-bug-657682-gcc-4-6-assembler-error-armhf-error-cant-resolve-rodata-rodata-section-lpic10-und-section.html)

Peter Green 01-27-2012 10:07 PM

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 zlib1g 1: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-gold <none>
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-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120127230750.4413.83942.reportbug@debian">http://lists.debian.org/20120127230750.4413.83942.reportbug@debian

peter green 01-27-2012 10:13 PM

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.

Loc Minier 01-28-2012 04:56 PM

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,
--
Loc Minier



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120128175639.GB14790@bee.dooz.org">http://lists.debian.org/20120128175639.GB14790@bee.dooz.org

Loc Minier 01-28-2012 05:16 PM

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

--
Loc Minier



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120128181650.GA16982@bee.dooz.org">http://lists.debian.org/20120128181650.GA16982@bee.dooz.org

Michael Hope 01-28-2012 08:20 PM

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" <lool@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-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/20120128175639.GB14790@bee.dooz.org

Michael Hope 01-30-2012 06:17 PM

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-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CANLjY-mdFZO-87BQ+MuGjfQqOfo-fJh7X6N8BJWc9UnktF4Lkg@mail.gmail.com">http://lists.debian.org/CANLjY-mdFZO-87BQ+MuGjfQqOfo-fJh7X6N8BJWc9UnktF4Lkg@mail.gmail.com

peter green 03-10-2012 02:55 AM

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-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4F5AD09F.6030501@p10link.net">http://lists.debian.org/4F5AD09F.6030501@p10link.net


All times are GMT. The time now is 09:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.