public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/46652] New: undefined reference to '__udivdi3' with
@ 2010-11-25  8:12 dann at ics dot uci.edu
  2010-11-25 10:06 ` [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin d.g.gorbachev at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dann at ics dot uci.edu @ 2010-11-25  8:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

           Summary: undefined reference to '__udivdi3' with
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dann@ics.uci.edu


When compiling emacs trunk using -O2 -flto -fuse-linker-plugin
(gcc configured to use gold)

This errors are emitted: 


gcc -nostdlib -Demacs -DHAVE_CONFIG_H  -I. -I/local/dann/emacs/src  
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/freetype2    -I/usr/include/alsa  
-I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtk-2.0    -I/usr/include/libxml2    -DORBIT2=1 -pthread
-I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include       -MMD -MF deps/.d  
-Wimplicit-function-declaration -Wold-style-definition
-Wdeclaration-after-statement -Wno-pointer-sign  -O2 -g -flto
-fuse-linker-plugin   -Wl,-znocombreloc  \
  -o temacs pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o dispnew.o frame.o
scroll.o xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o
character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o
xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o
gtkutil.o  emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o
insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o
casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o
callint.o eval.o floatfns.o fns.o font.o print.o lread.o syntax.o unexelf.o
bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o atimer.o
doprnt.o strftime.o intervals.o textprop.o composite.o md5.o xml.o     xfont.o
ftfont.o xftfont.o ftxfont.o terminfo.o lastfile.o    vm-limit.o  mktime.o   
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lpthread
-lSM -lICE -ltiff -ljpeg -lpng -lz -lm  -lXpm -lX11 -lXrender -lXft -lXrender
-lfontconfig -lfreetype -lz -lX11   -lasound -lm -ldl -lpthread   -lrsvg-2
-lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0     -lxml2 -lz
-lm   -lgpm   -lncurses  -pthread -lgconf-2 -lORBit-2 -lm -lgmodule-2.0 -ldl
-lgthread-2.0 -lglib-2.0   -lselinux       -lm -lgcc -lc -lgcc /usr/lib/crtn.o 
/local/dann/GCC/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../i686-pc-linux-gnu/bin/ld:
/tmp/cc2kS2mG.ltrans6.ltrans.o: in function
system_process_attributes.7144:/local/dann/emacs/src/sysdep.c:2534: error:
undefined reference to '__udivdi3'
/local/dann/GCC/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../i686-pc-linux-gnu/bin/ld:
/tmp/cc2kS2mG.ltrans6.ltrans.o: in function
system_process_attributes.7144:/local/dann/emacs/src/sysdep.c:2539: error:
undefined reference to '__udivdi3'
/local/dann/GCC/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../i686-pc-linux-gnu/bin/ld:
/tmp/cc2kS2mG.ltrans6.ltrans.o: in function
system_process_attributes.7144:/local/dann/emacs/src/sysdep.c:2534: error:
undefined reference to '__udivdi3'
/local/dann/GCC/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../i686-pc-linux-gnu/bin/ld:
/tmp/cc2kS2mG.ltrans6.ltrans.o: in function
system_process_attributes.7144:/local/dann/emacs/src/sysdep.c:2539: error:
undefined reference to '__udivdi3'
collect2: ld returned 1 exit status
make: *** [temacs] Error 1

The function in question is:

static void
time_from_jiffies (unsigned long long tval, long hz,
           time_t *sec, unsigned *usec)
{
  unsigned long long ullsec;

  *sec = tval / hz; <---- this is line 2534
  ullsec = *sec;
  tval -= ullsec * hz;
  /* Careful: if HZ > 1 million, then integer division by it yields zero.  */
  if (hz <= 1000000)
    *usec = tval * 1000000 / hz;
  else
    *usec = tval / (hz / 1000000);
}


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
@ 2010-11-25 10:06 ` d.g.gorbachev at gmail dot com
  2010-11-25 11:15 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2010-11-25 10:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d.g.gorbachev at gmail dot
                   |                            |com

--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2010-11-25 10:02:11 UTC ---
Bug 42690.


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
  2010-11-25 10:06 ` [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin d.g.gorbachev at gmail dot com
@ 2010-11-25 11:15 ` rguenth at gcc dot gnu.org
  2010-12-07  6:56 ` dann at ics dot uci.edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-25 11:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-25 10:50:34 UTC ---
.

*** This bug has been marked as a duplicate of bug 42690 ***


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
  2010-11-25 10:06 ` [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin d.g.gorbachev at gmail dot com
  2010-11-25 11:15 ` rguenth at gcc dot gnu.org
@ 2010-12-07  6:56 ` dann at ics dot uci.edu
  2010-12-07 13:27 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dann at ics dot uci.edu @ 2010-12-07  6:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

Dan Nicolaescu <dann at ics dot uci.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |

--- Comment #3 from Dan Nicolaescu <dann at ics dot uci.edu> 2010-12-07 06:56:39 UTC ---
This has been marked as a duplicate of PR42690, which in turn has been closed
as fixed.

But the problem in this report still happens with gcc 
Revision: 167509
when using gold as linker.

So it seems that this bug should be reopened.


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
                   ` (2 preceding siblings ...)
  2010-12-07  6:56 ` dann at ics dot uci.edu
@ 2010-12-07 13:27 ` hjl.tools at gmail dot com
  2011-01-26 14:51 ` hubicka at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2010-12-07 13:27 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-07 13:27:14 UTC ---
(In reply to comment #3)
> This has been marked as a duplicate of PR42690, which in turn has been closed
> as fixed.
> 
> But the problem in this report still happens with gcc 
> Revision: 167509
> when using gold as linker.
> 
> So it seems that this bug should be reopened.

I think you should open a bug report against gold.


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
                   ` (3 preceding siblings ...)
  2010-12-07 13:27 ` hjl.tools at gmail dot com
@ 2011-01-26 14:51 ` hubicka at gcc dot gnu.org
  2011-01-26 14:59 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-26 14:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dave.korn.cygwin at gmail
                   |                            |dot com, hubicka at gcc dot
                   |                            |gnu.org

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-26 14:45:25 UTC ---
Gold was updated to handle this well for binutils 2.11.1, so H.J.'s branch.
We still have issues with mainline GNU LD.  Dave, what about getting this fixed
the gold way?


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
                   ` (4 preceding siblings ...)
  2011-01-26 14:51 ` hubicka at gcc dot gnu.org
@ 2011-01-26 14:59 ` hubicka at gcc dot gnu.org
  2011-01-26 16:21 ` davek at gcc dot gnu.org
  2011-02-14  3:04 ` davek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-26 14:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-26 14:46:40 UTC ---
Gold was updated to handle this well for binutils 2.11.1, so H.J.'s branch.
We still have issues with mainline GNU LD.  Dave, what about getting this fixed
the gold way?


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
                   ` (5 preceding siblings ...)
  2011-01-26 14:59 ` hubicka at gcc dot gnu.org
@ 2011-01-26 16:21 ` davek at gcc dot gnu.org
  2011-02-14  3:04 ` davek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: davek at gcc dot gnu.org @ 2011-01-26 16:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

Dave Korn <davek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |davek at gcc dot gnu.org

--- Comment #7 from Dave Korn <davek at gcc dot gnu.org> 2011-01-26 15:19:43 UTC ---
(In reply to comment #6)
> Gold was updated to handle this well for binutils 2.11.1, so H.J.'s branch.
> We still have issues with mainline GNU LD.  Dave, what about getting this fixed
> the gold way?

Seems worth investigating.  I'll take a look at it starting tomorrow sometime.


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

* [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin
  2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
                   ` (6 preceding siblings ...)
  2011-01-26 16:21 ` davek at gcc dot gnu.org
@ 2011-02-14  3:04 ` davek at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: davek at gcc dot gnu.org @ 2011-02-14  3:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46652

Dave Korn <davek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Dave Korn <davek at gcc dot gnu.org> 2011-02-14 01:31:15 UTC ---
Closing this PR, since, as discussed, it is a binutils bug:

http://sourceware.org/bugzilla/show_bug.cgi?id=12305


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

end of thread, other threads:[~2011-02-14  1:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25  8:12 [Bug lto/46652] New: undefined reference to '__udivdi3' with dann at ics dot uci.edu
2010-11-25 10:06 ` [Bug lto/46652] undefined reference to '__udivdi3' with -flto -fuse-linker-plugin d.g.gorbachev at gmail dot com
2010-11-25 11:15 ` rguenth at gcc dot gnu.org
2010-12-07  6:56 ` dann at ics dot uci.edu
2010-12-07 13:27 ` hjl.tools at gmail dot com
2011-01-26 14:51 ` hubicka at gcc dot gnu.org
2011-01-26 14:59 ` hubicka at gcc dot gnu.org
2011-01-26 16:21 ` davek at gcc dot gnu.org
2011-02-14  3:04 ` davek at gcc dot gnu.org

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).