Onion omega : "make" for cross compile issue

Hi.

I’m learning cross compiling for onion omega2+(Onion Omega2 Documentation).
I followed the tutorial which uploaded in their youtube, but I blocked by some error.

youtube : C Programs & Cross Compiling for the Omega2 - YouTube

The error codes are as follows:

WARNING: Makefile ‘package/feeds/onion/transmission-console-app/Makefile’ has a dependency on ‘Onion-Console’, which does not exist
WARNING: Makefile ‘package/feeds/onion/transmission-console-app/Makefile’ has a dependency on ‘transmission-daemon’, which does not exist
WARNING: Makefile ‘package/feeds/onion/zeromq/Makefile’ has a build dependency on ‘libuuid’, which does not exist
make[1] world
make[2] target/compile
make[3] -C target/linux compile
make[2] diffconfig
make[2] package/cleanup
make[2] package/compile
make[3] -C package/libs/libjson-c host-compile
make[3] -C package/libs/libubox host-compile
make[3] -C package/system/opkg host-compile
make[3] -C package/libs/toolchain 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/libs/libubox compile
make[3] -C package/system/ubus compile
make[3] -C package/system/uci compile
make[3] -C package/network/config/netifd compile
make[3] -C package/firmware/linux-firmware compile
make[3] -C package/firmware/prism54-firmware compile
make[3] -C package/kernel/linux compile
make[3] -C package/system/ubox compile
make[3] -C package/libs/ncurses host-compile
make[3] -C package/libs/zlib compile
make[3] -C package/libs/ncurses compile
make[3] -C package/utils/util-linux compile
make[3] -C package/system/fstools compile
make[3] -C package/system/fwtool host-compile
make[3] -C package/system/fwtool compile
make[3] -C package/system/procd compile
make[3] -C package/system/usign host-compile
make[3] -C package/utils/jsonfilter compile
make[3] -C package/system/openwrt-keyring compile
make[3] -C package/system/usign compile
make[3] -C package/base-files compile
make[3] -C package/boot/uboot-envtools compile
make[3] -C package/devel/valgrind compile
make[3] -C feeds/onion/onion-sh-lib compile
make[3] -C feeds/packages/libs/libxml2 compile
make[3] -C package/libs/uclibc++ compile
make[3] -C feeds/packages/libs/db47 compile
make[3] -C feeds/packages/libs/expat compile
make[3] -C package/libs/gettext-full host-compile
make[3] -C feeds/packages/libs/gdbm compile
make[3] -C feeds/packages/libs/libffi compile
make[3] -C feeds/packages/lang/python/python-pip-conf compile
make[3] -C feeds/packages/libs/expat host-compile
make[3] -C package/utils/bzip2 host-compile
make[3] -C feeds/packages/lang/python/python host-compile
make[3] -C package/libs/readline compile
make[3] -C feeds/packages/libs/sqlite3 compile
make[3] -C package/libs/openssl compile
make[3] -C package/system/ca-certificates compile
make[3] -C package/utils/bzip2 compile
make[3] -C feeds/packages/lang/python/python compile
make[3] -C feeds/packages/libs/libffi host-compile
make[3] -C feeds/packages/lang/python/python3 host-compile
make[3] -C feeds/packages/utils/bash compile
make[3] -C feeds/packages/utils/xz compile
make[3] -C feeds/packages/lang/python/python3 compile
make[3] -C package/network/utils/iwinfo compile
make[3] -C package/system/rpcd compile
make[3] -C feeds/onion/i2c-exp-driver compile
make[3] -C feeds/packages/utils/bc compile
make[3] -C feeds/packages/utils/attr compile
make[3] -C feeds/packages/utils/acl compile
make[3] -C feeds/packages/libs/libcap compile
make[3] -C package/libs/gmp compile
make[3] -C feeds/packages/utils/coreutils compile
make[3] -C feeds/onion/adc-exp compile
make[3] -C feeds/packages/libs/confuse compile
make[3] -C package/libs/libusb compile
make[3] -C feeds/packages/libs/libftdi1 compile
make[3] -C package/libs/gettext compile
make[3] -C package/libs/libiconv compile
make[3] -C package/libs/argp-standalone compile
make[3] -C package/libs/elfutils compile
make[3] -C package/libs/libusb-compat compile
make[3] -C feeds/onion/avrdude/avrdude compile
make[3] -C feeds/onion/arduino-dock compile
make[3] -C feeds/onion/dht-sensor compile
make[3] -C feeds/onion/fast-gpio compile
make[3] -C feeds/packages/fonts/dejavu-fonts-ttf compile
make[3] -C feeds/packages/libs/libpng compile
make[3] -C feeds/packages/libs/freetype compile
make[3] -C package/libs/libtool compile
make[3] -C feeds/packages/utils/fontconfig compile
make[3] -C feeds/packages/libs/libexif compile
make[3] -C feeds/packages/libs/libjpeg compile
make[3] -C feeds/packages/libs/tiff compile
make[3] -C package/libs/mbedtls compile
make[3] -C package/network/utils/curl compile
make[3] -C feeds/onion/fbida compile
make[3] -C feeds/onion/hostname-tool compile
make[3] -C feeds/packages/utils/pcsc-lite compile
make[3] -C feeds/packages/utils/ccid compile
make[3] -C feeds/packages/utils/vim compile
make[3] -C feeds/onion/libnfc compile
make[3] -C feeds/onion/libfreefare compile
make[3] -C feeds/onion/lv_micropython compile
make -r world: build failed. Please re-run make with -j1 V=s to see what’s going on
/root/source/include/toplevel.mk:216: recipe for target ‘world’ failed
make: *** [world] Error 1

after that, I installed some packages but it didn’t work.
Please teach me what should I do.

Thanks…

You should do what the error message suggests:

make -r world: build failed. Please re-run make with -j1 V=s to see what’s going on

The build system looks similar to the one used by OpenWRT, which logs only the packages getting built by default, and not detailed build messages from all packages. So the re-run with adjusted parameters is necessary to get helpful messages. If you don’t understand the errors that show up then it might be better use the support channels of that “Onion omega” project.

/root/source/include/toplevel.mk:216: recipe for target ‘world’ failed

As a side note, this looks like you’re running the build as root instead of a regular user. That is dangerous because it lets the build process do literally anything to your system.

1 Like

I’ll do it the way you said it. Thank you.

1 Like