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

Ansible firmware compilation fails, and typo #68

Open
jphein opened this issue Jun 10, 2022 · 3 comments
Open

Ansible firmware compilation fails, and typo #68

jphein opened this issue Jun 10, 2022 · 3 comments

Comments

@jphein
Copy link

jphein commented Jun 10, 2022

[jp@fedora althea-firmware]$ ansible-playbook firmware-build.yml -e @profiles/devices/x86_64.yml -e@profiles/management/althea-managed.yml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ************************************************************************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************************************************
ok: [127.0.0.1]

TASK [prepare-sources : Create build directory] *****************************************************************************************************************************
ok: [127.0.0.1]

TASK [prepare-sources : Clone OpenWRT] **************************************************************************************************************************************
ok: [127.0.0.1]

TASK [prepare-sources : Update Rust] ****************************************************************************************************************************************
changed: [127.0.0.1]

TASK [prepare-sources : Grab rust targets for hardware profile] *************************************************************************************************************
changed: [127.0.0.1]

TASK [prepare-config : Sync items to be inserted into the root file system] *************************************************************************************************
ok: [127.0.0.1]

TASK [prepare-config : Check if feeds.conf exists] **************************************************************************************************************************
ok: [127.0.0.1]

TASK [prepare-config : Create feeds.conf] ***********************************************************************************************************************************
skipping: [127.0.0.1]

TASK [prepare-config : Add custom feeds] ************************************************************************************************************************************
ok: [127.0.0.1] => (item=src-git althea https://github.com/althea-net/althea-packages.git)

TASK [prepare-config : Update feeds] ****************************************************************************************************************************************
changed: [127.0.0.1]

TASK [prepare-config : Grab feeds] ******************************************************************************************************************************************
changed: [127.0.0.1]

TASK [prepare-config : Copy in config] **************************************************************************************************************************************
changed: [127.0.0.1]

TASK [prepare-config : Build the full config] *******************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Create Dropbear folder] ********************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Add keys to login] *************************************************************************************************************************************
changed: [127.0.0.1] => (item=ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPzkV1FVvEFSMFsebt4q0up0oQ08aEZHJRlKPKKuDhcb [email protected])
changed: [127.0.0.1] => (item=ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICmrh09L0amaD8SCqt5LYgA7X3AmVJmBPp8icIMT/ZUv [email protected])
changed: [127.0.0.1] => (item=ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ4332jmLBPDn4XNWTYITLB7Sk+4/nN5Um0/1TltEr1L [email protected])

TASK [build-config : Authorized keys only readable by owner] ****************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Create the UCI config folder] **************************************************************************************************************************
ok: [127.0.0.1]

TASK [build-config : Template dropbear config] ******************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template firewall config] ******************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template SQM config] ***********************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template network interface configuration] **************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Insert Phone bootstrap network] ************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Insert Lan network] ************************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Insert Loopback network] *******************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template wifi interface configuration] *****************************************************************************************************************
skipping: [127.0.0.1]

TASK [build-config : Insert Mesh interface for radio0] **********************************************************************************************************************
skipping: [127.0.0.1]

TASK [build-config : Insert Light client interface for radio0] **************************************************************************************************************
skipping: [127.0.0.1]

TASK [build-config : Template the Babeld configuration] *********************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template the Rita configuration] ***********************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template the rita-exit config] *************************************************************************************************************************
skipping: [127.0.0.1]

TASK [build-config : Write out build details] *******************************************************************************************************************************
changed: [127.0.0.1]

TASK [build-config : Template any device specific scripts] ******************************************************************************************************************
skipping: [127.0.0.1]

TASK [build-config : Template package update url] ***************************************************************************************************************************
changed: [127.0.0.1]

TASK [build : Download files required for build] ****************************************************************************************************************************
changed: [127.0.0.1]

TASK [build : Print help on failure] ****************************************************************************************************************************************
skipping: [127.0.0.1]

