Build on R-PI 3 on 18.06.0 facing an error with hostapd and wpa-supplicant-p2p

Hello,
How are ya?

I am facing an error with building the firmware R-PI3 OpenWrt 18.01.0. Before old same settings in LEDE it built without problem, now I face this error:

time: package/firmware/wireless-regdb/compile#0.30#0.22#0.49
make[3]: Entering directory '/build/source/package/network/services/hostapd'
mkdir -p /build/source/staging_dir/target-aarch64_cortex-a53_musl/root-brcm2708/stamp
SHELL= flock /build/source/tmp/.root-copy.flock -c 'cp -fpR /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/.pkgdir/hostapd/. /build/source/staging_dir/target-aarch64_cortex-a53_musl/root-brcm2708/'
touch /build/source/staging_dir/target-aarch64_cortex-a53_musl/root-brcm2708/stamp/.hostapd_installed
mkdir -p /build/source/bin/targets/brcm2708/bcm2710/packages /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/CONTROL /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/usr/sbin
install -m0755 /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/wpa_supplicant/wpa_supplicant /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/usr/sbin/
install: cannot stat '/build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/wpa_supplicant/wpa_supplicant': No such file or directory
Makefile:591: recipe for target '/build/source/bin/packages/aarch64_cortex-a53/base/wpa-supplicant-p2p_2018-05-21-62566bc2-4_aarch64_cortex-a53.ipk' failed
make[3]: *** [/build/source/bin/packages/aarch64_cortex-a53/base/wpa-supplicant-p2p_2018-05-21-62566bc2-4_aarch64_cortex-a53.ipk] Error 1
make[3]: Leaving directory '/build/source/package/network/services/hostapd'
Command exited with non-zero status 2
time: package/network/services/hostapd/full-internal/compile#0.60#0.29#0.85
package/Makefile:107: recipe for target 'package/network/services/hostapd/compile' failed
make[2]: *** [package/network/services/hostapd/compile] Error 2
make[2]: Leaving directory '/build/source'
package/Makefile:103: recipe for target '/build/source/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile' failed
make[1]: *** [/build/source/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/build/source'
/build/source/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

Have you guys found an error like this?

Thanks,
Patrik

When I compile:
make package/network/services/hostapd/compile V=s

The long error looks like this:

docker@0e654ed51906:/build/source$ make package/network/services/hostapd/compile V=s
make[1]: Entering directory '/build/source'
cd "/build/source"; git log --format=%h -1 toolchain > /build/source/tmp/.ver_check
cmp -s /build/source/tmp/.ver_check /build/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/stamp/.ver_check || { \
        rm -rf /build/source/build_dir/target-aarch64_cortex-a53_musl /build/source/staging_dir/target-aarch64_cortex-a53_musl /build/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl /build/source/build_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl; \
        mkdir -p /build/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/stamp; \
        mv /build/source/tmp/.ver_check /build/source/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/stamp/.ver_check; \
}
make[2]: Entering directory '/build/source/package/libs/toolchain'
echo "libc" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
echo "librt" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/build/source/package/libs/toolchain'
time: package/libs/toolchain/compile#0.08#0.01#0.08
make[2]: Entering directory '/build/source/package/libs/zlib'
make[2]: Leaving directory '/build/source/package/libs/zlib'
time: package/libs/zlib/compile#0.07#0.02#0.08
make[2]: Entering directory '/build/source/package/libs/openssl'
make[2]: Leaving directory '/build/source/package/libs/openssl'
time: package/libs/openssl/compile#0.08#0.02#0.08
make[2]: Entering directory '/build/source/package/libs/gettext'
make[2]: Leaving directory '/build/source/package/libs/gettext'
time: package/libs/gettext/compile#0.07#0.03#0.09
make[2]: Entering directory '/build/source/package/libs/libiconv'
make[2]: Leaving directory '/build/source/package/libs/libiconv'
time: package/libs/libiconv/compile#0.10#0.02#0.10
make[2]: Entering directory '/build/source/package/libs/libtool'
make[2]: Leaving directory '/build/source/package/libs/libtool'
time: package/libs/libtool/compile#0.10#0.03#0.12
make[2]: Entering directory '/build/source/package/libs/wolfssl'
echo "libwolfssl" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/wolfssl.default.install
make[2]: Leaving directory '/build/source/package/libs/wolfssl'
time: package/libs/wolfssl/compile#0.11#0.05#0.14
make[2]: Entering directory '/build/source/package/libs/libjson-c'
echo "libjson-c" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libjson-c.default.install
make[2]: Leaving directory '/build/source/package/libs/libjson-c'
time: package/libs/libjson-c/compile#0.13#0.03#0.15
make[2]: Entering directory '/build/source/package/utils/lua'
make[2]: Leaving directory '/build/source/package/utils/lua'
time: package/utils/lua/compile#0.13#0.03#0.14
make[2]: Entering directory '/build/source/package/libs/libubox'
echo "libubox" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libubox.default.install
echo "libblobmsg-json" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libubox.default.install
echo "jshn" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libubox.default.install
echo "libjson-script" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libubox.default.install
make[2]: Leaving directory '/build/source/package/libs/libubox'
time: package/libs/libubox/compile#0.64#0.51#1.08
make[2]: Entering directory '/build/source/package/system/ubus'
echo "libubus" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ubus.default.install
echo "ubus" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ubus.default.install
echo "ubusd" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/ubus.default.install
make[2]: Leaving directory '/build/source/package/system/ubus'
time: package/system/ubus/compile#0.41#0.22#0.60
make[2]: Entering directory '/build/source/package/libs/libnl-tiny'
echo "libnl-tiny" >> /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libnl-tiny.default.install
make[2]: Leaving directory '/build/source/package/libs/libnl-tiny'
time: package/libs/libnl-tiny/compile#0.11#0.02#0.13
make[2]: Entering directory '/build/source/package/network/services/hostapd'
mkdir -p /build/source/bin/targets/brcm2708/bcm2710/packages /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/CONTROL /build/source/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/usr/sbin
install -m0755 /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/wpa_supplicant/wpa_supplicant /build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/ipkg-aarch64_cortex-a53/wpa-supplicant-p2p/usr/sbin/
install: cannot stat '/build/source/build_dir/target-aarch64_cortex-a53_musl/hostapd-full-internal/hostapd-2018-05-21-62566bc2/wpa_supplicant/wpa_supplicant': No such file or directory
Makefile:591: recipe for target '/build/source/bin/packages/aarch64_cortex-a53/base/wpa-supplicant-p2p_2018-05-21-62566bc2-4_aarch64_cortex-a53.ipk' failed
make[2]: *** [/build/source/bin/packages/aarch64_cortex-a53/base/wpa-supplicant-p2p_2018-05-21-62566bc2-4_aarch64_cortex-a53.ipk] Error 1
make[2]: Leaving directory '/build/source/package/network/services/hostapd'
Command exited with non-zero status 2
time: package/network/services/hostapd/full-internal/compile#0.71#0.90#1.53
package/Makefile:107: recipe for target 'package/network/services/hostapd/compile' failed
make[1]: *** [package/network/services/hostapd/compile] Error 2
make[1]: Leaving directory '/build/source'
/build/source/include/toplevel.mk:216: recipe for target 'package/network/services/hostapd/compile' failed
make: *** [package/network/services/hostapd/compile] Error 2

Looks like it is missing a wpa-supplicant-p2p, where can I find it or fix it?
Thank you very much.

Please post output of the:

./scripts/diffconfig.sh

do you have any local changes applied?

docker@abc457bd8658:/build/source$ cp /build/router/rpi-3/source/.config .
docker@abc457bd8658:/build/source$ ./scripts/diffconfig.sh
./scripts/diffconfig.sh: 11: ./scripts/diffconfig.sh: ./scripts/config/conf: not found
can't open file 'tmp/.diffconfig.stage1' at ./scripts/kconfig.pl line 32.
./scripts/diffconfig.sh: 13: ./scripts/diffconfig.sh: ./scripts/config/conf: not found
can't open file 'tmp/.diffconfig.stage2' at ./scripts/kconfig.pl line 32.
CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_bcm2710=y
CONFIG_TARGET_brcm2708_bcm2710_DEVICE_rpi-3=y
CONFIG_ALL=y
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
docker@abc457bd8658:/build/source$ 

or should i do it after build?

Hello,

How are you?
So this is the R-PI3 .config as you told me:

CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_bcm2710=y
CONFIG_TARGET_brcm2708_bcm2710_DEVICE_rpi-3=y
CONFIG_ALL=y
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_APACHE_HTTP2=y
CONFIG_BUILDBOT=y
CONFIG_COLLECT_KERNEL_DEBUG=y
CONFIG_IB=y
CONFIG_IB_STANDALONE=y
CONFIG_IMAGEOPT=y
CONFIG_KERNEL_DEVMEM=y
# CONFIG_MC_EDITOR is not set
CONFIG_NODEJS_10=y
# CONFIG_NODEJS_8 is not set
CONFIG_PACKAGE_avahi-dbus-daemon=y
CONFIG_PACKAGE_dbus=y
CONFIG_PACKAGE_libavahi-client=y
CONFIG_PACKAGE_libavahi-compat-libdnssd=y
CONFIG_PACKAGE_libavahi-dbus-support=y
CONFIG_PACKAGE_libdaemon=y
CONFIG_PACKAGE_libdbus=y
CONFIG_SDK=y
CONFIG_VERSIONOPT=y
CONFIG_VERSION_BUG_URL=""
CONFIG_VERSION_CODE="insomnia"
CONFIG_VERSION_CODE_FILENAMES=y
CONFIG_VERSION_DIST="OpenWrt"
CONFIG_VERSION_FILENAMES=y
CONFIG_VERSION_HOME_URL="https://pages.corifeus.com/openwrt-insomnia"
CONFIG_VERSION_HWREV=""
CONFIG_VERSION_MANUFACTURER="p3x"
CONFIG_VERSION_MANUFACTURER_URL="https://patrikx3.com"
CONFIG_VERSION_NUMBER=""
CONFIG_VERSION_PRODUCT=""
CONFIG_VERSION_REPO="http://cdn.corifeus.com/openwrt/18.06.0"
CONFIG_VERSION_SUPPORT_URL=""

As you can see the firmware is not building as the error is saying above.

https://cdn.corifeus.com/openwrt/18.06.0/targets/brcm2708/bcm2710/

in 18.06.1 it is fixed

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