This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: crosscompile for i386-elf on openbsd 2.6
- To: help-gcc at gnu dot org
- Subject: Re: crosscompile for i386-elf on openbsd 2.6
- From: karuottu at freenet dot hut dot fi (Kai Ruottu)
- Date: Fri, 07 Jan 2000 15:19:51 GMT
- Newsgroups: gnu.gcc.help
- Organization: SAUNALAHDEN SERVERIN asiakas
- References: <slrn86vqo1.cn8.dbt@pianosa.catch22.org>
- Reply-To: karuottu at freenet dot hut dot fi
- Xref: wodc7nx0 gnu.gcc.help:2389
On 2 Jan 2000 16:19:13 -0800, dbt@meat.net (dbt) wrote:
>I'd like to build a crosscompiler for i386-elf on an OpenBSD system.
>binutils has no problem with a target of i386-elf (it expands it to
>i386-pc-elf), but gcc's configure fails with:
>Configuration i386-pc-elf not supported
>i386-elf is listed as supported in the crosscompile faq at
>http://www.objsw.com/CrossGCC/, any suggestions?
Please always tell the GCC version when asking the support for some
target...
At least gcc-2.95.2 should now support the i386-elf, egcs-1.1.x
officially did'nt, although I seem to have used it for i386-elf
since the end of 1998. For producing C-code I still prefer
egcs-1.1.2, not gcc-2.95.2.
Things like the support for '-msoft-float' aren't however yet
included into the 'i386-elf' support in gcc-2.95.2 (if there is
any support).
Some people may think that 'i386-elf' is just the same as
'i386-freebsdelf' (FreeBSD 3.x) or 'i386-linux-gnu' (RH5.x, 6.x) or
'i386-sysv4.2' (UW1.x, 2.x) or 'i386-sysv5' (UW7), which all use ELF
as their object format. But it really isn't, so when the 'magic word':
'embedded' (with no BIOS, no opsys) wasn't seen in your question, your
real target could be something else, please check this first...
If your target really is the embedded 'i386-elf', I suggest trying
with gcc-2.95.2 (but perhaps it too still lacks the 'i386-elf'
support...). Copying the 'i386-elf' configuration from the Cygnus
eCos-1.2.1 devtools-sources (990319) to the egcs-1.1.2 (990314)
sources should succeed easily, or using the ecos-1.2.1 devtools-
sources themselves.
Please see: ftp://sourceware.cygnus.com/pub/ecos
Cheers, Kai