Open urmylicious opened 3 years ago
Looks like you don't have the toolchain installed:
Hi RandyI have the toolchain installed for the one you mentioned and also the latest one and neither of then worked for me. Could you give me guide that will work I have tried every possible way mentioned in the building.md. I have ubuntu 20.04.Kind regardsUrmilOn 8 Mar 2021 14:52, rhester72 notifications@github.com wrote: Looks like you don't have the toolchain installed: https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads/7-2018-q2-update
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Randy
Could you trying compiling on Ubuntu 20.04 as this is the version of Linux it failed on.
This error:
Error: Invalid toolchain prefix, exiting
suggests that the toolchain isn't in your search path.
Make certain that you have followed these steps:
`1. Set the ARM_HOME environment variable to point to the extracted Arm toolchain directory:
export ARM_HOME=/path/to/extracted/toolchain/directory
Set the PATH environment variable to point to the Arm toolchain's bin directory:
export PATH=$PATH:$ARM_HOME/bin
Set the ARM_VERSION environment variable to the version number you noted previously:
export ARM_VERSION=9.2.1`
and that the output of "which arm-none-eabi-gcc" shows the full path to the toolchain gcc.
Hi Randy
These are the problems I encountered when trying to compile for raspberry pi 4 and pi 3 below. I have tried all suggestions on the Buliding.md nothing worked. Kind Regards Urmil
Making for pi4 Making everything...
APPLY PATCHES
patching file libgloss/circle/errno.c patching file libgloss/circle/fstat.c patching file libgloss/circle/getpid.c patching file libgloss/circle/io.cpp patching file libgloss/circle/link.c patching file libgloss/circle/lseek.c patching file libgloss/circle/stat.c patching file libgloss/circle/unlink.c patching file newlib/doc/Makefile.am patching file newlib/libc/include/sys/types.h patching file newlib/libc/sys/circle/sys/dirent.h patching file addon/fatfs/ff.c patching file addon/fatfs/ff.h patching file addon/fatfs/ffconf.h patching file addon/linux/bug.h patching file addon/linux/types.h patching file addon/vc4/interface/bcm_host/bcm_host.c patching file addon/vc4/interface/bcm_host/bcm_host.h patching file addon/vc4/interface/khronos/common/khrn_int_common.h patching file addon/vc4/interface/vmcs_host/vc_vchi_gencmd.c patching file addon/vc4/vchiq/vchiq_2835_arm.c patching file include/circle/memorymap.h patching file include/circle/sysconfig.h patching file include/circle/usb/usbhiddevice.h patching file lib/alloc.cpp patching file lib/sysinit.cpp patching file lib/usb/usbgamepad.cpp patching file lib/usb/usbgamepadxbox360.cpp patching file lib/usb/usbhiddevice.cpp
BUILD CIRCLE-STDLIB /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
patching file configure Hunk #1 succeeded at 161 (offset 1 line). patching file include/circle_glue.h File libs/circle is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/circle.rej File libs/circle-newlib is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/circle-newlib.rej File libs/mbedtls is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/mbedtls.rej RASPBERRYPI=4 TOOLPREFIX=arm-none-eabi- CIRCLE_BUILD=1 FLOAT_ABI=hard NEWLIB_BUILD=1 RASPBERRYPI=4 STDLIB_SUPPORT=3 NEWLIB_INSTALL_DIR=/home/urmil/bmc64/third_party/circle-stdlib/install NEWLIB_BUILD_DIR=/home/urmil/bmc64/third_party/circle-stdlib/build/circle-newlib DEBUG=0 Remaining arguments: Error: Invalid toolchain prefix, exiting TOOLPREFIX is "arm-none-eabi-" Makefile:3: Config.mk: No such file or directory make: *** No rule to make target 'Config.mk'. Stop.
Making for pi3 Making everything...
APPLY PATCHES
patching file libgloss/circle/errno.c patching file libgloss/circle/fstat.c patching file libgloss/circle/getpid.c patching file libgloss/circle/io.cpp patching file libgloss/circle/link.c patching file libgloss/circle/lseek.c patching file libgloss/circle/stat.c patching file libgloss/circle/unlink.c patching file newlib/doc/Makefile.am patching file newlib/libc/include/sys/types.h patching file newlib/libc/sys/circle/sys/dirent.h patching file addon/fatfs/ff.c patching file addon/fatfs/ff.h patching file addon/fatfs/ffconf.h patching file addon/linux/bug.h patching file addon/linux/types.h patching file addon/vc4/interface/bcm_host/bcm_host.c patching file addon/vc4/interface/bcm_host/bcm_host.h patching file addon/vc4/interface/khronos/common/khrn_int_common.h patching file addon/vc4/interface/vmcs_host/vc_vchi_gencmd.c patching file addon/vc4/vchiq/vchiq_2835_arm.c patching file include/circle/memorymap.h patching file include/circle/sysconfig.h patching file include/circle/usb/usbhiddevice.h patching file lib/alloc.cpp patching file lib/sysinit.cpp patching file lib/usb/usbgamepad.cpp patching file lib/usb/usbgamepadxbox360.cpp patching file lib/usb/usbhiddevice.cpp
BUILD CIRCLE-STDLIB /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
patching file configure Hunk #1 succeeded at 161 (offset 1 line). patching file include/circle_glue.h File libs/circle is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/circle.rej File libs/circle-newlib is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/circle-newlib.rej File libs/mbedtls is not a regular file -- refusing to patch 1 out of 1 hunk ignored -- saving rejects to file libs/mbedtls.rej RASPBERRYPI=3 TOOLPREFIX=arm-none-eabi- CIRCLE_BUILD=1 FLOAT_ABI=hard NEWLIB_BUILD=1 RASPBERRYPI=3 STDLIB_SUPPORT=3 NEWLIB_INSTALL_DIR=/home/urmil/bmc64/third_party/circle-stdlib/install NEWLIB_BUILD_DIR=/home/urmil/bmc64/third_party/circle-stdlib/build/circle-newlib DEBUG=0 Remaining arguments: Error: Invalid toolchain prefix, exiting TOOLPREFIX is "arm-none-eabi-" Makefile:3: Config.mk: No such file or directory make: *** No rule to make target 'Config.mk'. Stop.