TASK [build : Build the firmware, could take a while] ***********************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "cd build/; export RUST_TRIPLE=x86_64-unknown-linux-musl; nice make -j4 world", "delta": "1:09:46.378640", "end": "2022-06-09 21:17:13.765187", "msg": "non-zero return code", "rc": 2, "start": "2022-06-09 20:07:27.386547", "stderr": "make: *** [/home/jp/althea-firmware/build/include/toplevel.mk:230: world] Error 1", "stderr_lines": ["make: *** [/home/jp/althea-firmware/build/include/toplevel.mk:230: world] Error 1"], "stdout": " make[1] world\n make[2] tools/compile\n make[2] package/cleanup\n make[3] -C tools/flock compile\n make[3] -C tools/xz compile\n make[3] -C tools/sed compile\n make[3] -C tools/tar compile\n make[3] -C tools/patch compile\n make[3] -C tools/m4 compile\n make[3] -C tools/pkgconf compile\n make[3] -C tools/lzma compile\n make[3] -C tools/autoconf-archive compile\n make[3] -C tools/mtools compile\n make[3] -C tools/patch-image compile\n make[3] -C tools/sstrip compile\n make[3] -C tools/xxd compile\n make[3] -C tools/zip compile\n make[3] -C tools/expat compile\n make[3] -C tools/libressl compile\n make[3] -C tools/autoconf compile\n make[3] -C tools/automake compile\n make[3] -C tools/missing-macros compile\n make[3] -C tools/dosfstools compile\n make[3] -C tools/libtool compile\n make[3] -C tools/mkimage compile\n make[3] -C tools/cmake compile\n make[3] -C tools/flex compile\n make[3] -C tools/e2fsprogs compile\n make[3] -C tools/fakeroot compile\n make[3] -C tools/gengetopt compile\n make[3] -C tools/mklibs compile\n make[3] -C tools/mm-macros compile\n make[3] -C tools/patchelf compile\n make[3] -C tools/gmp compile\n make[3] -C tools/libelf compile\n make[3] -C tools/bison compile\n make[3] -C tools/mpfr compile\n make[3] -C tools/bc compile\n make[3] -C tools/findutils compile\n make[3] -C tools/mpc compile\n make[3] -C tools/padjffs2 compile\n make[3] -C tools/quilt compile\n make[3] -C tools/zlib compile\n make[3] -C tools/zstd compile\n make[3] -C tools/firmware-utils compile\n make[3] -C tools/make-ext4fs compile\n make[3] -C tools/mtd-utils compile\n make[3] -C tools/squashfskit4 compile\n make[2] toolchain/compile\n make[3] -C toolchain/binutils compile\n make[3] -C toolchain/fortify-headers compile\n make[3] -C toolchain/gdb compile\n make[3] -C toolchain/nasm compile\n make[3] -C toolchain/gcc/initial compile\n make[3] -C toolchain/musl compile\n make[3] -C toolchain/kernel-headers compile\n make[3] -C toolchain/gcc/final compile\n make[2] target/compile\n make[3] -C target/linux compile\n make[2] buildinfo\n make[2] package/compile\n make[3] diffconfig buildversion feedsversion\n make[3] -C package/libs/libjson-c host-compile\n make[3] -C package/libs/ncurses host-compile\n make[3] -C package/libs/toolchain compile\n make[3] -C package/system/fwtool host-compile\n make[3] -C package/system/usign host-compile\n make[3] -C package/system/openwrt-keyring compile\n make[3] -C package/boot/grub2 host-compile\n make[3] -C feeds/althea/althea/althea-babeld compile\n make[3] -C package/system/ca-certificates compile\n make[3] -C feeds/packages/libs/nghttp2 compile\n make[3] -C package/libs/gettext compile\n make[3] -C package/libs/libiconv compile\n make[3] -C package/libs/libtool compile\n make[3] -C package/libs/mbedtls compile\n make[3] -C package/libs/openssl compile\n make[3] -C package/libs/libmnl compile\n make[3] -C package/utils/bzip2 compile\n make[3] -C package/libs/argp-standalone compile\n make[3] -C feeds/packages/utils/hwdata compile\n make[3] -C package/libs/libpcap compile\n make[3] -C package/network/services/dropbear compile\n make[3] -C package/network/utils/linux-atm compile\n make[3] -C package/network/utils/resolveip compile\n make[3] -C package/libs/libsepol compile\n make[3] -C package/libs/uclibc++ compile\n make[3] -C package/libs/musl-fts compile\n make[3] -C package/utils/e2fsprogs host-compile\n make[3] -C package/libs/libubox host-compile\n make[3] -C package/libs/libnl-tiny compile\n make[3] -C package/libs/libjson-c compile\n make[3] -C package/utils/lua compile\n make[3] -C package/firmware/linux-firmware compile\n make[3] -C package/firmware/prism54-firmware compile\n make[3] -C package/libs/zlib compile\n make[3] -C package/system/fwtool compile\n make[3] -C package/system/ucert host-compile\n make[3] -C package/boot/grub2 compile\n make[3] -C package/libs/wolfssl compile\n make[3] -C feeds/packages/net/iperf3 compile\n make[3] -C package/network/utils/tcpdump compile\n make[3] -C package/libs/pcre compile\n make[3] -C package/system/opkg host-compile\n make[3] -C package/libs/libubox compile\n make[3] -C package/kernel/linux compile\n make[3] -C package/libs/ncurses compile\n make[3] -C package/utils/jsonfilter compile\n make[3] -C package/system/usign compile\n make[3] -C feeds/packages/net/curl compile\n make[3] -C package/libs/ustream-ssl compile\n make[3] -C package/network/utils/ipset compile\n make[3] -C package/network/utils/wireguard-tools compile\n make[3] -C package/devel/binutils compile\n make[3] -C package/libs/elfutils compile\n make[3] -C package/boot/grub2 compile\n make[3] -C package/network/utils/iptables compile\n make[3] -C feeds/packages/utils/kmod compile\n make[3] -C feeds/packages/net/iftop compile\n make[3] -C feeds/packages/net/mtr compile\n make[3] -C feeds/packages/utils/nano compile\n make[3] -C package/kernel/button-hotplug compile\n make[3] -C package/libs/uclient compile\n make[3] -C package/network/ipv6/odhcp6c compile\n make[3] -C package/network/services/ppp compile\n make[3] -C package/system/mtd compile\n make[3] -C package/system/opkg compile\n make[3] -C package/libs/libselinux compile\n make[3] -C package/system/urngd compile\n make[3] -C package/system/ubus compile\n make[3] -C package/system/uci compile\n make[3] -C package/utils/util-linux compile\n make[3] -C feeds/althea/althea/althea-cron-jobs compile\n make[3] -C package/network/services/uhttpd compile\n make[3] -C package/network/utils/iwinfo compile\n make[3] -C feeds/packages/utils/pciutils compile\n make[3] -C package/network/config/firewall compile\n make[3] -C package/network/services/dnsmasq compile\n make[3] -C package/network/services/odhcpd compile\n make[3] -C package/utils/busybox compile\n make[3] -C package/network/config/netifd compile\n make[3] -C package/system/ubox compile\n make[3] -C feeds/althea/althea/althea-dash compile\n make[3] -C package/system/rpcd compile\n make[3] -C package/network/utils/bpftools compile\n make[3] -C feeds/packages/net/net-snmp compile\n make[3] -C package/system/procd compile\n make[3] -C package/system/urandom-seed compile\n make[3] -C package/network/utils/iproute2 compile\n make[3] -C feeds/althea/althea/althea-rust-binaries compile\n make[3] -C package/system/fstools compile\n make[3] -C package/utils/e2fsprogs compile\n make[3] -C package/utils/f2fs-tools compile\n make[3] -C package/base-files compile\n make[3] -C feeds/packages/net/ifstat compile\n make[3] -C feeds/althea/althea/althea-tools compile\n    ERROR: package/feeds/althea/althea-rust-binaries failed to build.\nmake -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on", "stdout_lines": [" make[1] world", " make[2] tools/compile", " make[2] package/cleanup", " make[3] -C tools/flock compile", " make[3] -C tools/xz compile", " make[3] -C tools/sed compile", " make[3] -C tools/tar compile", " make[3] -C tools/patch compile", " make[3] -C tools/m4 compile", " make[3] -C tools/pkgconf compile", " make[3] -C tools/lzma compile", " make[3] -C tools/autoconf-archive compile", " make[3] -C tools/mtools compile", " make[3] -C tools/patch-image compile", " make[3] -C tools/sstrip compile", " make[3] -C tools/xxd compile", " make[3] -C tools/zip compile", " make[3] -C tools/expat compile", " make[3] -C tools/libressl compile", " make[3] -C tools/autoconf compile", " make[3] -C tools/automake compile", " make[3] -C tools/missing-macros compile", " make[3] -C tools/dosfstools compile", " make[3] -C tools/libtool compile", " make[3] -C tools/mkimage compile", " make[3] -C tools/cmake compile", " make[3] -C tools/flex compile", " make[3] -C tools/e2fsprogs compile", " make[3] -C tools/fakeroot compile", " make[3] -C tools/gengetopt compile", " make[3] -C tools/mklibs compile", " make[3] -C tools/mm-macros compile", " make[3] -C tools/patchelf compile", " make[3] -C tools/gmp compile", " make[3] -C tools/libelf compile", " make[3] -C tools/bison compile", " make[3] -C tools/mpfr compile", " make[3] -C tools/bc compile", " make[3] -C tools/findutils compile", " make[3] -C tools/mpc compile", " make[3] -C tools/padjffs2 compile", " make[3] -C tools/quilt compile", " make[3] -C tools/zlib compile", " make[3] -C tools/zstd compile", " make[3] -C tools/firmware-utils compile", " make[3] -C tools/make-ext4fs compile", " make[3] -C tools/mtd-utils compile", " make[3] -C tools/squashfskit4 compile", " make[2] toolchain/compile", " make[3] -C toolchain/binutils compile", " make[3] -C toolchain/fortify-headers compile", " make[3] -C toolchain/gdb compile", " make[3] -C toolchain/nasm compile", " make[3] -C toolchain/gcc/initial compile", " make[3] -C toolchain/musl compile", " make[3] -C toolchain/kernel-headers compile", " make[3] -C toolchain/gcc/final compile", " make[2] target/compile", " make[3] -C target/linux compile", " make[2] buildinfo", " make[2] package/compile", " make[3] diffconfig buildversion feedsversion", " make[3] -C package/libs/libjson-c host-compile", " make[3] -C package/libs/ncurses host-compile", " make[3] -C package/libs/toolchain compile", " make[3] -C package/system/fwtool host-compile", " make[3] -C package/system/usign host-compile", " make[3] -C package/system/openwrt-keyring compile", " make[3] -C package/boot/grub2 host-compile", " make[3] -C feeds/althea/althea/althea-babeld compile", " make[3] -C package/system/ca-certificates compile", " make[3] -C feeds/packages/libs/nghttp2 compile", " make[3] -C package/libs/gettext compile", " make[3] -C package/libs/libiconv compile", " make[3] -C package/libs/libtool compile", " make[3] -C package/libs/mbedtls compile", " make[3] -C package/libs/openssl compile", " make[3] -C package/libs/libmnl compile", " make[3] -C package/utils/bzip2 compile", " make[3] -C package/libs/argp-standalone compile", " make[3] -C feeds/packages/utils/hwdata compile", " make[3] -C package/libs/libpcap compile", " make[3] -C package/network/services/dropbear compile", " make[3] -C package/network/utils/linux-atm compile", " make[3] -C package/network/utils/resolveip compile", " make[3] -C package/libs/libsepol compile", " make[3] -C package/libs/uclibc++ compile", " make[3] -C package/libs/musl-fts compile", " make[3] -C package/utils/e2fsprogs host-compile", " make[3] -C package/libs/libubox host-compile", " make[3] -C package/libs/libnl-tiny compile", " make[3] -C package/libs/libjson-c compile", " make[3] -C package/utils/lua compile", " make[3] -C package/firmware/linux-firmware compile", " make[3] -C package/firmware/prism54-firmware compile", " make[3] -C package/libs/zlib compile", " make[3] -C package/system/fwtool compile", " make[3] -C package/system/ucert host-compile", " make[3] -C package/boot/grub2 compile", " make[3] -C package/libs/wolfssl compile", " make[3] -C feeds/packages/net/iperf3 compile", " make[3] -C package/network/utils/tcpdump compile", " make[3] -C package/libs/pcre compile", " make[3] -C package/system/opkg host-compile", " make[3] -C package/libs/libubox compile", " make[3] -C package/kernel/linux compile", " make[3] -C package/libs/ncurses compile", " make[3] -C package/utils/jsonfilter compile", " make[3] -C package/system/usign compile", " make[3] -C feeds/packages/net/curl compile", " make[3] -C package/libs/ustream-ssl compile", " make[3] -C package/network/utils/ipset compile", " make[3] -C package/network/utils/wireguard-tools compile", " make[3] -C package/devel/binutils compile", " make[3] -C package/libs/elfutils compile", " make[3] -C package/boot/grub2 compile", " make[3] -C package/network/utils/iptables compile", " make[3] -C feeds/packages/utils/kmod compile", " make[3] -C feeds/packages/net/iftop compile", " make[3] -C feeds/packages/net/mtr compile", " make[3] -C feeds/packages/utils/nano compile", " make[3] -C package/kernel/button-hotplug compile", " make[3] -C package/libs/uclient compile", " make[3] -C package/network/ipv6/odhcp6c compile", " make[3] -C package/network/services/ppp compile", " make[3] -C package/system/mtd compile", " make[3] -C package/system/opkg compile", " make[3] -C package/libs/libselinux compile", " make[3] -C package/system/urngd compile", " make[3] -C package/system/ubus compile", " make[3] -C package/system/uci compile", " make[3] -C package/utils/util-linux compile", " make[3] -C feeds/althea/althea/althea-cron-jobs compile", " make[3] -C package/network/services/uhttpd compile", " make[3] -C package/network/utils/iwinfo compile", " make[3] -C feeds/packages/utils/pciutils compile", " make[3] -C package/network/config/firewall compile", " make[3] -C package/network/services/dnsmasq compile", " make[3] -C package/network/services/odhcpd compile", " make[3] -C package/utils/busybox compile", " make[3] -C package/network/config/netifd compile", " make[3] -C package/system/ubox compile", " make[3] -C feeds/althea/althea/althea-dash compile", " make[3] -C package/system/rpcd compile", " make[3] -C package/network/utils/bpftools compile", " make[3] -C feeds/packages/net/net-snmp compile", " make[3] -C package/system/procd compile", " make[3] -C package/system/urandom-seed compile", " make[3] -C package/network/utils/iproute2 compile", " make[3] -C feeds/althea/althea/althea-rust-binaries compile", " make[3] -C package/system/fstools compile", " make[3] -C package/utils/e2fsprogs compile", " make[3] -C package/utils/f2fs-tools compile", " make[3] -C package/base-files compile", " make[3] -C feeds/packages/net/ifstat compile", " make[3] -C feeds/althea/althea/althea-tools compile", "    ERROR: package/feeds/althea/althea-rust-binaries failed to build.", "make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on"]}
...ignoring

TASK [build : Print help on failure] ****************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Firmware compliation failed, run 'cd build/; export RUST_TRIPLE=x86_64-unknown-linux-musl; make V=s world' to see why."}

PLAY RECAP ******************************************************************************************************************************************************************
127.0.0.1                  : ok=29   changed=22   unreachable=0    failed=1    skipped=7    rescued=0    ignored=1   

@jphein
Copy link
Author

jphein commented Jun 10, 2022

Firmware compliation failed,
should be
Firmware compilation failed,

@jphein jphein changed the title Ansible Firmware Compile fails, and typo Ansible Firmware Compilation fails, and typo Jun 10, 2022
@jphein jphein changed the title Ansible Firmware Compilation fails, and typo Ansible firmware compilation fails, and typo Jun 10, 2022
@jphein
Copy link
Author

jphein commented Jun 11, 2022

cd build/; export RUST_TRIPLE=x86_64-unknown-linux-musl; make V=s world
...
( cd /home/jp/althea-firmware/build/build_dir/target-x86_64_musl/althea-rust-binaries-0.19.9 && cargo install cross && cross build --release --target x86_64-unknown-linux-musl -p rita_bin --bin rita )
    Updating crates.io index
     Ignored package `cross v0.2.1` is already installed, use --force to override
? Please select an image: 
    registry.fedoraproject.org/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1
    registry.access.redhat.com/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1
    docker.io/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1
  ▸ quay.io/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1
 

@jphein
Copy link
Author

jphein commented Jun 11, 2022

✔ registry.fedoraproject.org/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1
Trying to pull registry.fedoraproject.org/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1...
Error: initializing source docker://registry.fedoraproject.org/rustembedded/cross:x86_64-unknown-linux-musl-0.2.1: reading manifest x86_64-unknown-linux-musl-0.2.1 in registry.fedoraproject.org/rustembedded/cross: manifest unknown: manifest unknown
make[3]: *** [Makefile:58: /home/jp/althea-firmware/build/build_dir/target-x86_64_musl/althea-rust-binaries-0.19.9/.built] Error 125
make[3]: Leaving directory '/home/jp/althea-firmware/build/feeds/althea/althea/althea-rust-binaries'
time: package/feeds/althea/althea-rust-binaries/compile#4.31#1.26#801.98
    ERROR: package/feeds/althea/althea-rust-binaries failed to build.
make[2]: *** [package/Makefile:116: package/feeds/althea/althea-rust-binaries/compile] Error 1
make[2]: Leaving directory '/home/jp/althea-firmware/build'
make[1]: *** [package/Makefile:110: /home/jp/althea-firmware/build/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/jp/althea-firmware/build'
make: *** [/home/jp/althea-firmware/build/include/toplevel.mk:230: world] Error 2
[jp@fedora build]$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant