[OpenWrt-Devel] [packages] broken package: procd is broken in 15.05 (#1879)
Daniel Golle
daniel at makrotopia.org
Tue Oct 20 19:34:04 EDT 2015
Hi!
This has been an argument going on between the gcc and the glibc people
for about 10 years now.
See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
It seems like commit b6618ffa which added the symlinks silently broke
things when building with glibc.
Don't ask me why glibc enabled warn_unused_result for symlink(3) but
doesn't for found mount(2) or mkdir(3)...
A way around it would be to take things as they are and simply make
sure to surpress the warning as shown in
http://www.redhat.com/archives/rhl-devel-list/2007-March/msg00692.html
Please try the following patch on procd and see if that helps 'fixing'
the unused-return-value warning:
---
diff --git a/initd/early.c b/initd/early.c
index f410256..f82ce54 100644
--- a/initd/early.c
+++ b/initd/early.c
@@ -66,7 +66,7 @@ early_mounts(void)
mount("sysfs", "/sys", "sysfs", MS_NOATIME | MS_NODEV | MS_NOEXEC | MS_NOSUID, 0);
mount("cgroup", "/sys/fs/cgroup", "cgroup", MS_NODEV | MS_NOEXEC | MS_NOSUID, 0);
mount("tmpfs", "/dev", "tmpfs", MS_NOATIME | MS_NOSUID, "mode=0755,size=512K");
- symlink("/tmp/shm", "/dev/shm");
+ ignore(symlink("/tmp/shm", "/dev/shm"));
mkdir("/dev/pts", 0755);
mount("devpts", "/dev/pts", "devpts", MS_NOATIME | MS_NOEXEC | MS_NOSUID, "mode=600");
early_dev();
diff --git a/plug/coldplug.c b/plug/coldplug.c
index 123e17d..74e345d 100644
--- a/plug/coldplug.c
+++ b/plug/coldplug.c
@@ -45,7 +45,7 @@ void procd_coldplug(void)
umount2("/dev/pts", MNT_DETACH);
umount2("/dev/", MNT_DETACH);
mount("tmpfs", "/dev", "tmpfs", MS_NOSUID, "mode=0755,size=512K");
- symlink("/tmp/shm", "/dev/shm");
+ ignore(symlink("/tmp/shm", "/dev/shm"));
mkdir("/dev/pts", 0755);
umask(oldumask);
mount("devpts", "/dev/pts", "devpts", MS_NOEXEC | MS_NOSUID, 0);
diff --git a/procd.h b/procd.h
index 66d183c..204a2bb 100644
--- a/procd.h
+++ b/procd.h
@@ -56,4 +56,5 @@ void watch_add(const char *_name, void *id);
void watch_del(void *id);
void watch_ubus(struct ubus_context *ctx);
+inline __attribute__((always_inline)) int ignore(int x) {return x;}
#endif
---
On Tue, Oct 20, 2015 at 03:34:07PM -0700, ClaymorePT wrote:
> procd is broken in x86-64
>
> The compile output follows:
>
> [claymore at manjaro 15.05]$ make ./package/system/procd/compile V=s
> make[1]: Entering directory '/home/ArkHDD/OpenWRT/15.05'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/toolchain'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libatomic" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libssp" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libstdcpp" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "libthread-db" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install.clean; fi; echo "librt" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/toolchain.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/toolchain'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/libjson-c'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libjson-c.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libjson-c.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libjson-c.default.install.clean; fi; echo "libjson-c" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libjson-c.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/libjson-c'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/utils/lua'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install.clean; fi; echo "liblua" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install.clean; fi; echo "lua" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lua.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/utils/lua'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/libubox'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean; fi; echo "libubox" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean; fi; echo "libblobmsg-json" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean; fi; echo "jshn" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install.clean; fi; echo "libjson-script" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/libubox.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/libubox'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/system/ubus'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean; fi; echo "libubus" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean; fi; echo "libubus-lua" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean; fi; echo "ubus" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install.clean; fi; echo "ubusd" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubus.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/system/ubus'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/system/uci'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean; fi; echo "uci" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean; fi; echo "libuci" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install.clean; fi; echo "libuci-lua" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/uci.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/system/uci'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/system/ubox'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubox.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubox.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubox.default.install.clean; fi; echo "ubox" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ubox.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/system/ubox'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/lzo'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lzo.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lzo.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lzo.default.install.clean; fi; echo "liblzo" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/lzo.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/lzo'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/zlib'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/zlib.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/zlib.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/zlib.default.install.clean; fi; echo "zlib" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/zlib.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/zlib'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean; fi; echo "terminfo" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean; fi; echo "libncurses" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncursesw.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncursesw.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncursesw.install.clean; fi; echo "libncursesw" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncursesw.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean; fi; echo "terminfo" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install.clean; fi; echo "libncurses" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/ncurses.libncurses.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/libs/ncurses'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/utils/util-linux'
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "libblkid" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "libmount" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "libsmartcols" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "libuuid" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "blkid" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "fdisk" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "findfs" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "lsblk" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "sfdisk" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "swap-utils" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "uuidd" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "uuidgen" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> if [ -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean ]; then rm -f /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install.clean; fi; echo "wipefs" >> /home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/pkginfo/util-linux.default.install
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/utils/util-linux'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/utils/ubi-utils'
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/utils/ubi-utils'
> make[2]: Entering directory '/home/ArkHDD/OpenWRT/15.05/package/system/procd'
> CFLAGS="-O3 -pipe -mtune=atom -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/usr/include -I/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/include -I/home/ArkHDD/OpenWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/usr/include -I/home/ArkHDD/OpenWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/include " CXXFLAGS="-O3 -pipe -mtune=atom -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/usr/include -I/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/include -I/home/ArkHDD/OpenWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/usr/include -I/home/ArkHDD/O
pe
> nWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/include " LDFLAGS="-L/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/usr/lib -L/home/ArkHDD/OpenWRT/15.05/staging_dir/target-x86_64_glibc-2.21/lib -L/home/ArkHDD/OpenWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/usr/lib -L/home/ArkHDD/OpenWRT/15.05/staging_dir/toolchain-x86_64_gcc-4.8-linaro_glibc-2.21/lib -lrt " make -j1 -C /home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16/. AR="x86_64-openwrt-linux-gnu-gcc-ar" AS="x86_64-openwrt-linux-gnu-gcc -c -O3 -pipe -mtune=atom -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-gnu-ld NM="x86_64-openwrt-linux-gnu-gcc-nm" CC="x86_64-openwrt-linux-gnu-gcc" GCC="x86_64-openwrt-linux-gnu-gcc" CXX="x86_64-openwrt-linux-gnu-g++" RANLIB="x86_64-openwrt-linux-gnu-gcc-ranlib" STRIP=x86_
64
> -openwrt-linux-gnu-strip OBJCOPY=x86_64-openwrt-linux-gnu-objcopy OBJDUMP=x86_64-openwrt-linux-gnu-objdump SIZE=x86_64-openwrt-linux-gnu-size CROSS="x86_64-openwrt-linux-gnu-" ARCH="x86_64" ;
> make[3]: Entering directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> make[4]: Entering directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> make[5]: Entering directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> make[5]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> [ 4%] Built target askfirst
> make[5]: Entering directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> make[5]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> make[5]: Entering directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> [ 8%] Building C object CMakeFiles/init.dir/initd/early.c.o
> /home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16/initd/early.c: In function 'early_mounts':
> /home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16/initd/early.c:69:9: error: ignoring return value of 'symlink', declared with attribute warn_unused_result [-Werror=unused-result]
> symlink("/tmp/shm", "/dev/shm");
> ^
> cc1: all warnings being treated as errors
> CMakeFiles/init.dir/build.make:80: recipe for target 'CMakeFiles/init.dir/initd/early.c.o' failed
> make[5]: *** [CMakeFiles/init.dir/initd/early.c.o] Error 1
> make[5]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> CMakeFiles/Makefile2:129: recipe for target 'CMakeFiles/init.dir/all' failed
> make[4]: *** [CMakeFiles/init.dir/all] Error 2
> make[4]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> Makefile:116: recipe for target 'all' failed
> make[3]: *** [all] Error 2
> make[3]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16'
> Makefile:143: recipe for target '/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16/.built' failed
> make[2]: *** [/home/ArkHDD/OpenWRT/15.05/build_dir/target-x86_64_glibc-2.21/procd-2015-09-16/.built] Error 2
> make[2]: Leaving directory '/home/ArkHDD/OpenWRT/15.05/package/system/procd'
> package/Makefile:191: recipe for target 'package/system/procd/compile' failed
> make[1]: *** [package/system/procd/compile] Error 2
> make[1]: Leaving directory '/home/ArkHDD/OpenWRT/15.05'
> /home/ArkHDD/OpenWRT/15.05/include/toplevel.mk:181: recipe for target 'package/system/procd/compile' failed
> make: *** [package/system/procd/compile] Error 2
> [claymore at manjaro 15.05]$
>
>
>
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/openwrt/packages/issues/1879
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list