0

I am trying to compile buildroot to ARM cortex M4.

i donwloaded the ARM Cross compiler https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

and configure buildroot using xconfig to use external tool chain with direction to the arm gcc compiler

but i am getting that it search the version.h include in /usr/include

how to i tell gcc in buildroot to search in my installed directory

Thanks!

user1820451
  • 153
  • 2
  • 14

1 Answers1

1

This cross compiler from ARM is a bare metal compiler, so it cannot build Linux userspace applications/libraries. Therefore, trying to use this compiler with Buildroot does not make much sense, because the whole point of Buildroot is to build a Linux system, with Linux userspace applications and libraries.

Thomas Petazzoni
  • 5,636
  • 17
  • 25
  • so i donwloaded codesourcery and create the bash shell script for the compiler : export HOSTCC=arm-none-eabi-gcc export HOSTCXX=arm-none-eabi-g++ export BR2_DL_DIR=/home/elia/BuildRootDownloads export PATH=/usr/local/CodeBench_1802_EABI/bin:/home/elia/uclibc/include:$PATH export UCLIBC_CONFIG_FILE=/home/elia/buildroot2017_02/buildroot-2017.02.2/package/uclibc/uClibc-ng.config i am using internal toolchain in the settings, and from what i undestand from this error /symbol.c:10:25: fatal error: sys/utsname.h: No such file or directory is that uclibc header cannot be found – user1820451 May 08 '17 at 04:18
  • i am trying to compile raspbberyPi3 using buildroot. so i did the following make raspberrypi3_defconfig and then make. i installed the CS toolchain and uclibc and add it to the environment like i mention above. i cannot yet overcome the error of sys/utsname.h : no such file. btw i tried external toolchain , but there i got different errors. can you please help? – user1820451 May 08 '17 at 04:26