Home Forums Software discussion OpenWRT build failing

This topic contains 7 replies, has 6 voices, and was last updated by  rager 2 months, 2 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1415

    codemarauder
    Participant

    Hi,

    I tried to compile the openwrt as per the instruction on the Wiki. The build compiled successfully once but after installing additional packages, I get following error:

    
    make -C /home/devuser/espressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/linux-mvebu64/linux-4.4.8 HOSTCFLAGS="-O2 -I/home/devuser/espressobin/openwrt-dd/staging_dir/host/include -I/home/devuser/espressobin/openwrt-dd/staging_dir/host/usr/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V=''  CC="aarch64-openwrt-linux-musl-gcc" modules
    make[5]: Entering directory '/home/devuser/espressobin/openwrt-kernel'
      CHK     include/config/kernel.release
      CHK     include/generated/uapi/linux/version.h
      CHK     include/generated/utsrelease.h
      CHK     include/generated/bounds.h
      CHK     include/generated/timeconst.h
      CHK     include/generated/asm-offsets.h
      CALL    scripts/checksyscalls.sh
    usr/Makefile:64: *** multiple target patterns.  Stop.
    Makefile:949: recipe for target 'usr' failed
    make[5]: *** [usr] Error 2
    make[5]: Leaving directory '/home/devuser/espressobin/openwrt-kernel'
    Makefile:23: recipe for target '/home/devuser/espressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/linux-mvebu64/linux-4.4.8/.modules' failed
    make[4]: *** [/home/devuser/espressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/linux-mvebu64/linux-4.4.8/.modules] Error 2
    make[4]: Leaving directory '/home/devuser/espressobin/openwrt-dd/target/linux/mvebu64'
    Makefile:13: recipe for target 'compile' failed
    make[3]: *** [compile] Error 2
    make[3]: Leaving directory '/home/devuser/espressobin/openwrt-dd/target/linux'
    target/Makefile:21: recipe for target 'target/linux/compile' failed
    make[2]: *** [target/linux/compile] Error 2
    make[2]: Leaving directory '/home/devuser/espressobin/openwrt-dd'
    target/Makefile:16: recipe for target '/home/devuser/espressobin/openwrt-dd/staging_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/stamp/.target_compile' failed
    make[1]: *** [/home/devuser/espressobin/openwrt-dd/staging_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/stamp/.target_compile] Error 2
    make[1]: Leaving directory '/home/devuser/espressobin/openwrt-dd'
    /home/devuser/espressobin/openwrt-dd/include/toplevel.mk:192: recipe for target 'world' failed
    make: *** [world] Error 2
    

    I tried uninstalling all the package -> rm .config* -> make menuconfig (select target) -> make defconfig -> make -j1 V=s but still the same error.

    Any pointers on the same please? Thanks in advance.

    #1433

    akrog
    Keymaster

    Hi codemarauder,

    I don’t think the wiki instructions advise building like this; which additional packages were you trying to install?

    Please try the following, as you have likely selected one or more packages which have a kernel dependency:

    # in the openwrt-dd directory
    $ git status
    # if target/linux/mvebu64/config-4.4 has changed, checkout it with
    $ git checkout target/linux/mvebu64/config-4.4

    then try to build again, and let me know how it went.

    #1436

    codemarauder
    Participant

    Hi akrog,

    Thanks for your reply.

    I wanted to build additional packages like mwan3, squid, openvpn, qos/sqm scripts, luci etc. so as to use espressobin in my day to day practical scenario.

    I am looking at espressobin as an alternative to PC Engines APU2 in the networks with comparatively less number of users requiring less throughput and CPU cycles.

    Nothing seem to have changed in the cloned repository here though:

    
    git status
    On branch openwrt_17.02_release
    Your branch is up-to-date with 'origin/openwrt_17.02_release'.
    nothing to commit, working directory clean
    

    I had also asked at OpenWrt/LEDE mailing list and am able to successfully compile it from the repository:

    https://github.com/tmn505/source/tree/espressobin

    Apart from packages that do not have config available to be compiled for aarch64 like Perl and Squid, everything else is working including sysupgrade.

    #1486

    ttocsr
    Participant

    How did you get sysupgrade to work?
    What did you have to do to get a sysupgrade bin

    #1487

    codemarauder
    Participant

    @ttocsr

    I used the image “openwrt-mvebu-cortexa53-globalscale-espressobin-sdcard.img.gz” for sysupgrade and it worked the same way we do it for ext4 images on x86.

    Furthermore, Perl and Squid were successfully compiled after OpenWrt maintainers responded to the bug report.

    Only wait is to get the changes merged to trunk.

    #1563

    diyguy60
    Participant

    Hi:
    I have a similar issue. I followed the instructions from the Wiki and overcame a Makefile problem in /mkimage, but I get the following errors that appear to be duplicate definition:

    make[4]: Entering directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[5]: Entering directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[6]: Entering directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[6]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[6]: Entering directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    [ 4%] Building C object CMakeFiles/netifd.dir/system-linux.c.o
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/if_bridge.h:18:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:36:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/in6.h:32:8: error: redefinition of ‘struct in6_addr’
    struct in6_addr {
    ^
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/arpa/inet.h:9:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:27:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/netinet/in.h:23:8: note: originally defined here
    struct in6_addr {
    ^
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/if_bridge.h:18:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:36:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/in6.h:49:8: error: redefinition of ‘struct sockaddr_in6’
    struct sockaddr_in6 {
    ^
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/arpa/inet.h:9:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:27:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/netinet/in.h:34:8: note: originally defined here
    struct sockaddr_in6 {
    ^
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/if_bridge.h:18:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:36:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/linux/in6.h:59:8: error: redefinition of ‘struct ipv6_mreq’
    struct ipv6_mreq {
    ^
    In file included from /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/arpa/inet.h:9:0,
    from /eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/system-linux.c:27:
    /eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/toolchain-aarch64_cortex-a53+neon-vfpv4_gcc-5.3.0_musl-1.1.16/include/netinet/in.h:42:8: note: originally defined here
    struct ipv6_mreq {
    ^
    make[6]: *** [CMakeFiles/netifd.dir/system-linux.c.o] Error 1
    make[6]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[5]: *** [CMakeFiles/netifd.dir/all] Error 2
    make[5]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[4]: *** [all] Error 2
    make[4]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09′
    make[3]: *** [/eng_dev/dkong/router/expressobin/openwrt-dd/build_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/netifd-2016-12-09/.built] Error 2
    make[3]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd/package/network/config/netifd’
    make[2]: *** [package/network/config/netifd/compile] Error 2
    make[2]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd’
    make[1]: *** [/eng_dev/dkong/router/expressobin/openwrt-dd/staging_dir/target-aarch64_cortex-a53+neon-vfpv4_musl-1.1.16/stamp/.package_compile] Error 2
    make[1]: Leaving directory `/eng_dev/dkong/router/expressobin/openwrt-dd’
    make: *** [world] Error 2

    There is mention of a patch from:
    https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=4336efe14b61e47177a2d0863f8391c48cf4a9f5

    but I tried the patch with “git apply <patch-filename>” but there are errors because the source versions are not the same. Did anyone manage to build the latest version of OpenWRT for Espressobin win the 4.4.52 kernel?

    Any suggestions or help would be greatly appreciated
    Dennis

    #1711

    NewEspressoBinUser
    Participant

    This seems like a stale problem but I found that if you follow the instructions about directory location it works and if you make a directory in your user space it fails exactly like you are seeing.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop