[parisc-linux] undefined reference in libgcc.a

Philipp Rumpf prumpf@inwestnet.de
Sat, 11 Mar 2000 19:22:26 +0100

> I've been trying to make a parisc-linux crosscompiler from a
> i586-linux-gnu platform, the binutils build with no problems, but
> at the final stage of building gcc it stops at the libgcc-test
> with the following error :
> libgcc1-test.o: In function `main_without__main':
> /home/blacky/cvs/build/gcc/../../gcc/gcc/libgcc1-test.c:20: undefined reference to `$global$'
> it seems to reference to the integer-divide function in libgcc.
> How can I get around this problem ?

The Easy Way:  remove the rule to build libgcc1-test out of the gcc Makefile.

AIUI, the right way would be to supply a crt1.o (or similar) that defines
$global$, _start aso.

	Philipp Rumpf