Page 1 of 1

x86-64 Cross GCC compiler build error

Posted: Fri Dec 22, 2006 9:29 am
by hendric
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.

Posted: Fri Dec 22, 2006 9:42 am
by Combuster
From the wiki:
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.
I suggest you read the rest.

Posted: Fri Dec 22, 2006 10:23 am
by hendric
Thanks for your kind reply, I'll have a try.

But I remeber before I reinstalled My Linux I 've ever built the x86_64 gcc successfully But I did not know what happended now

Anyway, Thank you

Posted: Fri Dec 22, 2006 11:02 am
by Candy
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.

Posted: Sat Dec 23, 2006 11:55 am
by hendric
I've tried a lot but it said that x86_64-pc-elf DOES NOT support cause me so crazy....

Posted: Sat Dec 23, 2006 10:47 pm
by hendric
It's been solved after my trying again and again . But still don't I know why...Sigh