Skip to content
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

Open
Konstantin-Glukhov opened this issue Feb 11, 2024 · 10 comments
Labels
bug Something isn't working build

Comments

@Konstantin-Glukhov
Copy link

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);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~

@msune
Copy link
Owner

msune commented Feb 11, 2024

@Konstantin-Glukhov thank you for the report.

Can you paste the output of arm-openwrt-linux-g++ --version?

Thanks

@msune msune added bug Something isn't working build labels Feb 11, 2024
@Konstantin-Glukhov
Copy link
Author

arm-openwrt-linux-muslgnueabi-g++ (OpenWrt GCC 12.3.0 r23630-842932a63d) 12.3.0

@msune
Copy link
Owner

msune commented Feb 11, 2024

I am unable to reproduce the error in gcc/g++12.3.0 on amd64:

/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DPACKAGE_NAME=\"LIBCDADA\" -DPACKAGE_TARNAME=\"libcdada\" -DPACKAGE_VERSION=\"v0.5.2\" -DPACKAGE_STRING=\"LIBCDADA\ v0.5.2\" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://github.com/msune/libcdada\" -DPACKAGE=\"libcdada\" -DVERSION=\"v0.5.2\" -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=/\*\*/ -DHAVE_RDTSC=/\*\*/ -I. -I../../src  -I../include/ -I../../include/ -D__CDADA_INTERNAL_INCLUDE   -Werror -Wall -Werror=stringop-overflow -O3 -MT libcdada_la-list.lo -MD -MP -MF .deps/libcdada_la-list.Tpo -c -o libcdada_la-list.lo `test -f 'list.cc' || echo '../../src/'`list.cc
libtool: compile:  g++ -DPACKAGE_NAME=\"LIBCDADA\" -DPACKAGE_TARNAME=\"libcdada\" -DPACKAGE_VERSION=\"v0.5.2\" "-DPACKAGE_STRING=\"LIBCDADA v0.5.2\"" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://github.com/msune/libcdada\" -DPACKAGE=\"libcdada\" -DVERSION=\"v0.5.2\" -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=/**/" "-DHAVE_RDTSC=/**/" -I. -I../../src -I../include/ -I../../include/ -D__CDADA_INTERNAL_INCLUDE -Werror -Wall -Werror=stringop-overflow -O3 -MT libcdada_la-list.lo -MD -MP -MF .deps/libcdada_la-list.Tpo -c ../../src/list.cc  -fPIC -DPIC -o .libs/libcdada_la-list.o
libtool: compile:  g++ -DPACKAGE_NAME=\"LIBCDADA\" -DPACKAGE_TARNAME=\"libcdada\" -DPACKAGE_VERSION=\"v0.5.2\" "-DPACKAGE_STRING=\"LIBCDADA v0.5.2\"" -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE_URL=\"http://github.com/msune/libcdada\" -DPACKAGE=\"libcdada\" -DVERSION=\"v0.5.2\" -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=/**/" "-DHAVE_RDTSC=/**/" -I. -I../../src -I../include/ -I../../include/ -D__CDADA_INTERNAL_INCLUDE -Werror -Wall -Werror=stringop-overflow -O3 -MT libcdada_la-list.lo -MD -MP -MF .deps/libcdada_la-list.Tpo -c ../../src/list.cc -o libcdada_la-list.o >/dev/null 2>&1

...

root@f4b81040cf77:~/libcdada/build# g++ --version
g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I believe -Wall should already have this warning enabled, but just in case I added it manually -Werror -Wall -Werror=stringop-overflow -O3). I've seen one other report with a similar weird behaviour in ARM, but I wasn't able to reproduce it either.

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?

@Konstantin-Glukhov
Copy link
Author

Konstantin-Glukhov commented Feb 12, 2024

No I don't. Installing OpenWrt SDK is quite simple. Here are the instructions.

Do everything as non-root user.

Install SDK:

