This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Help creating synthetic targets on cygwin-pc.
- From: Stuart Longland <redhatter at gentoo dot org>
- To: dcoder <gtdegamo at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 5 Aug 2010 14:07:13 +1000
- Subject: Re: [ECOS] Help creating synthetic targets on cygwin-pc.
- References: <29352340.post@talk.nabble.com>
I'm very much new to eCos... so I could be wrong...
On Wed, Aug 04, 2010 at 04:49:59PM -0700, dcoder wrote:
>
> Hello. I don't have any embedded hardware so I can't build any thing 'real'.
>
> So, I'm trying to build a synthetic target and I am having problems doing
> so. I am using cygwin, and all my work from a bash shell, just as the
> manual states.
>
> So, I tried the following:
>
> cygwin> ecosconfig new i386linux
>
> # From the list command, this specifies:
> # Target linux (Linux synthetic target):
> # aliases: i386linux
>
> cygwin> ecosconfig tree
> cygwin> ecosconfig tree
> cygwin> ecosconfig check # Everything went okay.
>
> Now I can make, and here's where my problems begin:
[...]
> make[1]: i686-pc-linux-gnu-gcc: Command not found
> make[1]: *** [heapgeninc.tcl] Error 127
>
> I was able to get around this problem by creating a symbolic link to the gcc
> compiler outside of /opt/ecos (the default initialization path).
>
> However, I can't get past the next errors (truncated):
>
> i686-pc-linux-gnu-gcc -c -I/opt/ecos/ecos-work/install/include
> -I/opt/ecos/ecos-3.0/packages/hal/synth/arch/v3_0
> -I/opt/ecos/ecos-3.0/packages/hal/synth/arch/v3_0/src
> -I/opt/ecos/ecos-3.0/packages/hal/synth/arch/v3_0/tests -I.
> -I/opt/ecos/ecos-3.0/packages/hal/synth/arch/v3_0/src/ -finline-limit=7000
> -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -g -O2
> -ffunction-sections -fdata-sections -fno-exceptions
> -Wp,-MD,src/synth_syscalls.tmp -o src/hal_synth_arch_synth_syscalls.o
[...]
> Anyways, does anyone know what I might be doing wrong here?
Could it be something to do with the fact that you are not building it
for an i686-pc-linux-gnu host, but rather, a Cygwin host? They are not
the same.
http://ecos.sourceware.org/docs-latest/ref/synth-porting.html seems to
suggest that this does not work on Windows... but I'd imagine you'd be
looking for a "cygwin" synthetic target, not an "i386linux" one. Unless
of course you're trying to cross-compile the synthetic target from a
Win32 host, then the situation becomes very different indeed.
--
Stuart Longland (aka Redhatter, VK4MSL) .'''.
Gentoo Linux/MIPS Cobalt and Docs Developer '.'` :
. . . . . . . . . . . . . . . . . . . . . . .'.'
http://dev.gentoo.org/~redhatter :.'
I haven't lost my mind...
...it's backed up on a tape somewhere.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss