From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6076 invoked by alias); 3 Nov 2011 21:00:37 -0000 Received: (qmail 6066 invoked by uid 22791); 3 Nov 2011 21:00:36 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_IV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Nov 2011 21:00:22 +0000 From: "joel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/50989] New: sparc libgcc2 __udivmoddi4 has undefined reference to .umul Date: Thu, 03 Nov 2011 21:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joel at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00337.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50989 Bug #: 50989 Summary: sparc libgcc2 __udivmoddi4 has undefined reference to .umul Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: joel@gcc.gnu.org Thu Nov 3 12:25:34 UTC 2011 (revision 180821) This is a regression from 4.6. This failure is from the autoconf probe in RTEMS looking for scandir(). It fails because of a linking error. I think this is because sparc/t-softmul is not in the tmake_file list in libgcc/config.host. Does it sound right? RTEMS is always cross compiled and sparc-rtems* is always (for now) v7 and v8 sparc. configure:5128: sparc-rtems4.11-gcc --pipe -o conftest -g -O2 -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs conftest.c >&5 conftest.c:49:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c:58:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] /users/joel/test-gcc/install-svn/lib/gcc/sparc-rtems4.11/4.7.0/../../../../sparc-rtems4.11/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000010074 /users/joel/test-gcc/install-svn/lib/gcc/sparc-rtems4.11/4.7.0/../../../../sparc-rtems4.11/lib/libg.a(lib_a-qsort.o): In function `qsort': /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:160: undefined reference to `.umul' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:208: undefined reference to `.umul' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:214: undefined reference to `.udiv' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:218: undefined reference to `.udiv' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:163: undefined reference to `.umul' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:165: undefined reference to `.umul' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:201: undefined reference to `.umul' /users/joel/test-gcc/gcc-svn/newlib/libc/search/qsort.c:154: undefined reference to `.umul' /users/joel/test-gcc/install-svn/lib/gcc/sparc-rtems4.11/4.7.0/libgcc.a(_divdi3.o): In function `__udivmoddi4': /users/joel/test-gcc/gcc-svn/libgcc/libgcc2.c:935: undefined reference to `.udiv'