x86_64 toolchain

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

x86_64 toolchain

Post by xenos »

I'm just porting my OS to x86_64 and I'm stuck with some toolchain problems.

First of all, I built a toolchain, i.e. binutils and gcc that are x86_64 targeted. Since my build system is a i686 pc with cygwin, I need to build cross compilers. My OS uses ELF executables, so I need a x86_64-elf targeted cross compiler. But when I configure binutils and gcc, it tells me that --target=x86_64-elf is not supported. So I followed this hint:

http://www.mega-tokyo.com/osfaq2/index. ... s-Compiler

Now I got a cross compiler that is x86_64-pc-linux-gnu targeted, but without any Linux libraries. It works fine when I compile my source files manually using options -nostartfiles and -nostdlib. But for my OS I use autoconf to check for the presence of a compiler and tries to compile a c++ file to check if this compiler works. In this case it doesn't work because my auto generated configure script tries to compile a Linux executable, which doesn't work without the libraries.

Does anyone know how to create a toolchain that runs on i686 cygwin, works with autoconf and creates plain x86_64 ELF executables?

Thanks in advance!
Last edited by xenos on Sat Jan 21, 2006 12:00 am, edited 1 time in total.
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: x86_64 toolchain

Post by JAAman »

i would suggest asking candy, since he has the most experience with x86-64 cross-compilers
afaik he doesn't visit this board -- try asking on the (very active) board where you found the info -- mega-tokyo!

[url=http://www.mega-tokyo.com/forum/]
Mega-Tokyo Message Board - Index[/url]
Post Reply