* [Buildroot] uclibc make fails building libpthread for powerpc32
[not found] <D61182AC8012EA4EBC531B3AF23BE10958329C@tranzeo-mail2.12stewart.tranzeo.com>
@ 2008-04-16 15:07 ` Darcy Watkins
2008-04-16 18:21 ` sjhill at realitydiluted.com
0 siblings, 1 reply; 3+ messages in thread
From: Darcy Watkins @ 2008-04-16 15:07 UTC (permalink / raw)
To: buildroot
I see the compile error below attempting to build buildroot with POSIX
pthreads selected instead of linux pthreads.
------
CC libpthread/linuxthreads/sysdeps/pthread/errno-loc.os
In file included from
./libpthread/linuxthreads/sysdeps/powerpc/pt-machine.h:5,
from
./libpthread/linuxthreads/sysdeps/powerpc/tls.h:25,
from ./include/bits/uClibc_errno.h:14,
from ./include/errno.h:62,
from
libpthread/linuxthreads/sysdeps/pthread/errno-loc.c:21:
./libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pt-machine.h:79:
warning: C99 inline functions are not supported; using GNU89
./libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pt-machine.h:79:
warning: to disable this warning use -fgnu89-inline or the gnu_inline
function attribute
./libpthread/linuxthreads/sysdeps/powerpc/powerpc32/pt-machine.h:103:
warning: C99 inline functions are not supported; using GNU89
In file included from
libpthread/linuxthreads/sysdeps/pthread/errno-loc.c:22:
./libpthread/linuxthreads/internals.h:538: warning: C99 inline functions
are not supported; using GNU89
libpthread/linuxthreads/sysdeps/pthread/errno-loc.c:23:27: error:
sysdep-cancel.h: No such file or directory
make[1]: *** [libpthread/linuxthreads/sysdeps/pthread/errno-loc.os]
Error 1
make[1]: Leaving directory
`/home/darcy/workspace/tsf-buildroot/buildroot/toolchain_build_powerpc/u
Clibc-0.9.29'
make: ***
[/home/darcy/workspace/tsf-buildroot/buildroot/toolchain_build_powerpc/u
Clibc-0.9.29/lib/libc.a] Error 2
----------
The patches below allowed me to compile for powerpc (PPC405EP). You
will notice that they are hacks and likely will not work for other
architectures. I think that the cause is missing/bad '-I' paths in the
build files for building uClibc (either the buildroot files or the
makefiles in uClibc itself).
----------
diff -pruN
uClibc-0.9.29/libpthread/linuxthreads/sysdeps/pthread/errno-loc.c
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/pthread/errno-loc.c
--- uClibc-0.9.29/libpthread/linuxthreads/sysdeps/pthread/errno-loc.c
2006-01-30 21:05:15.000000000 -0800
+++
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/pthread/errno-loc.c
2008-04-16 06:27:41.000000000 -0700
@@ -20,7 +20,7 @@
#include <errno.h>
#include <linuxthreads/internals.h>
-#include <sysdep-cancel.h>
+//#include <sysdep-cancel.h>
#if ! USE___THREAD && !RTLD_PRIVATE_ERRNO
#undef errno
diff -pruN
uClibc-0.9.29/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
--- uClibc-0.9.29/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
2006-01-30 21:05:15.000000000 -0800
+++
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/pthread/herrno-loc.c
2008-04-16 07:01:16.000000000 -0700
@@ -19,7 +19,7 @@
#include <netdb.h>
#include <tls.h>
#include <linuxthreads/internals.h>
-#include <sysdep-cancel.h>
+#include <powerpc/powerpc32/sysdep-cancel.h>
#if ! USE___THREAD
# undef h_errno
diff -pruN
uClibc-0.9.29/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/po
werpc32/sysdep-cancel.h
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerp
c/powerpc32/sysdep-cancel.h
---
uClibc-0.9.29/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerpc/po
werpc32/sysdep-cancel.h 2006-01-30 21:05:15.000000000 -0800
+++
uClibc-0.9.29.mod/libpthread/linuxthreads/sysdeps/unix/sysv/linux/powerp
c/powerpc32/sysdep-cancel.h 2008-04-16 07:04:14.000000000 -0700
@@ -17,7 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-#include <sysdep.h>
+//#include <sysdep.h>
#include <tls.h>
#ifndef __ASSEMBLER__
# include <linuxthreads/internals.h>
Regards,
Darcy
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] uclibc make fails building libpthread for powerpc32
2008-04-16 15:07 ` [Buildroot] uclibc make fails building libpthread for powerpc32 Darcy Watkins
@ 2008-04-16 18:21 ` sjhill at realitydiluted.com
2008-04-16 18:33 ` Darcy Watkins
0 siblings, 1 reply; 3+ messages in thread
From: sjhill at realitydiluted.com @ 2008-04-16 18:21 UTC (permalink / raw)
To: buildroot
On Wed, Apr 16, 2008 at 08:07:49AM -0700, Darcy Watkins wrote:
> I see the compile error below attempting to build buildroot with POSIX
> pthreads selected instead of linux pthreads.
>
PowerPC NPTL is not supported in uClibc currently. Your hacks let you
build, but your system will not run.
-Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] uclibc make fails building libpthread for powerpc32
2008-04-16 18:21 ` sjhill at realitydiluted.com
@ 2008-04-16 18:33 ` Darcy Watkins
0 siblings, 0 replies; 3+ messages in thread
From: Darcy Watkins @ 2008-04-16 18:33 UTC (permalink / raw)
To: buildroot
Thanks Steve,
That is probably why I also later get an unresolved external to
__wrap_nanosleep later when trying to use libpthread.so.1
Regards,
Darcy
-----Original Message-----
From: sjhill@realitydiluted.com [mailto:sjhill at realitydiluted.com]
Sent: Wednesday, April 16, 2008 11:22 AM
To: Darcy Watkins
Cc: buildroot at uclibc.org
Subject: Re: [Buildroot] uclibc make fails building libpthread for
powerpc32
On Wed, Apr 16, 2008 at 08:07:49AM -0700, Darcy Watkins wrote:
> I see the compile error below attempting to build buildroot with POSIX
> pthreads selected instead of linux pthreads.
>
PowerPC NPTL is not supported in uClibc currently. Your hacks let you
build, but your system will not run.
-Steve
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-16 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <D61182AC8012EA4EBC531B3AF23BE10958329C@tranzeo-mail2.12stewart.tranzeo.com>
2008-04-16 15:07 ` [Buildroot] uclibc make fails building libpthread for powerpc32 Darcy Watkins
2008-04-16 18:21 ` sjhill at realitydiluted.com
2008-04-16 18:33 ` Darcy Watkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox