minimal-uclibc: systemd fails with `src/manager.c:257:42: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)`
Dear OE folks,
task compile of systemd_git.bb fails with the following error message using minimal-uclibc for MACHINE = "beagleboard". Using minimal, i. e. EGLIBC, works.
[…]
| CC src/libsystemd_core_la-manager.lo
| src/manager.c: In function 'manager_new':
| src/manager.c:257:9: warning: implicit declaration of function 'epoll_create1' [-Wimplicit-function-declaration] | src/manager.c:257:42: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)
| src/manager.c:257:42: note: each undeclared identifier is reported only once for each function it appears in | src/manager.c: In function 'manager_process_notify_fd':
| src/manager.c:1956:25: warning: cast increases required alignment of target type [-Wcast-align] […]
manager.c includes
#include <sys/epoll.h>
#include <fcntl.h>which I read should contain that definition. But looking at fcntl.h I could not find it. I then looked in
./minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/sys/epoll.h
where it is defined for EGLIBC but not for uClibc. I also found the patch for uClibc [1] but there EPOLL_CLOEXEC is enclosed in #if 0.
I am no uClibc expert, but do you know if uClibc will provide EPOLL_CLOEXEC in the near future? How should systemd fix that?
Please find attached a patch updating systemd to a newer including a commit fixing another problem with systemd and uClibc.
Thanks,
Paul
[1] http://lists.uclibc.org/pipermail/uclibc-cvs/2011-March/028879.html
From a135d73cfc7f4c0eb8da344d5bf0d49668ffdbf9 Mon Sep 17 00:00:00 2001
From: Paul Menzel <[email protected]>
Date: Tue, 10 May 2011 09:19:02 +0200
Subject: [PATCH] systemd: bump srcrev
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
• better uClibc support [1], but still fails in src/manager.c
• Ȧngström support merged upstream [2]
Still needs native docbook-xsl which is not available in OE.
[1] http://cgit.freedesktop.org/systemd/commit/?id=ec2002f84928c0b5921a961cb2b8637563f29daa
[2] http://cgit.freedesktop.org/systemd/commit/?id=1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3
--- .../systemd-v26/0003-Angstrom-support.patch | 165 -------------------- recipes/systemd/systemd_git.bb | 3 +- 2 files changed, 1 insertions(+), 167 deletions(-) delete mode 100644 recipes/systemd/systemd-v26/0003-Angstrom-support.patch
recipes/systemd/systemd-v26/0003-Angstrom-support.patch deleted +0 -165
@@ -1,165 +0,0 @@ -From 0fa5b59c5f484c80453e9d3201b87e4253f8bec3 Mon Sep 17 00:00:00 2001 -From: Koen Kooi <[email protected]> -Date: Thu, 5 May 2011 17:15:41 +0200 -Subject: [PATCH 3/3] Angstrom support - -This commit consists of the initial work to include Angstrom as a ported -distribution for systemd. - -Angstrom tries to follow the debian way as much as possible, but deviates -where it doesn't make sense for 'embedded'. - -Signed-off-by: Koen Kooi <[email protected]> ---- - Makefile.am | 7 +++++++ - configure.ac | 7 +++++++ - src/locale-setup.c | 2 +- - src/service.c | 10 +++++----- - src/util.c | 12 ++++++++++++ - 5 files changed, 32 insertions(+), 6 deletions(-) - -diff --git a/Makefile.am b/Makefile.am -index 49d2ee8..f3f7818 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -96,6 +96,12 @@ AM_CPPFLAGS += \ - -DKBD_SETFONT=\"/bin/setfont\" \ - -DDEFAULT_FONT=\"LatArCyrHeb-16\" - else -+if TARGET_ANGSTROM -+AM_CPPFLAGS += \ -+ -DKBD_LOADKEYS=\"/usr/bin/loadkeys\" \ -+ -DKBD_SETFONT=\"/usr/bin/setfont\" \ -+ -DDEFAULT_FONT=\"LatArCyrHeb-16\" -+else - AM_CPPFLAGS += \ - -DKBD_LOADKEYS=\"/bin/loadkeys\" \ - -DKBD_SETFONT=\"/bin/setfont\" \ -@@ -105,6 +111,7 @@ endif - endif - endif - endif -+endif - - rootbin_PROGRAMS = \ - systemd \ -diff --git a/configure.ac b/configure.ac -index dcd4b9d..b5b7ac3 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -295,6 +295,7 @@ if test "z$with_distro" = "z"; then - test -f "/etc/altlinux-release" && with_distro="altlinux" - test -f "/etc/mandriva-release" && with_distro="mandriva" - test -f "/etc/meego-release" && with_distro="meego" -+ test -f "/etc/angstrom-version" && with_distro="angstrom" - if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then - with_distro="ubuntu" - fi -@@ -375,6 +376,11 @@ case $with_distro in - AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo]) - M4_DISTRO_FLAG=-DTARGET_MEEGO=1 - ;; -+ angstrom) -+ SYSTEM_SYSVRCND_PATH=/etc -+ AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström]) -+ M4_DISTRO_FLAG=-DTARGET_ANGSTROM=1 -+ ;; - other) - ;; - *) -@@ -425,6 +431,7 @@ AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware) - AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux) - AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva) - AM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego) -+AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom) - - AM_CONDITIONAL(HAVE_PLYMOUTH, test -n "$have_plymouth") - AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes") -diff --git a/src/locale-setup.c b/src/locale-setup.c -index d9adfa3..33111da 100644 ---- a/src/locale-setup.c -+++ b/src/locale-setup.c -@@ -136,7 +136,7 @@ int locale_setup(void) { - log_warning("Failed to read /etc/sysconfig/language: %s", strerror(-r)); - } - --#elif defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) -+#elif defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_ANGSTROM) - if (r <= 0 && - (r = parse_env_file("/etc/default/locale", NEWLINE, - "LANG", &variables[VARIABLE_LANG], -diff --git a/src/service.c b/src/service.c -index e7a5622..f826754 100644 ---- a/src/service.c -+++ b/src/service.c -@@ -65,7 +65,7 @@ static const struct { - { "boot.d", SPECIAL_SYSINIT_TARGET, RUNLEVEL_SYSINIT }, - #endif - --#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_FRUGALWARE) -+#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_FRUGALWARE) || defined(TARGET_ANGSTROM) - /* Debian style rcS.d */ - { "rcS.d", SPECIAL_SYSINIT_TARGET, RUNLEVEL_SYSINIT }, - #endif -@@ -246,7 +246,7 @@ static char *sysv_translate_name(const char *name) { - if (!(r = new(char, strlen(name) + sizeof(".service")))) - return NULL; - --#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) -+#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_ANGSTROM) - if (endswith(name, ".sh")) - /* Drop Debian-style .sh suffix */ - strcpy(stpcpy(r, name) - 3, ".service"); -@@ -297,7 +297,7 @@ static int sysv_translate_facility(const char *name, const char *filename, char - "x-display-manager", SPECIAL_DISPLAY_MANAGER_SERVICE, - "null", NULL, - --#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) -+#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_ANGSTROM) - "mail-transport-agent", SPECIAL_MAIL_TRANSFER_AGENT_TARGET, - #endif - -@@ -887,7 +887,7 @@ static int service_load_sysv_name(Service *s, const char *name) { - - /* For SysV services we strip the boot.*, rc.* and *.sh - * prefixes/suffixes. */ --#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) -+#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_ANGSTROM) - if (endswith(name, ".sh.service")) - return -ENOENT; - #endif -@@ -914,7 +914,7 @@ static int service_load_sysv_name(Service *s, const char *name) { - - r = service_load_sysv_path(s, path); - --#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) -+#if defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU) || defined(TARGET_ANGSTROM) - if (r >= 0 && s->meta.load_state == UNIT_STUB) { - /* Try Debian style *.sh source'able init scripts */ - strcat(path, ".sh"); -diff --git a/src/util.c b/src/util.c -index f0051ee..5af9161 100644 ---- a/src/util.c -+++ b/src/util.c -@@ -3426,6 +3426,18 @@ void status_welcome(void) { - - if (!ansi_color) - const_color = "1;35"; /* Bright Magenta for MeeGo */ -+#elif defined(TARGET_ANGSTROM) -+ -+ if (!pretty_name) { -+ if ((r = read_one_line_file("/etc/angstrom-version", &pretty_name)) < 0) { -+ -+ if (r != -ENOENT) -+ log_warning("Failed to read /etc/angstrom-version: %s", strerror(-r)); -+ } -+ } -+ -+ if (!ansi_color) -+ const_color = "1;35"; /* Bright Magenta for Angstrom */ - #endif - - if (!pretty_name && !const_pretty) --- -1.6.6.1 -
recipes/systemd/systemd_git.bb +1 -2
@@ -15,12 +15,11 @@ PR_append = "+${SRCPV}" inherit autotools vala update-alternatives -TAG = "7a6000a68241d23c9f6f6bde47b2cfa9c18189da" +TAG = "ec2002f84928c0b5921a961cb2b8637563f29daa" SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git;tag=${TAG} \ file://execute.patch \ file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \ - file://0003-Angstrom-support.patch \ file://replace_accpet4.patch \ file://[email protected] \ "
Signature · 1 line
1.7.5.1
Quoted 2 lines · Paul Menzel
I am no uClibc expert, but do you know if uClibc will provide
EPOLL_CLOEXECin the near future? How should systemd fix that?
It's not just EPOLL_CLOEXEC: uClibc seems to be missing epoll_create1() entirely. As far as I know there's nothing complex about that, though:
it's just a standard syscall wrapper, so I don't know why it would have been deliberately left out. I guess you'd have to ask the uClibc h4x0rs about that.
There probably is no trivial workaround available to systemd. If you wanted a quick hack to make it work then you could call syscall(SYS_epoll_create1, O_CLOEXEC) manually. Or you could perhaps eliminate the usage of EPOLL_CLOEXEC in favour of a separate fcntl() call, but that may not be safe if systemd is multithreaded.
p.
Quoted 10 lines · Phil Blundell
Quoted 2 lines · Paul Menzel
I am no uClibc expert, but do you know if uClibc will provide
EPOLL_CLOEXECin the near future? How should systemd fix that?It's not just
EPOLL_CLOEXEC: uClibc seems to be missingepoll_create1()entirely. As far as I know there's nothing complex about that, though:
it's just a standard syscall wrapper, so I don't know why it would have been deliberately left out. I guess you'd have to ask the uClibc h4x0rs about that.
Quoted 5 lines
There probably is no trivial workaround available to systemd. If you wanted a quick hack to make it work then you could call
syscall(SYS_epoll_create1, O_CLOEXEC)manually. Or you could perhaps eliminate the usage ofEPOLL_CLOEXECin favour of a separatefcntl()call, but that may not be safe if systemd is multithreaded.
It was only omitted until now since nobody asked for it.
You should be set if you can trick someone into updating to c91c3a2b27f5909e190cde4518383864298e82af or later.
new uClibc srcrev fails with `unwind-resume.c:31:19: error: expected ')' before 'struct'` (was: minimal-uclibc: systemd fails with `src/manager.c:257:42: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)`)
Am Mittwoch, den 11.05.2011, 22:25 +0200 schrieb Bernhard Reutner-Fischer:
Quoted 17 lines · Phil Blundell
Quoted 10 lines · Paul Menzel
Quoted 2 lines
I am no uClibc expert, but do you know if uClibc will provide
EPOLL_CLOEXECin the near future? How should systemd fix that?It's not just
EPOLL_CLOEXEC: uClibc seems to be missingepoll_create1()entirely. As far as I know there's nothing complex about that, though:
it's just a standard syscall wrapper, so I don't know why it would have been deliberately left out. I guess you'd have to ask the uClibc h4x0rs about that.Quoted 5 lines
There probably is no trivial workaround available to systemd. If you wanted a quick hack to make it work then you could call
syscall(SYS_epoll_create1, O_CLOEXEC)manually. Or you could perhaps eliminate the usage ofEPOLL_CLOEXECin favour of a separatefcntl()call, but that may not be safe if systemd is multithreaded.
Quoted 4 lines
It was only omitted until now since nobody asked for it.
You should be set if you can trick someone into updating to
c91c3a2b27f5909e190cde4518383864298e82afor later.
Bernhard, thank you very much. I tried to update to this revision, but the build fails with the following error.
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c -o libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -I./librt -DIS_IN_librt -MT libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.oS -MD -MP -MF libpthread/nptl/sysdeps/unix/sysv/linux/.timer_settime.oS.dep arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/pthread/librt-cancellation.c -o libpthread/nptl/sysdeps/pthread/librt-cancellation.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -fexceptions -fasynchronous-unwind-tables -MT libpthread/nptl/sysdeps/pthread/librt-cancellation.oS -MD -MP -MF libpthread/nptl/sysdeps/pthread/.librt-cancellation.oS.dep libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c: In function 'timer_helper_thread':
libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c:73:1: warning: function might be possible candidate for attribute 'noreturn'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c -o libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -fexceptions -fasynchronous-unwind-tables -MT libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS -MD -MP -MF libpthread/nptl/sysdeps/pthread/.rt-unwind-resume.oS.dep In file included from ./libpthread/nptl/pthreadP.h:23:0,
from libpthread/nptl/sysdeps/pthread/librt-cancellation.c:20:
./include/pthread.h:585:1: warning: no previous prototype for '__pthread_cleanup_routine'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_getcpuclockid.c -o librt/clock_getcpuclockid.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_getcpuclockid.oS -MD -MP -MF librt/.clock_getcpuclockid.oS.dep
In file included from ./include/bits/uClibc_mutex.h:15:0,
from ./include/bits/uClibc_stdio.h:119,
from ./include/stdio.h:72,
from ./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:21,
from libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c:1:
./include/pthread.h:585:1: warning: no previous prototype for '__pthread_cleanup_routine'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_gettime.c -o librt/clock_gettime.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_gettime.oS -MD -MP -MF librt/.clock_gettime.oS.dep
In file included from libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c:1:0:
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:31:19: error: expected ')' before 'struct'
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c: In function 'init':
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:49:3: error: 'libgcc_s_personality' undeclared (first use in this function)
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:49:3: note: each undeclared identifier is reported only once for each function it appears in
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c: At top level:
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:109:37: error: expected ')' before 'state'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_nanosleep.c -o librt/clock_nanosleep.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_nanosleep.oS -MD -MP -MF librt/.clock_nanosleep.oS.dep
make: *** [libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS] Error 1
make: *** Waiting for unfinished jobs....
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1
Please find the patch I did attached.
Thanks,
Paul
From acb913bc7bbbba4d77c03b892b1b7d571ab342a7 Mon Sep 17 00:00:00 2001
From: Paul Menzel <[email protected]>
Date: Sat May 14 00:07:18 2011 +0200
Subject: [RFC][PATCH] uclibc_git.bb: update to new srcrev
Task compile fails with the following error.
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.c -o libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -I./librt -DIS_IN_librt -MT libpthread/nptl/sysdeps/unix/sysv/linux/timer_settime.oS -MD -MP -MF libpthread/nptl/sysdeps/unix/sysv/linux/.timer_settime.oS.dep arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/pthread/librt-cancellation.c -o libpthread/nptl/sysdeps/pthread/librt-cancellation.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -fexceptions -fasynchronous-unwind-tables -MT libpthread/nptl/sysdeps/pthread/librt-cancellation.oS -MD -MP -MF libpthread/nptl/sysdeps/pthread/.librt-cancellation.oS.dep libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c: In function 'timer_helper_thread':
libpthread/nptl/sysdeps/unix/sysv/linux/timer_routines.c:73:1: warning: function might be possible candidate for attribute 'noreturn'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c -o libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -fexceptions -fasynchronous-unwind-tables -MT libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS -MD -MP -MF libpthread/nptl/sysdeps/pthread/.rt-unwind-resume.oS.dep In file included from ./libpthread/nptl/pthreadP.h:23:0,
from libpthread/nptl/sysdeps/pthread/librt-cancellation.c:20:
./include/pthread.h:585:1: warning: no previous prototype for '__pthread_cleanup_routine'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_getcpuclockid.c -o librt/clock_getcpuclockid.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_getcpuclockid.oS -MD -MP -MF librt/.clock_getcpuclockid.oS.dep
In file included from ./include/bits/uClibc_mutex.h:15:0,
from ./include/bits/uClibc_stdio.h:119,
from ./include/stdio.h:72,
from ./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:21,
from libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c:1:
./include/pthread.h:585:1: warning: no previous prototype for '__pthread_cleanup_routine'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_gettime.c -o librt/clock_gettime.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_gettime.oS -MD -MP -MF librt/.clock_gettime.oS.dep
In file included from libpthread/nptl/sysdeps/pthread/rt-unwind-resume.c:1:0:
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:31:19: error: expected ')' before 'struct'
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c: In function 'init':
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:49:3: error: 'libgcc_s_personality' undeclared (first use in this function)
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:49:3: note: each undeclared identifier is reported only once for each function it appears in
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c: At top level:
./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c:109:37: error: expected ')' before 'state'
arm-oe-linux-uclibceabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi -c librt/clock_nanosleep.c -o librt/clock_nanosleep.oS -include ./include/libc-symbols.h -Wall -Wstrict-prototypes -Wstrict-aliasing -Wformat=2 -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Wshadow -Wundef -funsigned-char -fno-builtin -fno-asm -std=gnu99 -mlittle-endian -fno-stack-protector -nostdinc -I./include -I./include -I. -I./libc/sysdeps/linux -I./libc/sysdeps/linux/arm -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pipe -g -Os -funit-at-a-time -fmerge-all-constants -fstrict-aliasing -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -DHAVE_FORCED_UNWIND -I./libpthread/nptl -I./libpthread/nptl -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm/ -I./libpthread/nptl/sysdeps/unix/sysv/linux/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/arm -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/unix/sysv/linux -I./libpthread/nptl/sysdeps/pthread -I./libpthread/nptl/sysdeps/pthread/bits -I./libpthread/nptl/sysdeps/generic -I./ldso/ldso/arm -I./ldso/include -I./libc/sysdeps/linux/common -I/oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/ -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include-fixed -isystem /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/i686-linux/usr/armv7a/lib/gcc/arm-oe-linux-uclibceabi/4.5.3/include -DNDEBUG -D__USE_STDIO_FUTEXES__ -fPIC -DSHARED -DNOT_IN_libc -DIS_IN_librt -MT librt/clock_nanosleep.oS -MD -MP -MF librt/.clock_nanosleep.oS.dep
make: *** [libpthread/nptl/sysdeps/pthread/rt-unwind-resume.oS] Error 1
make: *** Waiting for unfinished jobs....
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1
--- .../uclibc/uclibc-git/detect-bx-availibility.patch | 75 -- recipes/uclibc/uclibc-git/fts-support.patch | 1375 -------------------- recipes/uclibc/uclibc-git/include-arm-asm.h.patch | 65 - recipes/uclibc/uclibc-git/powerpc_copysignl.patch | 107 -- .../uclibc-git/remove-eabi-oabi-selection.patch | 91 -- .../uclibc-git/remove-sub-arch-variants.patch | 215 --- recipes/uclibc/uclibc-git/reorder-use-BX.patch | 72 - recipes/uclibc/uclibc-git/select-force-thumb.patch | 172 --- .../uclibc-git/transform-eabi-oabi-choice.patch | 71 - .../uclibc-git/uclibc_enable_log2_test.patch | 30 - recipes/uclibc/uclibc_git.bb | 16 +- 11 files changed, 2 insertions(+), 2287 deletions(-) delete mode 100755 recipes/uclibc/uclibc-git/detect-bx-availibility.patch delete mode 100644 recipes/uclibc/uclibc-git/fts-support.patch delete mode 100755 recipes/uclibc/uclibc-git/include-arm-asm.h.patch delete mode 100755 recipes/uclibc/uclibc-git/powerpc_copysignl.patch delete mode 100755 recipes/uclibc/uclibc-git/remove-eabi-oabi-selection.patch delete mode 100755 recipes/uclibc/uclibc-git/remove-sub-arch-variants.patch delete mode 100755 recipes/uclibc/uclibc-git/reorder-use-BX.patch delete mode 100755 recipes/uclibc/uclibc-git/select-force-thumb.patch delete mode 100755 recipes/uclibc/uclibc-git/transform-eabi-oabi-choice.patch delete mode 100644 recipes/uclibc/uclibc-git/uclibc_enable_log2_test.patch
recipes/uclibc/uclibc-git/detect-bx-availibility.patch deleted +0 -75
@@ -1,75 +0,0 @@ -Delivered-To: [email protected] -Received: by 10.90.86.4 with SMTP id j4cs313307agb; - Sat, 8 Jan 2011 16:45:20 -0800 (PST) -Received: by 10.227.141.78 with SMTP id l14mr16920947wbu.128.1294533919168; - Sat, 08 Jan 2011 16:45:19 -0800 (PST) -Return-Path: <[email protected]> -Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) - by mx.google.com with ESMTP id w30si33755908wbd.17.2011.01.08.16.45.18; - Sat, 08 Jan 2011 16:45:19 -0800 (PST) -Received-SPF: neutral (google.com: 80.12.242.123 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=80.12.242.123; -Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.123 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected] -Received: from roazhon.bzh.lan ([90.32.245.227]) - by mwinf5d24 with ME - id tClC1f0024v5z3u03ClHDo; Sun, 09 Jan 2011 01:45:18 +0100 -From: "Yann E. MORIN" <[email protected]> -To: [email protected] -Cc: Khem Raj <[email protected]>, - Bernhard Reutner-Fischer <[email protected]>, - Carmelo AMOROSO <[email protected]> -Subject: [PATCH 6/7] ARM: detect BX availibility at build time -Date: Sun, 9 Jan 2011 01:45:09 +0100 -Message-Id: <1294533910-19305-7-git-send-email-yann.morin.1998@anciens.enib.fr> -X-Mailer: git-send-email 1.7.1 -In-Reply-To: <1294533910-19305-1-git-send-email-yann.morin.1998@anciens.enib.fr> -References: <1294533910-19305-1-git-send-email-yann.morin.1998@anciens.enib.fr> - -The "use BX" option is now a suggestion that BX be used if available. -Use a macro to detect if BX is available at build time. If so, and -the user requested it be used, then use it. Otherwise, error out. - -Macro courtesy Khem RAJ: - http://lists.uclibc.org/pipermail/uclibc/2009-April/042301.html - -Signed-off-by: "Yann E. MORIN" <[email protected]> -Cc: Khem Raj <[email protected]> -Cc: Bernhard Reutner-Fischer <[email protected]> -Cc: Carmelo AMOROSO <[email protected]> ---- - extra/Configs/Config.arm | 4 +++- - libc/sysdeps/linux/arm/bits/arm_asm.h | 9 ++++++++- - 2 files changed, 11 insertions(+), 2 deletions(-) - -diff --git a/extra/Configs/Config.arm b/extra/Configs/Config.arm -index 227b90c..9aa9e56 100644 ---- a/extra/Configs/Config.arm -+++ b/extra/Configs/Config.arm -@@ -33,4 +33,6 @@ config COMPILE_IN_THUMB_MODE - config USE_BX - bool "Use BX in function return" - help -- Use BX instruction for THUMB aware architectures. -+ Say 'y' to use BX to return from functions on your thumb-aware -+ processor. Say 'y' if you need to use interworking. Say 'n' if not. -+ It is safe to say 'y' even if you're not doing interworking. -diff --git a/libc/sysdeps/linux/arm/bits/arm_asm.h b/libc/sysdeps/linux/arm/bits/arm_asm.h -index 1d87df6..921c9a3 100644 ---- a/libc/sysdeps/linux/arm/bits/arm_asm.h -+++ b/libc/sysdeps/linux/arm/bits/arm_asm.h -@@ -24,5 +24,12 @@ - #define THUMB1_ONLY 1 - #endif - --#endif /* _ARM_ASM_H */ -+#if defined(__USE_BX__) -+# if ( defined (__ARM_ARCH_2__) || defined (__ARM_ARCH_3__) \ -+ || defined (__ARM_ARCH_3M__) || defined (__ARM_ARCH_4__) \ -+ ) -+# error Use of BX was requested, but is not available on the target processor. -+# endif /* ARCH level */ -+#endif /* __USE_BX__ */ - -+#endif /* _ARM_ASM_H */ --- -1.7.1 -
recipes/uclibc/uclibc-git/fts-support.patch deleted +0 -1375
1,375 lines not on this page · raw message
recipes/uclibc/uclibc-git/include-arm-asm.h.patch deleted +0 -65
65 lines not on this page · raw message
recipes/uclibc/uclibc-git/powerpc_copysignl.patch deleted +0 -107
107 lines not on this page · raw message
recipes/uclibc/uclibc-git/remove-eabi-oabi-selection.patch deleted +0 -91
91 lines not on this page · raw message
recipes/uclibc/uclibc-git/remove-sub-arch-variants.patch deleted +0 -215
215 lines not on this page · raw message
recipes/uclibc/uclibc-git/reorder-use-BX.patch deleted +0 -72
72 lines not on this page · raw message
recipes/uclibc/uclibc-git/select-force-thumb.patch deleted +0 -172
172 lines not on this page · raw message
recipes/uclibc/uclibc-git/transform-eabi-oabi-choice.patch deleted +0 -71
71 lines not on this page · raw message
recipes/uclibc/uclibc-git/uclibc_enable_log2_test.patch deleted +0 -30
@@ -1,30 +0,0 @@ -Index: uClibc/test/math/libm-test.inc -=================================================================== ---- uClibc/test/math/libm-test.inc (revision 23784) -+++ uClibc/test/math/libm-test.inc (working copy) -@@ -3414,7 +3414,6 @@ - } - - --#if 0 - static void - log2_test (void) - { -@@ -3444,7 +3443,6 @@ - - END (log2); - } --#endif - - - static void -@@ -4967,9 +4965,7 @@ - log_test (); - log10_test (); - log1p_test (); --#if 0 - log2_test (); --#endif - logb_test (); - modf_test (); - ilogb_test ();
recipes/uclibc/uclibc_git.bb +2 -14
@@ -7,14 +7,14 @@ # on whether the base patches apply to the selected (SRCDATE) svn release. # UCLIBC_BASE ?= "0.9.32" -SRCREV="251f2266bf24b1b396f59eef60d0acf41fdd02e4" +SRCREV="1bfe83b42b5b850c20ed8d35819cced510eaef3c" PR_append = "+gitr${SRCPV}" DEFAULT_PREFERENCE = "-1" #DEFAULT_PREFERENCE is 0 (empty), releases have a preference of 1 so take # precedence. require uclibc.inc -PR = "${INC_PR}.9" +PR = "${INC_PR}.10" PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc" #recent versions uclibc require real kernel headers
@@ -28,17 +28,5 @@ SRC_URI = "git://uclibc.org/uClibc.git;branch=master;protocol=git \ file://uClibc.config \ file://uClibc.machine \ file://uClibc.distro \ - file://uclibc-arm-ftruncate64.patch \ - file://uclibc_enable_log2_test.patch \ - file://ldso_use_arm_dl_linux_resolve_in_thumb_mode.patch \ - file://reorder-use-BX.patch \ - file://select-force-thumb.patch \ - file://remove-sub-arch-variants.patch \ - file://transform-eabi-oabi-choice.patch \ - file://include-arm-asm.h.patch \ - file://detect-bx-availibility.patch \ - file://remove-eabi-oabi-selection.patch \ - file://powerpc_copysignl.patch \ - file://fts-support.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
1.7.2.5
Re: new uClibc srcrev fails with `unwind-resume.c:31:19: error: expected ')' before 'struct'` (was: minimal-uclibc: systemd fails with `src/manager.c:257:42: error: 'EPOLL_CLOEXEC' undeclared (first use in this function)`)
Hi Paul,
first,
Khem and I discovered it too and Khem had a fix for it and I think he will push it soon into uclibc-gi tree.
Move the headers around:
mv include/unwind.h libc/sysdeps/linux/common/
mv ./libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind.h ./libc/sysdeps/linux/arm/
second
you wont be able to compile systemd, after working around as much as possible there are to many CPU_ functions missing in uclibc.
Bye Henning
Re: [solved] new uClibc srcrev fails with `unwind-resume.c:31:19: error: expected ')' before 'struct'`
Dear Henning,
Am Samstag, den 14.05.2011, 00:26 +0200 schrieb Henning Heinold:
Quoted 4 lines
first,
Khem and I discovered it too and Khem had a fix for it and I think he will push it soon into uclibc-gi tree.
thank you. Commit 71d63ed7 [1] indeed fixed it.
[…]
Quoted 2 lines
second you wont be able to compile systemd, after working around as much as possible there are to many
CPU_functions missing in uclibc.
Thank you for the information. I will probably try it anyway to get the error message so I can post it somewhere in case anybody else searches for this on the Web. Maybe someone steps up and enhances uClibc.
Thanks,
Paul
[1] http://git.uclibc.org/uClibc/commit/?id=71d63ed75648da9b0b71afabb9c60aaad792c55c