* [parisc-linux] gcc-3.2 bootstrap?
@ 2002-07-16 15:04 joel.soete
2002-07-16 15:16 ` John David Anglin
2002-07-16 16:13 ` Randolph Chung
0 siblings, 2 replies; 6+ messages in thread
From: joel.soete @ 2002-07-16 15:04 UTC (permalink / raw)
To: parisc-linux
Hi all,
Exploring another stuff (gcc bootstrap), I found:
http://www-124.ibm.com/developer/opensource/linux/tools/gcc/ia64cross.tar.gz
to build an ia64 xcompiler (which allow also to build a bootstrap)
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?
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?
Or would it be better to continue with xcompiler hppa->hppa?
Many thanks for all,
Joel
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] gcc-3.2 bootstrap?
2002-07-16 15:04 [parisc-linux] gcc-3.2 bootstrap? joel.soete
@ 2002-07-16 15:16 ` John David Anglin
2002-07-16 16:03 ` joel.soete
2002-07-16 16:13 ` Randolph Chung
1 sibling, 1 reply; 6+ messages in thread
From: John David Anglin @ 2002-07-16 15:16 UTC (permalink / raw)
To: joel.soete; +Cc: parisc-linux
> 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)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] gcc-3.2 bootstrap?
2002-07-16 15:16 ` John David Anglin
@ 2002-07-16 16:03 ` joel.soete
0 siblings, 0 replies; 6+ messages in thread
From: joel.soete @ 2002-07-16 16:03 UTC (permalink / raw)
To: John David Anglin; +Cc: joel.soete, parisc-linux
Quoting John David Anglin <dave@hiauly1.hia.nrc.ca>:
>
> 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.
Humm?
In the debian package gcc-3.0 I found this lib and
strings /usr/lib/gcc-lib/hppa-linux/3.0.4/libgcc.a | grep mulU
show me well two entries.
but in ./native/lib/gcc-lib/hppa-linux/3.2 (as well in ./cross) I do not found
anything like this.
So this is a 5th possibility: the procedure used failled to build correctly this
lib (at least?)
>
> > Or would it be better to continue with xcompiler hppa->hppa?
>
> You are just adding more complication to the process trying to use
> ia64.
Oops I wrongly explain (sorry for confusion): I do not use ia64, I just use this
procedure as a model.
I change just enough to run it on my hppa-linux box (a b2000 here) but without
success :(. I still have a lot to learn.
Thanks for info,
Joel
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] gcc-3.2 bootstrap?
2002-07-16 15:04 [parisc-linux] gcc-3.2 bootstrap? joel.soete
2002-07-16 15:16 ` John David Anglin
@ 2002-07-16 16:13 ` Randolph Chung
2002-07-16 16:39 ` joel.soete
1 sibling, 1 reply; 6+ messages in thread
From: Randolph Chung @ 2002-07-16 16:13 UTC (permalink / raw)
To: joel.soete; +Cc: parisc-linux
> 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'
fwiw i use something like this:
~/src/gcc-3.2/configure --prefix=/home/tausq/opt/gnu --host=hppa-linux --build=hppa-linux --target=hppa-linux --enable-shared --disable-nls --enable-languages=c
if building hppa64-linux compilers, use --target=hppa64-linux instead.
then i do 'make bootstrap-lean' and then 'make install', set my PATH to
include /home/tausq/opt/gnu/bin, run 'gcc -v' to make sure i have the
right version in my path, and then build the kernel.
alternatively, if i were building a cross-compiler (say
hppa-linux->hppa64-linux), i would just do 'make' instead of 'make
bootstrap-lean'
hth,
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] gcc-3.2 bootstrap?
2002-07-16 16:13 ` Randolph Chung
@ 2002-07-16 16:39 ` joel.soete
0 siblings, 0 replies; 6+ messages in thread
From: joel.soete @ 2002-07-16 16:39 UTC (permalink / raw)
To: Randolph Chung; +Cc: joel.soete, parisc-linux
Quoting Randolph Chung <randolph@tausq.org>:
> > 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'
>
> fwiw i use something like this:
>
> ~/src/gcc-3.2/configure --prefix=/home/tausq/opt/gnu --host=hppa-linux
> --build=hppa-linux --target=hppa-linux --enable-shared --disable-nls
> --enable-languages=c
A yes (I see)
>
> if building hppa64-linux compilers, use --target=hppa64-linux instead.
>
> then i do 'make bootstrap-lean' and then 'make install', set my PATH to
> include /home/tausq/opt/gnu/bin, run 'gcc -v' to make sure i have the
> right version in my path, and then build the kernel.
The PATH was well set (gcc --version shows me well 3.2 20020711 ...)
>
> alternatively, if i were building a cross-compiler (say
> hppa-linux->hppa64-linux), i would just do 'make' instead of 'make
> bootstrap-lean'
That make me the idea clear.
Many thanks,
Joel
PS: humm I found something: mulU stand well in pa.c and pa.o well knows mulU but
is not in libgcc.a but well in libbackend.a?
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [parisc-linux] gcc-3.2 bootstrap?
[not found] <no.id>
@ 2002-07-16 17:27 ` John David Anglin
0 siblings, 0 replies; 6+ messages in thread
From: John David Anglin @ 2002-07-16 17:27 UTC (permalink / raw)
To: John David Anglin; +Cc: joel.soete, parisc-linux
> > 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'
> $$mulU is a millicode routine in libgcc.a.
Sorry, this routine is no longer in libgcc.a. It was in the 32-bit
library for 3.0.x. However, we have switched to the "64-bit" millicode
for both 32 and 64 bit code. Gcc doesn't use it anymore but I see there
are a couple of remnants to clean up.
Your problem appears to be with arch/parisc/kernel/parisc_ksyms.c.
It imports the symbol.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-07-16 17:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-16 15:04 [parisc-linux] gcc-3.2 bootstrap? joel.soete
2002-07-16 15:16 ` John David Anglin
2002-07-16 16:03 ` joel.soete
2002-07-16 16:13 ` Randolph Chung
2002-07-16 16:39 ` joel.soete
[not found] <no.id>
2002-07-16 17:27 ` John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox