Make command errors

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

alassg
Posts: 4
Joined: Thu Jan 07, 2021 10:22 pm

Make command errors

Thu Jan 07, 2021 11:16 pm

Hello,

i'm new to linux and right now i'm trying to build the at91boostrap but i'm having the following errors.
I'm using minGw terminal on windows.

Code: Select all

 MINGW64 /c/Users/Alassane/Documents/Entreprise/projet/at91bootstrap
# make sama5d27_som1_eksd_uboot_defconfig
Kconfig:547: invalid option
Kconfig:548: unknown option "AT91SAM9G20"
Kconfig:549: unknown option "AT91SAM9X5"
Kconfig:550: unknown option "SAM9X60"
Kconfig:614: invalid option
Kconfig:615: unknown option "AT91SAM9G20"
Kconfig:616: unknown option "AT91SAM9X5"
Kconfig:637: invalid option
Kconfig:638: unknown option "AT91SAM9G20"
Kconfig:645: invalid option
Kconfig:646: unknown option "SAMA5D2"
Kconfig:660: invalid option
Kconfig:661: unknown option "SAMA5D4"
Kconfig:668: invalid option
Kconfig:669: unknown option "AT91SAM9G20"
Kconfig:670: unknown option "AT91SAM9X5"
Kconfig:684: invalid option
Kconfig:685: unknown option "AT91SAM9G20"
Kconfig:686: unknown option "AT91SAM9X5"
Kconfig:687: unknown option "SAM9X60"
make[1]: *** [Makefile:123 : defconfig] Erreur 1
make: *** [Makefile:411 : sama5d27_som1_eksd_uboot_defconfig] Erreur 2
I installed the GNU ARM Toolchain :

Code: Select all

# arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
And i specified the environment variables:

Code: Select all

# echo $CROSS_COMPILE
arm-none-eabi-

Code: Select all

# echo $PATH
/C/Program Files/GNU Arm Embedded Toolchain/10 2020-q4-major/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
Do anyone know what could lead to these errors?

Thanks in advance.
blue_z
Location: USA
Posts: 2145
Joined: Thu Apr 19, 2007 10:15 pm

Re: Make command errors

Fri Jan 08, 2021 1:01 am

alassg wrote: i'm trying to build the at91boostrap ...
I'm using minGw terminal on windows.
IMO MinGW is not the ideal environment for cross-compiling standalone binaries.

alassg wrote: I installed the GNU ARM Toolchain :

Code: Select all

# arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
FWIW that version of gcc is not listed as a proven toolchain for AT91Bootstrap.
Refer to the README.txt file in AT91Bootstrap source.

alassg wrote: And i specified the environment variables:

Code: Select all

# echo $CROSS_COMPILE
arm-none-eabi-

Code: Select all

# echo $PATH
/C/Program Files/GNU Arm Embedded Toolchain/10 2020-q4-major/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
That may be insufficient.
I always define a CCFLAGS variable to point to the headers subdirectory of the installed toolchain (using the gcc -I option).

Code: Select all

$ export CCFLAGS=-I/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/include
Note however that the path to your installed toolchain has a subdirectory name with embedded blank characters, which could be problematic.


Regards
alassg
Posts: 4
Joined: Thu Jan 07, 2021 10:22 pm

Re: Make command errors

Mon Jan 11, 2021 4:29 pm

blue_z wrote:
Fri Jan 08, 2021 1:01 am
alassg wrote: i'm trying to build the at91boostrap ...
I'm using minGw terminal on windows.
IMO MinGW is not the ideal environment for cross-compiling standalone binaries.

Why that? What would you recommend? (i'm going to use buildroot for this project)
alassg wrote: I installed the GNU ARM Toolchain :

Code: Select all

# arm-none-eabi-gcc --version
arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
FWIW that version of gcc is not listed as a proven toolchain for AT91Bootstrap.
Refer to the README.txt file in AT91Bootstrap source.

On that point, i'm really confused. On the README file, (1.3.1 Install required tools) of at91bootsrap, we are redirected to this link to download the GNU Arm toolchain :https://developer.arm.com/open-source/g ... ain/gnu-rm
And appaently, this what should be done when using a windows computer.
Then, we're given a list of gnu arm toolchain versions that have been tested for at91bootstrap but they have nothing to do with the gnu arm toolchain that can be found on arm website...But apparently, it's targetted to ubuntu and linaro environments.
But here, it's written that linaro cross compiler should be used for windows : https://www.linux4sam.org/bin/view/Linu ... s_Compiler
I'm new to linux and i'm very confused...
alassg wrote: And i specified the environment variables:

Code: Select all

# echo $CROSS_COMPILE
arm-none-eabi-

Code: Select all

# echo $PATH
/C/Program Files/GNU Arm Embedded Toolchain/10 2020-q4-major/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
That may be insufficient.
I always define a CCFLAGS variable to point to the headers subdirectory of the installed toolchain (using the gcc -I option).

Code: Select all

$ export CCFLAGS=-I/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/include
Note however that the path to your installed toolchain has a subdirectory name with embedded blank characters, which could be problematic.


Regards

Actually, i was finaly able to compile at91bootsrap. I was on the master branch on git when trying to compile and i think that was the problem.

Thanks for your answers.

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 1 guest