[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg bus error on sparc/unstable: Re: Bits from the RM



On Tue, 26 Aug 2003, Adam Heath wrote:

> Well, if I compile lib/myopt.c and lib/startup.c, without -O2, I get no bus
> error.  Maybe this is a gcc issue?

gcc 3.2 also fails, but 2.95 works fine, no errors.

<doogie> lib/myopt.c(loadcfgfile)
<mrvn> doogie: Did that ever stop anything from breaking?
<doogie> with -O2, it fails in that function, on the last free
<doogie> when I remove -O2, it fails in lib/startup.c:standard_startup
<doogie> removing -O2 from that file, and it works(I don't know where it
failed in that function)

ps: compiling statically with 2.95 and libc 2.3.2-2 fails, with:

gcc-2.95 -L../lib -L../optlib -static -o md5sum-static  md5sum.o -ldpkg -lopt
/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'




Reply to: