Bug#213051: libc6-dev: gcc-2.95 -static fails: "undefined reference to `.udiv'"
Package: libc6-dev
Version: 2.3.2-7
Severity: normal
Statically linking a program with gcc-2.95 fails with the following
errors:
$ gcc-2.95 -static test.c
/usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_udivdi3.o)(.text+0xac): In
function `__udivdi3':
: undefined reference to `.udiv'
/usr/lib/gcc-lib/sparc-linux/2.95.4/libgcc.a(_umoddi3.o)(.text+0xac): In
function `__umoddi3':
: undefined reference to `.udiv'
collect2: ld returned 1 exit status
test.c is just an empty main().
I also checked this problem against the following versions of libc6-dev:
2.3.2-8: problem occurs
2.2.5-11.5: works fine
Unfortunately I couldn't find any older 2.3.x .debs
gcc-3.2 and gcc-3.3 both work fine with 2.3.2-7
installed gcc versions:
ii gcc-2.95 2.95.4-17 The GNU C compiler.
ii gcc-3.2 3.2.3-8 The GNU C compiler
ii gcc-3.3 3.3.2-0pre4 The GNU C compiler
-- System Information:
Debian Release: testing/unstable
Architecture: sparc
Kernel: Linux argonath-linux 2.4.22-anbe2-sparc64-smp #1 SMP Thu Sep 25 06:25:50 CEST 2003 sparc64
Locale: LANG=C, LC_CTYPE=C
Versions of packages libc6-dev depends on:
ii libc6 2.3.2-7 GNU C Library: Shared libraries an
-- no debconf information
Is there any other information you need?
Andreas
Reply to: