Package compilation error

hi i am a newbie, i am trying to create a package via the sdk. I get errors in compile and can't figure out what it refers to.

this is my log

make[1]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64'
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/package/toolchain'
Makefile:735: WARNING: skipping libgomp -- package has no install section
echo "libc" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/toolchain.default.install
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/toolchain -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/package/toolchain'
time: package/toolchain/compile#0.20#0.03#0.23
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/system/ca-certificates'
echo "ca-bundle" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/ca-certificates.default.install
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/ca-certificates-20211016/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/ca-certificates-20211016/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/ca-certificates-20211016 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/system/ca-certificates'
time: package/feeds/base/ca-certificates/compile#0.14#0.02#0.15
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/libs/mbedtls'
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/mbedtls-2.28.1/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/mbedtls-2.28.1/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/mbedtls-2.28.1 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/libs/mbedtls'
time: package/feeds/base/mbedtls/compile#0.15#0.02#0.16
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/packages/libs/nghttp2'
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/nghttp2-1.44.0/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/nghttp2-1.44.0/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/nghttp2-1.44.0 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/packages/libs/nghttp2'
time: package/feeds/packages/nghttp2/compile#0.18#0.03#0.23
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/net/curl'
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/curl-7.85.0/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/curl-7.85.0/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/curl-7.85.0 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/net/curl'
time: package/feeds/base/curl/compile#0.22#0.03#0.24
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/libs/libjson-c'
echo "libjson-c" >> /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/pkginfo/libjson-c.default.install
touch -r /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/json-c-0.15/.built /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/json-c-0.15/.autoremove 2>/dev/null >/dev/null
find /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/json-c-0.15 -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' | xargs -r rm -rf
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/feeds/base/package/libs/libjson-c'
time: package/feeds/base/libjson-c/compile#0.18#0.03#0.20
make[2]: Entering directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/package/osmud'
rm -rf /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud.installed /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud
mkdir -p /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud
install -d -m0755 /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud/usr/sbin
install -m0755 /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/atd /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud/usr/sbin
install: cannot stat '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/atd': No such file or directory
make[2]: *** [Makefile:82: /home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/osmud-1.0.0/.pkgdir/osmud.installed] Error 1
make[2]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/package/osmud'
time: package/osmud/compile#0.21#0.02#0.24
    ERROR: package/osmud failed to build.
make[1]: *** [package/Makefile:116: package/osmud/compile] Error 1
make[1]: Leaving directory '/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64'
make: *** [/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/include/toplevel.mk:223: package/osmud/compile] Error 2

this is my MAKEFILE


include $(TOPDIR)/rules.mk

PKG_NAME:=osmud
PKG_VERSION:=1.0.0
PKG_RELEASE:=$(AUTORELEASE)

#PKG_BUILD_DIR:=$(BUILD_DIR)/bridge-utils-$(PKG_VERSION)
#PKG_SOURCE:=/home/roberto/openwrt-sdk-22.03.2-x86-64_gcc-11.2.0_musl.Linux-x86_64/package/osmud/src

TARGET_CFLAGS += -Wall -g -std=c99 -D_XOPEN_SOURCE=600 -DDEBUG
TARGET_LDFLAGS += -ljson-c -lcurl

PKG_MAINTAINER:=Roberto Pompa<robertopompa97@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later GPL-3.0-or-later ISC
PKG_LICENSE_FILES:=COPYING Copyright

include $(INCLUDE_DIR)/package.mk

define Package/osmud
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Prova Compilazione Roberto
  DEPENDS:= +libjson-c +curl +ljson-c +lcurl
endef

define Package/osmud/description
 Prova di compilazione Roberto 
endef

export SENDMAIL=/bin/true
EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
	$(TARGET_LDFLAGS)

CONFIGURE_ARGS+= \
	--prefix=/usr \
	--without-selinux \
	--with-daemon_username=nobody \
	--with-daemon_groupname=nogroup \
	--with-jobdir=/var/spool/cron/atjobs \
	--with-atspool=/var/spool/cron/atspool

CONFIGURE_VARS += \
	ac_cv_header_security_pam_appl_h=no


define Package/osmud/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
endef

$(eval $(call BuildPackage,osmud))

Thanks for your help

I haven’t used the SDK, but given it’s nature, this might help.

Make -j1 V=sc

thank you so much, I resolved

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.