#19341: ubox fails to compile under (e)glibc
------------------------+----------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Resolution: | Keywords: ubox (e)glibc
------------------------+----------------------------------
Comment (by anonymous):
ar71xx (mips) netgear wndr3700v4, after latest package fix
(https://dev.openwrt.org/changeset/45141) there's a new set of errors:
make[3]: Entering directory `/mnt/storage/openwrt-
cc/trunk/package/system/ubox'
mkdir -p /mnt/storage/openwrt-cc/trunk/dl
echo "Checking out files from the git repository..."; mkdir -p
/mnt/storage/openwrt-cc/trunk/tmp/dl && cd /mnt/storage/openwrt-
cc/trunk/tmp/dl && rm -rf ubox-2015-03-29 && [ \! -d ubox-2015-03-29 ] &&
git clone git://nbd.name/luci2/ubox.git ubox-2015-03-29 --recursive && (cd
ubox-2015-03-29 && git checkout dd338ce30b6158f3f6feda9f01a2f409a8a5832c
&& git submodule update) && echo "Packing checkout..." && rm -rf
ubox-2015-03-29/.git && tar czf /mnt/storage/openwrt-
cc/trunk/tmp/dl/ubox-2015-03-29-dd338ce30b6158f3f6feda9f01a2f409a8a5832c.tar.gz
ubox-2015-03-29 && mv /mnt/storage/openwrt-
cc/trunk/tmp/dl/ubox-2015-03-29-dd338ce30b6158f3f6feda9f01a2f409a8a5832c.tar.gz
/mnt/storage/openwrt-cc/trunk/dl/ && rm -rf ubox-2015-03-29;
Checking out files from the git repository...
Cloning into 'ubox-2015-03-29'...
remote: Counting objects: 408, done.
remote: Compressing objects: 100% (265/265), done.
remote: Total 408 (delta 236), reused 238 (delta 143)
Receiving objects: 100% (408/408), 113.62 KiB | 181.00 KiB/s, done.
Resolving deltas: 100% (236/236), done.
Checking connectivity... done
Note: checking out 'dd338ce30b6158f3f6feda9f01a2f409a8a5832c'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at dd338ce... properly handle return code of pipe() syscall
Packing checkout...
. /mnt/storage/openwrt-cc/trunk/include/shell.sh; gzip -dc /mnt/storage
/openwrt-
cc/trunk/dl/ubox-2015-03-29-dd338ce30b6158f3f6feda9f01a2f409a8a5832c.tar.gz
| tar -C /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/.. -xf -
touch /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/.prepared_fc5f635b733a88cb1acbcc6a1fdd10ef
(cd /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29; CFLAGS="-Os -pipe -mno-branch-likely
-march=74kc -mtune=74kc -fno-caller-saves -fhonour-copts -Wno-error
=unused-but-set-variable -msoft-float -fstack-protector-strong
-D_FORTIFY_SOURCE=2 " CXXFLAGS="-Os -pipe -mno-branch-likely -march=74kc
-mtune=74kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-
variable -msoft-float -fstack-protector-strong -D_FORTIFY_SOURCE=2 "
LDFLAGS="-L/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/lib -L/mnt/storage/openwrt-cc/trunk/staging_dir
/target-mips_34kc_glibc-2.21/lib -L/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/lib
-L/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/lib -lrt " cmake
-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1
-DCMAKE_SYSTEM_PROCESSOR=mips -DCMAKE_BUILD_TYPE=Release
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_C_COMPILER="/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-gcc"
-DCMAKE_C_COMPILER_ARG1="" -DCMAKE_CXX_COMPILER="/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/bin
/mips-openwrt-linux-gnu-g++" -DCMAKE_CXX_COMPILER_ARG1=""
-DCMAKE_ASM_COMPILER="/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-gcc"
-DCMAKE_ASM_COMPILER_ARG1=""
-DCMAKE_EXE_LINKER_FLAGS:STRING="-L/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/usr/lib -L/mnt/storage
/openwrt-cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/lib
-L/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/lib -L/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/lib
-lrt" -DCMAKE_MODULE_LINKER_FLAGS:STRING="-L/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/usr/lib -L/mnt/storage
/openwrt-cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/lib
-L/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/lib -L/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/lib
-lrt" -DCMAKE_SHARED_LINKER_FLAGS:STRING="-L/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/usr/lib -L/mnt/storage
/openwrt-cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/lib
-L/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/lib -L/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/lib
-lrt" -DCMAKE_AR="/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-gcc-ar"
-DCMAKE_NM="/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-gcc-nm"
-DCMAKE_RANLIB="/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-gcc-ranlib"
-DCMAKE_FIND_ROOT_PATH="/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21;/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21"
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_STRIP=:
-DCMAKE_INSTALL_PREFIX=/usr -DDL_LIBRARY=/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21
-DCMAKE_PREFIX_PATH=/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21 -DCMAKE_SKIP_RPATH=TRUE . )
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /mnt/storage/openwrt-cc/trunk/staging_dir
/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-
gcc
-- Check for working C compiler: /mnt/storage/openwrt-cc/trunk/staging_dir
/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/bin/mips-openwrt-linux-gnu-
gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_ASM_COMPILER
CMAKE_ASM_COMPILER_ARG1
CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER_ARG1
CMAKE_CXX_FLAGS_RELEASE
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE
CMAKE_MODULE_LINKER_FLAGS
DL_LIBRARY
-- Build files have been written to: /mnt/storage/openwrt-
cc/trunk/build_dir/target-mips_34kc_glibc-2.21/ubox-2015-03-29
rm -f /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/.configured_*
touch /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/.configured_yyyynyyyy
CFLAGS="-Os -pipe -mno-branch-likely -march=74kc -mtune=74kc -fno-caller-
saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float
-fstack-protector-strong -D_FORTIFY_SOURCE=2 -I/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/usr/include
-I/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/include -I/mnt/storage/openwrt-cc/trunk/staging_dir
/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/include -I/mnt/storage
/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/include " CXXFLAGS="-Os -pipe -mno-
branch-likely -march=74kc -mtune=74kc -fno-caller-saves -fhonour-copts
-Wno-error=unused-but-set-variable -msoft-float -fstack-protector-strong
-D_FORTIFY_SOURCE=2 -I/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/include -I/mnt/storage/openwrt-
cc/trunk/staging_dir/target-mips_34kc_glibc-2.21/include -I/mnt/storage
/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/include -I/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/include
" LDFLAGS="-L/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/lib -L/mnt/storage/openwrt-cc/trunk/staging_dir
/target-mips_34kc_glibc-2.21/lib -L/mnt/storage/openwrt-
cc/trunk/staging_dir/toolchain-mips_34kc_gcc-4.9-linaro_glibc-2.21/usr/lib
-L/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/lib -lrt " make -j1 -C /mnt/storage
/openwrt-cc/trunk/build_dir/target-mips_34kc_glibc-2.21/ubox-2015-03-29/.
AR="mips-openwrt-linux-gnu-gcc-ar" AS="mips-openwrt-linux-gnu-gcc -c -Os
-pipe -mno-branch-likely -march=74kc -mtune=74kc -fno-caller-saves
-fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -fstack-
protector-strong -D_FORTIFY_SOURCE=2" LD=mips-openwrt-linux-gnu-ld NM
="mips-openwrt-linux-gnu-gcc-nm" CC="mips-openwrt-linux-gnu-gcc" GCC
="mips-openwrt-linux-gnu-gcc" CXX="mips-openwrt-linux-gnu-g++" RANLIB
="mips-openwrt-linux-gnu-gcc-ranlib" STRIP=mips-openwrt-linux-gnu-strip
OBJCOPY=mips-openwrt-linux-gnu-objcopy OBJDUMP=mips-openwrt-linux-gnu-
objdump SIZE=mips-openwrt-linux-gnu-size CROSS="mips-openwrt-linux-gnu-"
ARCH="mips" ;
make[4]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[5]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
Scanning dependencies of target kmodloader
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
[ 14%] Building C object CMakeFiles/kmodloader.dir/kmodloader.c.o
Linking C executable kmodloader
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
[ 14%] Built target kmodloader
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
Scanning dependencies of target logd
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
[ 28%] Building C object CMakeFiles/logd.dir/log/logd.c.o
[ 42%] Building C object CMakeFiles/logd.dir/log/syslog.c.o
Linking C executable logd
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
[ 42%] Built target logd
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
Scanning dependencies of target logread
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
[ 57%] Building C object CMakeFiles/logread.dir/log/logread.c.o
/mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c: In function
'log_notify':
/mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c:168:3: error: ignoring
return value of 'write', declared with attribute warn_unused_result
[-Werror=unused-result]
write(sender.fd, buf, strlen(buf));
^
In file included from /mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/include/string.h:639:0,
from /mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/include/libubox/blob.h:25,
from /mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/include/libubox/blobmsg.h:20,
from /mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/usr/include/libubox/blobmsg_json.h:22,
from /mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c:29:
In function 'strncat',
inlined from 'log_notify' at /mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c:141:4:
/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/include/bits/string3.h:156:3: error:
call to __builtin___strncat_chk might overflow destination buffer
[-Werror]
return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
^
In function 'strncat',
inlined from 'log_notify' at /mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c:145:4:
/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/include/bits/string3.h:156:3: error:
call to __builtin___strncat_chk might overflow destination buffer
[-Werror]
return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
^
In function 'strncat',
inlined from 'log_notify' at /mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29/log/logread.c:150:3:
/mnt/storage/openwrt-cc/trunk/staging_dir/toolchain-
mips_34kc_gcc-4.9-linaro_glibc-2.21/include/bits/string3.h:156:3: error:
call to __builtin___strncat_chk might overflow destination buffer
[-Werror]
return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
^
cc1: all warnings being treated as errors
make[6]: *** [CMakeFiles/logread.dir/log/logread.c.o] Error 1
make[6]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[5]: *** [CMakeFiles/logread.dir/all] Error 2
make[5]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_glibc-2.21/ubox-2015-03-29'
make[3]: *** [/mnt/storage/openwrt-cc/trunk/build_dir/target-
mips_34kc_glibc-2.21/ubox-2015-03-29/.built] Error 2
make[3]: Leaving directory `/mnt/storage/openwrt-
cc/trunk/package/system/ubox'
make[2]: *** [package/system/ubox/compile] Error 2
make[2]: Leaving directory `/mnt/storage/openwrt-cc/trunk'
make[1]: *** [/mnt/storage/openwrt-cc/trunk/staging_dir/target-
mips_34kc_glibc-2.21/stamp/.package_compile] Error 2
make[1]: Leaving directory `/mnt/storage/openwrt-cc/trunk'
make: *** [world] Error 2
--
Ticket URL: <https://dev.openwrt.org/ticket/19341#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets