public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Building for freescale_twr_k60n512 failing under Cygwin
@ 2012-02-17 17:14 Michael Bergandi
  2012-02-21  6:25 ` [ECOS] " John Dallaway
  2012-02-21 16:32 ` [ECOS] " Sergei Gavrikov
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Bergandi @ 2012-02-17 17:14 UTC (permalink / raw)
  To: eCos Discuss List

I am attempting to exercise the eCos port to the Freescale
TWR-K60N512. However, I am currently unable to get it to even build
under Cygwin. I have followed the same procedure under Ubuntu 10.04
LTS and the build succeeds without issue. Unfortunately, for various
reasons, I need this to work on a Windows machine under Cygwin.

My current setup is:
Windows XP Pro SP3 32-bit
Latest cygwin (1.7.10) with tcl-tk bin and src v8.5
Current arm-eabi toolchain downloaded from an eCos mirror site
eCos from CVS (pulled down today: 2/12/2012)
ecosconfig binary from eCosCentric (I have also built my own, but same result)

The recipe I am using is:
mkdir ~/ecos-twr
cd ~/ecos-twr
cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos ecos-host
ECOS_REPOSITORY=~/ecos-twr/ecos/packages
export ECOS_REPOSITORY
mkdir ecosbuild
cd ecosbuild
ecosconfig new freescale_twr_k60n512 default
ecosconfig tree
make

The build eventually terminates with the following:
{...}
make[1]: Entering directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/io/wallclock/current'
make[1]: Leaving directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/io/wallclock/current'
make -r -C error/current headers
make[1]: Entering directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/error/current'
make[1]: Leaving directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/error/current'
headers finished
make -r -C services/memalloc/common/current heapgeninc.tcl
make[1]: Entering directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/services/memalloc/common/current'
arm-eabi-gcc -finline-limit=7000 -Wall -Wpointer-arith  -Wundef
-Woverloaded-virtual -Wno-write-strings -mcpu=cortex-m3 -mthumb -g -O2
-ffunction-sections -fda
a-sections -fno-rtti -fno-exceptions
-I/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/install/include
-I/cygdrive/c/cygwin/home/twrk60n512/ecos/packages/service
/memalloc/common/current
-I/cygdrive/c/cygwin/home/twrk60n512/ecos/packages/services/memalloc/common/current/src
-I/cygdrive/c/cygwin/home/twrk60n512/ecos/pack
ges/services/memalloc/common/current/tests -I. -Wp,-MD,heapgen.tmp -E
/cygdrive/c/cygwin/home/twrk60n512/ecos/packages/services/memalloc/common/current/src/hea
gen.cpp -o heapgeninc.tcl
arm-eabi-gcc.exe:
/cygdrive/c/cygwin/home/twrk60n512/ecos/packages/services/memalloc/common/current/src/heapgen.cpp:
No such file or directory
arm-eabi-gcc.exe: no input files
makefile:43: recipe for target `heapgeninc.tcl' failed
make[1]: *** [heapgeninc.tcl] Error 1
make[1]: Leaving directory
`/cygdrive/c/cygwin/home/twrk60n512/ecosbuild/services/memalloc/common/current'
makefile:15: recipe for target `build' failed
make: *** [build] Error 2
Build failed

It looks to me like ecosconfig is not pulling over the source for the
memalloc service. Any ideas?

Thank you,

-- 
Mike

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ECOS] Re: Building for freescale_twr_k60n512 failing under Cygwin
  2012-02-17 17:14 [ECOS] Building for freescale_twr_k60n512 failing under Cygwin Michael Bergandi
@ 2012-02-21  6:25 ` John Dallaway
  2012-02-21  7:45   ` Michael Bergandi
  2012-02-21 16:32 ` [ECOS] " Sergei Gavrikov
  1 sibling, 1 reply; 5+ messages in thread
From: John Dallaway @ 2012-02-21  6:25 UTC (permalink / raw)
  To: Michael Bergandi; +Cc: eCos Discuss List

Hi Mike

Michael Bergandi wrote:

> I am attempting to exercise the eCos port to the Freescale
> TWR-K60N512. However, I am currently unable to get it to even build
> under Cygwin. I have followed the same procedure under Ubuntu 10.04
> LTS and the build succeeds without issue. Unfortunately, for various
> reasons, I need this to work on a Windows machine under Cygwin.
> 
> My current setup is:
> Windows XP Pro SP3 32-bit
> Latest cygwin (1.7.10) with tcl-tk bin and src v8.5
> Current arm-eabi toolchain downloaded from an eCos mirror site
> eCos from CVS (pulled down today: 2/12/2012)
> ecosconfig binary from eCosCentric (I have also built my own, but same result)

Check that you are able to invoke arm-eabi-gcc directly from a Cygwin
bash prompt to compile a trivial C file. Missing packages in a Cygwin
installation can sometimes lead to silent failure of the compiler.

I hope this helps...

John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ECOS] Re: Building for freescale_twr_k60n512 failing under Cygwin
  2012-02-21  6:25 ` [ECOS] " John Dallaway
@ 2012-02-21  7:45   ` Michael Bergandi
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bergandi @ 2012-02-21  7:45 UTC (permalink / raw)
  To: John Dallaway; +Cc: eCos Discuss List