wget http://downloads.openwrt.org/releases/23.05.2/targets/ipq806x/generic/openwrt-sdk-23.05.2-ipq806x-generic_gcc-12.3.0_musl_eabi.Linux-x86_64.tar.xz

tar xf openwrt-sdk-23.05.2-ipq806x-generic_gcc-12.3.0_musl_eabi.Linux-x86_64.tar.xz
mv openwrt-sdk-23.05.2-ipq806x-generic_gcc-12.3.0_musl_eabi.Linux-x86_64 sdk

Configure pmacct for building:

cd ~/sdk

1. mkdir -p ~/my_packages/pmacct

2. vim /home/user_name/sdk/feeds.conf

src-link custom /home/user_name/my_packages # must be full path
src-git-full base https://git.openwrt.org/openwrt/openwrt.git;openwrt-23.05
src-git packages https://git.openwrt.org/feed/packages.git^8e3a1824645f5e73ec44c897ac0755c53fb4a1f8

3. Create Makefile (if you change Makefile you need to run all steps starting with 4.)

See https://openwrt.org/docs/guide-developer/packages

vim ~/my_packages/pmacct/Makefile:

include $(TOPDIR)/rules.mk

PKG_NAME:=pmacct
PKG_VERSION:=1.7.9
PKG_RELEASE:=1

# PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
# PKG_SOURCE_URL:=http://www.pmacct.net/
# PKG_HASH:=4df50a3c6c7bdace3345bbf3bd4f6fa7a6722ec1fb45dfd266ad956b327da98a
# PKG_SOURCE_URL:=file:///mnt/n/Tmp/Downloads
PKG_HASH:=skip

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pmacct/pmacct.git
PKG_SOURCE_VERSION:=master
PKG_SOURCE_VERSION:=1.7.9

PKG_MAINTAINER:=Some Doofus <[email protected]>
PKG_LICENSE:=GPL-2.0

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

PKG_FIXUP:=autoreconf

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

CONFIGURE_ARGS += \
	--with-pcap-includes="$(STAGING_DIR)/usr/include" \
	--with-pcap-libs="$(STAGING_DIR)/usr/lib" \
	--enable-bgp-bins=no \
	--enable-bmp-bins=no \
	--enable-st-bins=no

TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections

CONFIGURE_VARS += \
	BUILD_CC="$(TARGET_CC)" \
	HOSTCC="$(HOSTCC)" \
	td_cv_buggygetaddrinfo="no" \
	ac_cv_linux_vers=$(LINUX_VERSION) \
	ac_cv_header_rpc_rpcent_h=no \
	ac_cv_lib_rpc_main=no \
	ac_cv_path_PCAP_CONFIG=""

MAKE_FLAGS := CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"


define Package/pmacct
	SECTION:=net
	CATEGORY:=Network
	DEPENDS:=+libpcap +libpthread
	TITLE:=a powerful IP accounting set of tools
	URL:=http://www.pmacct.net/
endef

define Package/pmacct/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacct $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacctd $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sfacctd $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nfacctd $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,pmacct))

4. ./scripts/feeds update -a # This will take a while, be patient

5. ./scripts/feeds install pmacct

6. make menuconfig # select pmacct

7. make package/pmacct/compile

@msune
Copy link
Owner

msune commented Feb 12, 2024

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:

root@f4b81040cf77:~/sdk# ./scripts/feeds install pmacct
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'eip197-mini-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2x-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8152-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'amdgpu-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'radeon-firmware', which does not exist
WARNING: No feed for package 'pmacct' found

I believe the stuff is there:

root@f4b81040cf77:~/sdk# cat ~/my_packages/pmacct/Makefile 
include $(TOPDIR)/rules.mk

PKG_NAME:=pmacct
PKG_VERSION:=1.7.9
PKG_RELEASE:=1

# PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
# PKG_SOURCE_URL:=http://www.pmacct.net/
# PKG_HASH:=4df50a3c6c7bdace3345bbf3bd4f6fa7a6722ec1fb45dfd266ad956b327da98a
# PKG_SOURCE_URL:=file:///mnt/n/Tmp/Downloads
PKG_HASH:=skip

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/pmacct/pmacct.git
PKG_SOURCE_VERSION:=master
PKG_SOURCE_VERSION:=1.7.9

PKG_MAINTAINER:=Some Doofus <[email protected]>
PKG_LICENSE:=GPL-2.0

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

PKG_FIXUP:=autoreconf

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

CONFIGURE_ARGS += \
	--with-pcap-includes="$(STAGING_DIR)/usr/include" \
	--with-pcap-libs="$(STAGING_DIR)/usr/lib" \
	--enable-bgp-bins=no \
	--enable-bmp-bins=no \
	--enable-st-bins=no

TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections

CONFIGURE_VARS += \
	BUILD_CC="$(TARGET_CC)" \
	HOSTCC="$(HOSTCC)" \
	td_cv_buggygetaddrinfo="no" \
	ac_cv_linux_vers=$(LINUX_VERSION) \
	ac_cv_header_rpc_rpcent_h=no \
	ac_cv_lib_rpc_main=no \
	ac_cv_path_PCAP_CONFIG=""

MAKE_FLAGS := CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"


define Package/pmacct
	SECTION:=net
	CATEGORY:=Network
	DEPENDS:=+libpcap +libpthread
	TITLE:=a powerful IP accounting set of tools
	URL:=http://www.pmacct.net/
endef

define Package/pmacct/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacct $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pmacctd $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sfacctd $(1)/usr/sbin/
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nfacctd $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,pmacct))
root@f4b81040cf77:~/sdk# cat feeds.config 
src-link custom ~/my_packages # must be full path
src-git-full base https://git.openwrt.org/openwrt/openwrt.git;openwrt-23.05
src-git packages https://git.openwrt.org/feed/packages.git^8e3a1824645f5e73ec44c897ac0755c53fb4a1f8

@Konstantin-Glukhov
Copy link
Author

Konstantin-Glukhov commented Feb 14, 2024

Sorry, the following needs to be commented out:

# PKG_SOURCE_VERSION:=master

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
./scripts/feeds list

Try to update again
./scripts/feeds update custom

@msune
Copy link
Owner

msune commented Feb 14, 2024

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)

root@76e6ff719e19:~/sdk# ./scripts/feeds install pmacct
Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'eip197-mini-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2x-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8152-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb3', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'amdgpu-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'radeon-firmware', which does not exist
WARNING: No feed for package 'pmacct' found
root@76e6ff719e19:~/sdk# 

This ./scripts/feeds list pmacct lists all packages, but no pmacct:

root@76e6ff719e19:~/sdk# ./scripts/feeds list pmacct | grep pmacct
root@76e6ff719e19:~/sdk# 

Any idea?

@Konstantin-Glukhov
Copy link
Author

Make sure the feed.conf contains a full path to the my_package folder:

cat feeds.conf
src-link custom /home/user_name/my_packages
src-git-full base https://git.openwrt.org/openwrt/openwrt.git;openwrt-23.05
src-git packages https://git.openwrt.org/feed/packages.git^8e3a1824645f5e73ec44c897ac0755c53fb4a1f8
./scripts/feeds update custom
./scripts/feeds list
./scripts/feeds install pmacct

@msune
Copy link
Owner

msune commented Feb 15, 2024

Ok, that worked! Interestingly, I had to put the full path - which I had done in the past, without luck - and move it to feeds.conf.default, instead of the original feeds.config (could it be that this was the actual problem feeds.config vs feeds.conf, and that it was ignored? In your original post you had used .config).

In any case, I could reproduce this and another problem linking stdlibc++ (once stringoverflow warning manually disabled), so I will have a look this night!

Thx

@Konstantin-Glukhov
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build
Projects
None yet
Development

No branches or pull requests

2 participants