* Build cross compile tool chain for PPC
@ 2008-10-02 10:13 刘林
2008-10-02 12:21 ` Josh Boyer
2008-10-03 16:14 ` Robert Schwebel
0 siblings, 2 replies; 3+ messages in thread
From: 刘林 @ 2008-10-02 10:13 UTC (permalink / raw)
To: linuxppc-embedded
Hi, All,
I am a newby for ppc embedded linux. When trying to build the cross compiling tool
chain, I got some error message in making glibc (binutils and gcc are successfully
built).
Error message is:
{quote}
assert.c: In function ¡®__assert_fail¡¯:
assert.c:54: error: ¡®__libc_pthread_functions_init¡¯ undeclared (first use in
this function)
assert.c:54: error: (Each undeclared identifier is reported only once
assert.c:54: error: for each function it appears in.)
assert.c:54: warning: implicit declaration of function ¡®PTHFCT_CALL¡¯
assert.c:54: error: ¡®ptr_pthread_setcancelstate¡¯ undeclared (first use in this
function)
assert.c:54: warning: left-hand operand of comma expression has no effect
make[2]: ***
[/root/embedded_linux/ppc/build-tools/build-glibc/ppc-glibc/assert/assert.os]
Error 1
make[2]: Leaving directory
`/root/embedded_linux/ppc/build-tools/build-glibc/glibc-2.7/assert'
make[1]: *** [assert/subdir_lib] Error 2
make[1]: Leaving directory
`/root/embedded_linux/ppc/build-tools/build-glibc/glibc-2.7'
make: *** [all] Error 2
{quote}
My environments are:
kernel: 2.26. 25
gcc & powerpc-linux-gcc: 4.3.2
binutils:2.18
glibc:2.7, configured with linuxthreads enabled and nptl disabled.
My question is which packages should be used to build the toolchain for kernel
2.26.25
? Am I choosing the right version of these packages? Where can I find such
information?
Thank you very much in advance for any hints or suggestions.
Best Regards.
Lin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Build cross compile tool chain for PPC
2008-10-02 10:13 Build cross compile tool chain for PPC 刘林
@ 2008-10-02 12:21 ` Josh Boyer
2008-10-03 16:14 ` Robert Schwebel
1 sibling, 0 replies; 3+ messages in thread
From: Josh Boyer @ 2008-10-02 12:21 UTC (permalink / raw)
To: 刘林; +Cc: linuxppc-embedded
On Thu, 02 Oct 2008 18:13:49 +0800
"=C3=A5=C2=88=C2=98=C3=A6=C2=9E=C2=97" <liu_lin02@tsinghua.org.cn> wrote:
> Hi, All,
>=20
> I am a newby for ppc embedded linux. When trying to build the cross compi=
ling tool
> chain, I got some error message in making glibc (binutils and gcc are suc=
cessfully
> built).
>=20
> Error message is:
>=20
> {quote}
> assert.c: In function =C2=A1=C2=AE__assert_fail=C2=A1=C2=AF:
> assert.c:54: error: =C2=A1=C2=AE__libc_pthread_functions_init=C2=A1=C2=AF=
undeclared (first use in
> this function)
> assert.c:54: error: (Each undeclared identifier is reported only once
> assert.c:54: error: for each function it appears in.)
> assert.c:54: warning: implicit declaration of function =C2=A1=C2=AEPTHFCT=
_CALL=C2=A1=C2=AF
> assert.c:54: error: =C2=A1=C2=AEptr_pthread_setcancelstate=C2=A1=C2=AF un=
declared (first use in this
> function)
> assert.c:54: warning: left-hand operand of comma expression has no effect
> make[2]: ***
> [/root/embedded_linux/ppc/build-tools/build-glibc/ppc-glibc/assert/assert=
.os]
> Error 1
> make[2]: Leaving directory
> `/root/embedded_linux/ppc/build-tools/build-glibc/glibc-2.7/assert'
> make[1]: *** [assert/subdir_lib] Error 2
> make[1]: Leaving directory
> `/root/embedded_linux/ppc/build-tools/build-glibc/glibc-2.7'
> make: *** [all] Error 2
>=20
> {quote}
>=20
> My environments are:
>=20
> kernel: 2.26. 25
> gcc & powerpc-linux-gcc: 4.3.2
> binutils:2.18
> glibc:2.7, configured with linuxthreads enabled and nptl disabled.
glibc 2.7 does not support linuxthreads. It is nptl only. And you
should really be using nptl anyway.
josh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Build cross compile tool chain for PPC
2008-10-02 10:13 Build cross compile tool chain for PPC 刘林
2008-10-02 12:21 ` Josh Boyer
@ 2008-10-03 16:14 ` Robert Schwebel
1 sibling, 0 replies; 3+ messages in thread
From: Robert Schwebel @ 2008-10-03 16:14 UTC (permalink / raw)
To: ????; +Cc: linuxppc-embedded
On Thu, Oct 02, 2008 at 06:13:49PM +0800, ???? wrote:
> I am a newby for ppc embedded linux. When trying to build the cross
> compiling tool chain, I got some error message in making glibc
> (binutils and gcc are successfully built).
Building cross toolchains is a complicated thing; you may want to have a
look at the existing community build tools, like for example
OSELAS.Toolchain:
http://www.pengutronix.de/oselas/toolchain/index_en.html
The latest beta for 2.0 is here:
http://www.pengutronix.de/oselas/toolchain/download/OSELAS.Toolchain-1.99.0.tar.bz2
(gcc-4.3.2, glibc-2.8, binutils-2.18, kernel-headers-2.6.26)
The more stable 1.x series is here:
http://www.pengutronix.de/oselas/toolchain/download/OSELAS.Toolchain-1.1.1.tar.bz2
(gcc-4.1.2, glibc-2.6, binutils-2.16, kernel-headers-2.6.18)
rsc
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Hannoversche Str. 2, 31134 Hildesheim, Germany
Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-03 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 10:13 Build cross compile tool chain for PPC 刘林
2008-10-02 12:21 ` Josh Boyer
2008-10-03 16:14 ` Robert Schwebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).