John,

On Mon, Feb 20, 2012 at 4:09 PM, John Dallaway <john@dallaway.org.uk> wrote:
> Hi Mike
>
> Michael Bergandi wrote:
>
>> I am attempting to exercise the eCos port to the Freescale
>> TWR-K60N512. However, I am currently unable to get it to even build
>> under Cygwin. I have followed the same procedure under Ubuntu 10.04
>> LTS and the build succeeds without issue. Unfortunately, for various
>> reasons, I need this to work on a Windows machine under Cygwin.
>>
>> My current setup is:
>> Windows XP Pro SP3 32-bit
>> Latest cygwin (1.7.10) with tcl-tk bin and src v8.5
>> Current arm-eabi toolchain downloaded from an eCos mirror site
>> eCos from CVS (pulled down today: 2/12/2012)
>> ecosconfig binary from eCosCentric (I have also built my own, but same result)
>
> Check that you are able to invoke arm-eabi-gcc directly from a Cygwin
> bash prompt to compile a trivial C file. Missing packages in a Cygwin
> installation can sometimes lead to silent failure of the compiler.

I actually thought of this and double checked that the listed packages at:

http://ecos.sourceware.org/cygwin.html

were in fact installed. I have everything listed there at least in binary form.

I also invoked the following

$ arm-eabi-gcc.exe -c -o hello.o
-I../twrk60n512/ecosbuild/install/include hello.c

The hello.c is from the example directory and the include directory is
from building the ecos tree outside of cygwin.

I get no complaints from gcc and a hello.o is produced.

Any other ideas?

-- 
Mike

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Building for freescale_twr_k60n512 failing under Cygwin
  2012-02-17 17:14 [ECOS] Building for freescale_twr_k60n512 failing under Cygwin Michael Bergandi
  2012-02-21  6:25 ` [ECOS] " John Dallaway
@ 2012-02-21 16:32 ` Sergei Gavrikov
  2012-02-22  5:34   ` Michael Bergandi
  1 sibling, 1 reply; 5+ messages in thread
From: Sergei Gavrikov @ 2012-02-21 16:32 UTC (permalink / raw)
  To: Michael Bergandi; +Cc: eCos Discuss List

On Fri, 17 Feb 2012, Michael Bergandi wrote:

> I am attempting to exercise the eCos port to the Freescale
> TWR-K60N512. However, I am currently unable to get it to even build
> under Cygwin. I have followed the same procedure under Ubuntu 10.04

[snip]

> makefile:43: recipe for target `heapgeninc.tcl' failed

services/memalloc/common/current/cdl/memalloc.cdl:274

  make -priority 50 {
      heapgeninc.tcl : <PACKAGE>/src/heapgen.cpp
      $(CC) $(ACTUAL_CXXFLAGS) $(INCLUDE_PATH) -Wp,-MD,heapgen.tmp -E $< -o $@
      @sed -e '/^ *\\/d' -e "s#.*: #$@: #" heapgen.tmp > $(notdir $@).deps
      @rm heapgen.tmp
  }

Just a guess, may be that is `sed' issue? Try this make rule in a
terminal. Or  temporary remove silence sign '@' for sed in cdl.

Sergei


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] Building for freescale_twr_k60n512 failing under Cygwin
  2012-02-21 16:32 ` [ECOS] " Sergei Gavrikov
@ 2012-02-22  5:34   ` Michael Bergandi
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Bergandi @ 2012-02-22  5:34 UTC (permalink / raw)
  To: Sergei Gavrikov; +Cc: eCos Discuss List

>> makefile:43: recipe for target `heapgeninc.tcl' failed
>
> services/memalloc/common/current/cdl/memalloc.cdl:274
>
>  make -priority 50 {
>      heapgeninc.tcl : <PACKAGE>/src/heapgen.cpp
>      $(CC) $(ACTUAL_CXXFLAGS) $(INCLUDE_PATH) -Wp,-MD,heapgen.tmp -E $< -o $@
>      @sed -e '/^ *\\/d' -e "s#.*: #$@: #" heapgen.tmp > $(notdir $@).deps
>      @rm heapgen.tmp
>  }
>
> Just a guess, may be that is `sed' issue? Try this make rule in a
> terminal. Or  temporary remove silence sign '@' for sed in cdl.

Thanks Sergei. Sed was actually working fine.

I think there was a combination of problems. I think John was on the
right track about missing packages. Before I saw John's reply, I went
back and checked that I had all of the requisite packages. I saw that
I was actually missing patch and sharutils. Oddly, I have been
building the eCos 2 tree for years without them. However, I installed
patch and sharutils and the build still failed, which is why I
reported that I had all of them installed. What I failed to notice is
that the build failed in different way....  it couldn't find
arm-eabi-gcc.

Not finding gcc was a botch on my part. I used a relative path to my
tool chain. Now, it builds fine.

-- 
Mike

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-21 16:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-17 17:14 [ECOS] Building for freescale_twr_k60n512 failing under Cygwin Michael Bergandi
2012-02-21  6:25 ` [ECOS] " John Dallaway
2012-02-21  7:45   ` Michael Bergandi
2012-02-21 16:32 ` [ECOS] " Sergei Gavrikov
2012-02-22  5:34   ` Michael Bergandi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).