cdk building

3 messages, 2 authors, 2000-03-12 · open the first message on its own page

cdk building

From: Quan Qu <hidden>
Date: 2000-03-11 08:08:31

hello,everybody.I am new to this mail-list.

I am using Mr. wolfgang 's solution below on Redhat6.1  to build CDK.
Summary: I've put the scripts I'm using to build the PPC Cross
Development Kit for the MPC8xx CPUs on

ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CDK.tar.gz

or URL where I got the sources from:

ftp://ftp.valinux.com/pub/support/hjl/binutils/binutils-2.9.5.0.22.t
ar.bz2
ftp://ftp.sunet.se/pub/gnu/egcs/releases/gcc-2.95.2/gcc-core-2.95.2.
tar.bz2
ftp://ftp.sunet.se/pub/gnu/egcs/releases/gcc-2.95.2/gcc-2.95.2.tar.b
z2
ftp://ftp.sunet.se/pub/gnu/glibc/glibc-2.1.2.tar.gz
ftp://ftp.gwdg.de/pub/linux/glibc/2.1.2/glibc-crypt-2.1.2.tar.gz
ftp://ftp.sunet.se/pub/gnu/glibc/glibc-linuxthreads-2.1.2.tar.gz
ftp://linuxppc.cs.nmt.edu/pub/mirror/PPC/embedded/mpc8xx-2.2.13.tgz
(renamed to linux-2.2.13.tar.gz)
I copy the downloaded gzip source to the /LinuxPPC/usr/src/tarballs
,and modify ENVIRONMENT.
then do:
make binutils
make egcs-core
make linux
make glibc
make egcs

everything go smoothly until I reach the glibc. I got linker error:
----------------------------------------------------------
a - elf/dl-addr.os
a - elf/dl-profstub.os
a - elf/dl-origin.os
: /LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a
powerpc-linux-gcc   -nostdlib -nostartfiles -r -o
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os '-Wl,-('
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a -lgcc '-Wl,-)'
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a(init-first.os): In
function
`_dl_start':
init-first.os(.text+0x128): multiple definition of `_dl_start'
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os(.text+0x680):
first
defined here
/LinuxPPC/CDK/powerpc-linux/bin/ld: Warning: size of symbol
`_dl_start' changed
from 568 to 48 in init-first.os
collect2: ld returned 1 exit status
gmake[4]: *** [/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/librtld.os]
Error 1
----------------------------------------------------------
it seems that /LinuxPPC/CDK/powerpc-linux/bin/ld can not handle
the dynamic link libary.Does anyone have the same failure ?
and any suggestion? thanks


----
Quan Qu  ququan@cityfujisawa.ne.jp

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: cdk building

From: Dan A. Dickey <hidden>
Date: 2000-03-11 18:24:03

Quan Qu wrote:
...
I am using Mr. wolfgang 's solution below on Redhat6.1  to build CDK.
quoted
Summary: I've put the scripts I'm using to build the PPC Cross
Development Kit for the MPC8xx CPUs on

      ftp://ftp.denx.de/pub/LinuxPPC/usr/src/CDK.tar.gz

or URL where I got the sources from:

ftp://ftp.valinux.com/pub/support/hjl/binutils/binutils-2.9.5.0.22.t
ar.bz2
...
I copy the downloaded gzip source to the /LinuxPPC/usr/src/tarballs
,and modify ENVIRONMENT.
then do:
make binutils
make egcs-core
make linux
make glibc
make egcs

everything go smoothly until I reach the glibc. I got linker error:
...
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/libc_pic.a(init-first.os): In
function
`_dl_start':
init-first.os(.text+0x128): multiple definition of `_dl_start'
/LinuxPPC/usr/src/CDK/obj/glibc-2.1.2/elf/dl-allobjs.os(.text+0x680):
first
defined here
/LinuxPPC/CDK/powerpc-linux/bin/ld: Warning: size of symbol
`_dl_start' changed
from 568 to 48 in init-first.os
...

I'm not sure why, but I discovered last weekend that
trying to use binutils-2.9.5.0.27 gave me this same problem.
I switched to using binutils-2.9.5.0.22, and this problem
went away.  Make sure you are using 22 and not something newer.
Can you let me know what version you were using if not 27?
I'd like to pinpoint the version where this broke.
	-Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: cdk building

From: Quan Qu <hidden>
Date: 2000-03-12 06:29:30

hello,

Yes , I am using 27 and 29. Perhaps it is the problem!
but where can I find complete 22 archive(not diff) ? I search the ftp
servers and found only lasted version 29. Thank you very much.
hope the problem go away if I use 22.

I'm not sure why, but I discovered last weekend that
trying to use binutils-2.9.5.0.27 gave me this same problem.
I switched to using binutils-2.9.5.0.22, and this problem
went away.  Make sure you are using 22 and not something newer.
Can you let me know what version you were using if not 27?
I'd like to pinpoint the version where this broke.
-Dan

----
Quan Qu  ququan@cityfujisawa.ne.jp

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help