public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29
@ 2014-06-12 16:18 rose.garcia-eggl2fk at yopmail dot com
  2014-06-12 16:21 ` [Bug lto/61487] " rose.garcia-eggl2fk at yopmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rose.garcia-eggl2fk at yopmail dot com @ 2014-06-12 16:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487

            Bug ID: 61487
           Summary: LTO breaks on mips with wireless-tools 0.29
           Product: gcc
           Version: 4.8.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rose.garcia-eggl2fk at yopmail dot com

http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz
(no dependencies, so easy to test)

when built with a gcc 4.8.3 linux crosscompiler plus -flto, i get:

mips-linux-musl-gcc -L/media/3T/x-prefix/mips/lib -isystem
/media/3T/x-prefix/mips/include -s -Wl,--gc-sections -Wl,-z,relro,-z,now -flto
-static -Wl,-s -D_GNU_SOURCE -D_BSD_SOURCE -fdata-sections -ffunction-sections
-Os -g0 -fno-unwind-tables -fno-asynchronous-unwind-tables -Wa,--noexecstack
-ftree-dce -s -Os -flto -MMD     -o iwlist iwlist.o libiw.a -lm
lto1: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2935

(the crosscompiler is built from the musl-cross project, current tip as of
today, using musl 1.1.1; but my guess is that this would happen with other
libcs as well)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug lto/61487] LTO breaks on mips with wireless-tools 0.29
  2014-06-12 16:18 [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29 rose.garcia-eggl2fk at yopmail dot com
@ 2014-06-12 16:21 ` rose.garcia-eggl2fk at yopmail dot com
  2014-06-12 16:45 ` rose.garcia-eggl2fk at yopmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rose.garcia-eggl2fk at yopmail dot com @ 2014-06-12 16:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487

--- Comment #1 from Rose Garcia <rose.garcia-eggl2fk at yopmail dot com> ---
i forgot to add that the same works fine with exactly the same toolchain built
for armv7l.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug lto/61487] LTO breaks on mips with wireless-tools 0.29
  2014-06-12 16:18 [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29 rose.garcia-eggl2fk at yopmail dot com
  2014-06-12 16:21 ` [Bug lto/61487] " rose.garcia-eggl2fk at yopmail dot com
@ 2014-06-12 16:45 ` rose.garcia-eggl2fk at yopmail dot com
  2014-06-13  9:43 ` rguenth at gcc dot gnu.org
  2014-06-13 10:26 ` rose.garcia-eggl2fk at yopmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rose.garcia-eggl2fk at yopmail dot com @ 2014-06-12 16:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487

--- Comment #2 from Rose Garcia <rose.garcia-eggl2fk at yopmail dot com> ---
maybe related (fails also only on mips with -flto)
libpcap 1.3.0 (compiled WITH -fPIC)
http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz

mips-linux-musl-gcc -L/media/3T/x-prefix/mips/lib -isystem
/media/3T/x-prefix/mips/include -shared -Wl,-soname,libpcap.so.$MAJOR_VER -s
-Wl,--gc-sections -Wl,-z,relro,-z,now -flto \
    -o libpcap.so.$VER pcap-linux.o pcap-usb-linux.o pcap-can-linux.o
pcap-netfilter-linux.o fad-gifc.o pcap.o inet.o gencode.o optimize.o
nametoaddr.o etherent.o savefile.o sf-pcap.o sf-pcap-ng.o pcap-common.o
bpf_image.o bpf_dump.o  scanner.o grammar.o bpf_filter.o version.o   -lnl-tiny
-lnl 
ranlib libpcap.a
/home/rose/musl-cross-4.8.3/mips-linux-musl/lib/gcc/mips-linux-musl/4.8.3/../../../../mips-linux-musl/bin/ld:
/tmp/ccchmGhk.ltrans0.ltrans.o: relocation R_MIPS_HI16 against `__gnu_local_gp'
can not be used when making a shared object; recompile with -fPIC
/tmp/ccchmGhk.ltrans0.ltrans.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

from the looks of it it appears of if __gnu_local_gp could be a libgcc symbol.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug lto/61487] LTO breaks on mips with wireless-tools 0.29
  2014-06-12 16:18 [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29 rose.garcia-eggl2fk at yopmail dot com
  2014-06-12 16:21 ` [Bug lto/61487] " rose.garcia-eggl2fk at yopmail dot com
  2014-06-12 16:45 ` rose.garcia-eggl2fk at yopmail dot com
@ 2014-06-13  9:43 ` rguenth at gcc dot gnu.org
  2014-06-13 10:26 ` rose.garcia-eggl2fk at yopmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-13  9:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Target|                            |mips

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe you can check if it is fixed with GCC 4.9.0?

What mips target triplet exactly?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug lto/61487] LTO breaks on mips with wireless-tools 0.29
  2014-06-12 16:18 [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29 rose.garcia-eggl2fk at yopmail dot com
                   ` (2 preceding siblings ...)
  2014-06-13  9:43 ` rguenth at gcc dot gnu.org
@ 2014-06-13 10:26 ` rose.garcia-eggl2fk at yopmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rose.garcia-eggl2fk at yopmail dot com @ 2014-06-13 10:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61487

--- Comment #4 from Rose Garcia <rose.garcia-eggl2fk at yopmail dot com> ---
(In reply to Richard Biener from comment #3)
> What mips target triplet exactly?

mips-linux-musl

(using the patches/buildscripts from https://bitbucket.org/GregorR/musl-cross,
as musl support has still not been merged into gcc)

but i suspect the bug affects mips-linux-* or even mips-*


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-13 10:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 16:18 [Bug lto/61487] New: LTO breaks on mips with wireless-tools 0.29 rose.garcia-eggl2fk at yopmail dot com
2014-06-12 16:21 ` [Bug lto/61487] " rose.garcia-eggl2fk at yopmail dot com
2014-06-12 16:45 ` rose.garcia-eggl2fk at yopmail dot com
2014-06-13  9:43 ` rguenth at gcc dot gnu.org
2014-06-13 10:26 ` rose.garcia-eggl2fk at yopmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).