[parisc-linux] gcc-3.2 bootstrap?

John David Anglin dave@hiauly1.hia.nrc.ca
Tue, 16 Jul 2002 11:16:35 -0400 (EDT)


> I just modify to match my develop env and mainly I added --host=hppa-linux (I am
> building gcc-3.2 on a b2000) in the configure:
> '$GCC_SRC/gcc/configure --prefix=$TOOLS --enable-languages=c --host=hppa-linux'
> 
> Should I had to prefer --target=hppa-linux to build a native bootstrap?

That's unnecessary for native build.

> Well this produce well a gcc (bootstrap?).
> 
> but when I try to use it to compile kernel-2.4.18-pa54 I got following error:
> `gcc -print-libgcc-file-name`
> /Develop/parisc-linux/src/linux-2.4.18-pa54/arch/parisc/lib/lib.a
> /Develop/parisc-linux/src/linux-2.4.18-pa54/lib/lib.a  \
>         --end-group \
>         -o vmlinux
> arch/parisc/kernel/kernel.o(__ksymtab+0x258): undefined reference to `$$mulU'  
> make: *** [vmlinux] Error 1
> 
> (after a make distclean; make oldconfig)
> 
> What is it wrong?

Possibilities are:

  1) you either didn't install what you built.
  2) you moved stuff around so libgcc couldn't be found.
  3) libgcc.a didn't build when you built your cross.
  4) linker script didn't link in libgcc.a.

$$mulU is a millicode routine in libgcc.a.

> Or would it be better to continue with xcompiler hppa->hppa?

You are just adding more complication to the process trying to use
ia64.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)