While Configure gcc with --disable-nls --without-headers --target=x86_64-pc-linux-gnu There used to be an error : crti.o Not FOUND.
Is there anyone who knows how to solve it?Any help is appreciated.
x86-64 Cross GCC compiler build error
x86-64 Cross GCC compiler build error
Just Lazy Writing Anything...
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
From the wiki:
I suggest you read the rest.Creating a cross-compiler to a different CPU is harder than just targeting a different binary format. To add insult to injury, x86_64 is a special case since it does not support a plain ELF target (yet?). Binutils works fine, but GCC causes problems when trying to build it as --target=x86_64-elf, so we have to trick our way around it.
There's a bit of the manual there that says you either need to apply a patch or ignore the errors. The patch is the cleaner way. There's a script to set them up on my SVN server (http://www.sf.net/projects/atlantisos) under the "cross" directory. It also adds a few features from c++0x, which you might not prefer. You can still use the script and the patch.