I have trouble building a cross compiler.
I am using a Ubuntu PC for building the compiler which should run on a Windows PC to produce Elf/Elf64 binaries.
I read the wiki instructions on osdev.org as well on other websites but I fail every time with lots of different erros. I downloaded (binutils-2.26 and) gcc-6.1.0. Also I have installed mingw-w64. I configure gcc with the following command:
Code: Select all
../gcc-6.1.0/configure --prefix=/home/myusername/xc64 --host=x86_64-w64-mingw32 --target=* --enable-languages=c,c++ --disable-nls --disable-shared --without-headers
* Tried different options but I am not sure about the right target name...
- Building on Ubuntu 16.04
- Compiler will run on Win x64
- Compiler should build Elf and Elf64 (afaik I need to have to seperate versions of gcc, one for each architecture, right?)
I am working on this problem since the last 3 or 4 days...
Thank you!