sh: arm-none-eabi-gcc: not found

Hello to everyone.

I would like to compile u-boot for the Arndale Board (http://www.arndaleboard.org) the evaluation board built by Insignal - the partner company to Samsung. This is the tutorial that I'm following :


So :

Code:
mario@marietto:/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable # gmake

CROSS_COMPILE=arm-none-eabi- arndale5250_config
Configuring for arndale5250 - Board: arndale5250, Options: ARNDALE5250

mario@marietto:/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable # gmake

CROSS_COMPILE=arm-none-eabi-sh: arm-none-eabi-gcc: not found
sh: arm-none-eabi-gcc: not found
usage: dirname string [...]
Generating include/autoconf.mk
sh: arm-none-eabi-gcc: not found
Generating include/autoconf.mk.dep
sh: arm-none-eabi-gcc: not found
sh: arm-none-eabi-gcc: not found
sh: arm-none-eabi-gcc: not found
usage: dirname string [...]
sh: arm-none-eabi-gcc: not found
sh: arm-none-eabi-ld: not found
arm-none-eabi-gcc -DDO_DEPS_ONLY \
        -g  -Os  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -I/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe -DCONFIG_ARM -D__ARM__    -march=armv5 -Wall -Wstrict-prototypes     \        -o lib/asm-offsets.s lib/asm-offsets.c -c -S

sh: arm-none-eabi-gcc: not found
gmake: *** [Makefile:669: lib/asm-offsets.s] Error 127

that's because cross-gcc has been removed from ports :

mario@marietto:/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable # find /usr/ports -name cross-gcc

nothing

probably that tutorial is very old. Maybe someone should update it ? Anyway,what can I use instead of cross-gcc ?
 
Code:
elgrande@elfreebsdo1:~ % pkg search arm-none-eabi-gcc
arm-none-eabi-gcc-11.3.0_2     GNU Compiler Collection for bare metal arm cross-development
 
Thanks. Anyway,the tutorial should be fixed. This command does not work anymore :

Code:
$ cd /usr/ports/devel/cross-gcc
$ sudo make TGTARCH=arm TGTABI=none-eabi install
 
another fix is needed here :

Code:
mario@marietto:/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable # gmake
 CROSS_COMPILE=arm-none-eabi-

arm-none-eabi-gcc -DDO_DEPS_ONLY \
        -g  -Os  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -I/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc/arm-none-eabi/11.3.0/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage   \
        -o lib/asm-offsets.s lib/asm-offsets.c -c -S
In file included from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/compiler.h:40,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/byteorder/little_endian.h:12,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/byteorder.h:29,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/io.h:26,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/arch/cpu.h:102,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/configs/arndale5250.h:34,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/config.h:11,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/common.h:37,
from lib/asm-offsets.c:18:
/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc11.h: No such file or directory
87 | #include gcc_header(__GNUC__)
| ^~~~~
compilation terminated.
gmake: *** [Makefile:669: lib/asm-offsets.s] Error 1
 
---> You know what a Wiki is ?

This is not the point. I don't have the permission to edit something. I don't even see the button to register myself. Can I do it ? Because I read "immutable page". Anyway,I don't know how to fix it,yet. For sure I can't and I won't to fix everything. I have my priorities. I think that the main responsability for keeping updated that page belongs to SashaVigole. He is for sure more experienced than me.
 
another fix is needed here :

Code:
mario@marietto:/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable # gmake
 CROSS_COMPILE=arm-none-eabi-

arm-none-eabi-gcc -DDO_DEPS_ONLY \
        -g  -Os  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -I/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc/arm-none-eabi/11.3.0/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage   \
        -o lib/asm-offsets.s lib/asm-offsets.c -c -S
In file included from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/compiler.h:40,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/byteorder/little_endian.h:12,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/byteorder.h:29,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/io.h:26,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/asm/arch/cpu.h:102,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/configs/arndale5250.h:34,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/config.h:11,
from /mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/common.h:37,
from lib/asm-offsets.c:18:
/mnt/zroot2/zroot2/OS/Chromebook/domU/freebsd-xen/arndale/u-boot-linaro-stable/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc11.h: No such file or directory
87 | #include gcc_header(__GNUC__)
| ^~~~~
compilation terminated.
gmake: *** [Makefile:669: lib/asm-offsets.s] Error 1
you have lang/gcc11 installed?
 
I will propose to the wiki team how to update it when I have fixed the errors. I have installed gcc11,but the error is not changed.
 
When I have installed gcc11 from ports,it said that I should specify : -Wl,-rpath=/usr/local/lib/gcc11
So,like this ?

# gmake CROSS_COMPILE=arm-none-eabi- -Wl,-rpath=/usr/local/lib/gcc11

it does not work.
 
Back
Top