Re: 2.3.26pre2 compile error

Horst von Brand (vonbrand@inf.utfsm.cl)
Fri, 05 Nov 1999 09:01:12 -0300


Keith Owens <kaos@ocs.com.au> said:
> On Fri, 5 Nov 1999 03:59:48 -0600 (CST),
> Peter Samuelson <peter@wire.cadcamlab.org> wrote:
> >[Tonglu Yi]
> >> fs/filesystems.a(fat.o): In function `fat_truncate':
> >> fat.o(.text+0x22ad): undefined reference to `__divdi3'

> >Does this help?
> >
> >--- linux/Makefile.orig Thu Nov 4 23:26:48 1999
> >+++ linux/Makefile Fri Nov 5 03:58:05 1999
> >@@ -244,6 +244,7 @@
> > $(DRIVERS) \
> > $(LIBS) \
> > --end-group \
> >+ `$(CC) -print-libgcc-file-name` \
> > -o vmlinux
> > $(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aU] \)\|\(\.\.ng$
> $\)\|\(LASH[RL]DI\)' | sort > System.map

> Did you really mean to link libgcc.a into the kernel? That cannot be
> right, the kernel does not use external libraries.

It is not an "external library", it implements instructions the
machine doesn't have.

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/