-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM Compiler issue in list.cc (__list_internal.h) with -Werror flag #14
Comments
@Konstantin-Glukhov thank you for the report. Can you paste the output of Thanks |
arm-openwrt-linux-muslgnueabi-g++ (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0 |
I am unable to reproduce the error in gcc/g++12.3.0 on amd64:
I believe Before I spend time installing the cross-compilation toolchain in a container etc, do you have a docker image I could use that have it installed? |
No I don't. Installing OpenWrt SDK is quite simple. Here are the instructions. Do everything as non-root user. Install SDK:
Configure pmacct for building:
|
Thanks. I am half sick, so I don't completely rule out I missed s/t. But I ran steps two times and it's always failing in step 5:
I believe the stuff is there:
|
Sorry, the following needs to be commented out:
If git portion is still not working, just comment it out and uncomment .gz section, change version to 1.7.8 since 1.7.9 is not available for download. What is the output for Try to update again |
Hi @Konstantin-Glukhov. Thanks for following up. We will manage, eventually! I believe the problem is somehow before that. The pmacct Makefile is just not "recognized" in/or the "feed". (tried again from scratch, and also commented the PGK_SOURCE_VERSION, but this is not a problem, the value of that VAR will be the last one in the makefile)
This
Any idea? |
Make sure the feed.conf contains a full path to the my_package folder:
|
Ok, that worked! Interestingly, I had to put the full path - which I had done in the past, without luck - and move it to In any case, I could reproduce this and another problem linking Thx |
Yes, it must have been .config thing. Sorry for the confusion. These little details like full path and name contractions can get on one's nerves. :-) I am glad it worked in the end. |
OpenWrt-libtool: compile: arm-openwrt-linux-g++ -DPACKAGE_NAME="LIBCDADA" -DPACKAGE_TARNAME="libcdada" -DPACKAGE_VERSION="v0.5.0" "-DPACKAGE_STRING="LIBCDADA v0.5.0"" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="http://github.com/msune/libcdada\" -DPACKAGE="libcdada" -DVERSION="v0.5.0" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_OPENBSD_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D__STDC_WANT_IEC_60559_ATTRIBS_EXT__=1 -D__STDC_WANT_IEC_60559_BFP_EXT__=1 -D__STDC_WANT_IEC_60559_DFP_EXT__=1 -D__STDC_WANT_IEC_60559_FUNCS_EXT__=1 -D__STDC_WANT_IEC_60559_TYPES_EXT__=1 -D__STDC_WANT_LIB_EXT2__=1 -D__STDC_WANT_MATH_SPEC_FUNCS__=1 -D_TANDEM_SOURCE=1 -D__EXTENSIONS__=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" "-D__STDC_FORMAT_MACROS=//" "-DNDEBUG=//" -I. -I/home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/src -I../include/ -I/home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/include/ -D__CDADA_INTERNAL_INCLUDE -Werror -Wall -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -mfloat-abi=hard -ffile-prefix-map=/home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9=pmacct-1.7.9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -O3 -MT libcdada_la-list.lo -MD -MP -MF .deps/libcdada_la-list.Tpo -c /home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/src/list.cc -o libcdada_la-list.o
In file included from /home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/src/list.cc:3:
In function 'int cdada_list_push_u(__cdada_list_int_t*, std::_cxx11::list, const void, bool) [with T = unsigned char]',
inlined from 'int cdada_list_push(cdada_list_t*, const void*, bool)' at /home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/src/list.cc:600:38:
/home/openwrt/sdk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/pmacct-1.7.9/src/external_libs/libcdada/include/cdada/__list_internal.h:255:15: error: 'void* memcpy(void*, const void*, size_t)' writing 2 or more bytes into a region of size 1 overflows the destination [-Werror=stringop-overflow=]
255 | memcpy(&aux, val, m->user_val_len);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: