GCC cross compiler setting up. No includes files in inc dir
Posted: Mon Oct 24, 2022 6:56 am
Hi!
I tried to setting up gcc cross-compilation enviroment with this tutorial: https://wiki.osdev.org/GCC_Cross-Compiler
But after all these steps, I have a problem:
There is no include files in dir: /home/$(username)/opt/cross/include/
So when I try to include string.h header, I have a problem.
I am using this script:
I don't see any error in make logs(https://drive.google.com/file/d/1LDaaOz ... sp=sharing)
I tried to setting up gcc cross-compilation enviroment with this tutorial: https://wiki.osdev.org/GCC_Cross-Compiler
But after all these steps, I have a problem:
There is no include files in dir: /home/$(username)/opt/cross/include/
So when I try to include string.h header, I have a problem.
I am using this script:
Code: Select all
ARG_PREFIX ="$HOME/opt/cross"
ARG_TARGET =i686-elf
ARG_GCC_VERSION="9.5.0"
cd build-gcc
echo "Start building gcc{$ARG_GCC_VERSION, $ARG_TARGET}"
../deps/gcc-$ARG_GCC_VERSION/configure \
--target=$ARG_TARGET \
--prefix=$ARG_PREFIX \
--disable-nls \
--enable-languages=c,c++ \
--without-headers
make all-gcc
make install-gcc
make all-target-libgcc
make install-target-libgcc
#make install-gcc
cd ..