This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems installing on Windows 7 x64


I found the reason of the error: the tcl_platform(os) call returns
"CYGWIN_NT-6.1-WOW64" instead of the expected "windows" string.
Here the patch that SHOULD avoid the error (the code part below starts
around line 67 of ecos-install.tcl):

# ----------------------------------------------------------------------------
# Namespaces. All code and variables in this script are kept in the namespace
# "ecos_install". This is not really necessary for stand-alone operation, but
# if it ever becomes desirable to embed this script in a larger application then
# using a namespace is a lot easier.
#
# As a fringe benefit, all global variables can be declared inside this
# namespace and initialised.
#

namespace eval ecos_install {
        # What OS is this?
        variable os $tcl_platform(platform)
        # "unix" isn't specific enough, so:
        if { $os == "unix" } {
                set os $tcl_platform(os)
        }
	  # ---------------- begin patch
	  if {[string match "CYGWIN*" $os]} {
			set os "windows"
		}
	  # ---------------- end patch


I wrote SHOULD since I still experience the random error "couldn't
fork child process: resource temporarily unavailable", so I'm not able
to fully test the patch.

Hope that help.

Ciao
Fabrizio


Il 14 aprile 2012 12:06, Fabrizio Carrai <f.carrai@libero.it> ha scritto:
> Same problem to me, with the same Windows configuration. Moreover at
> the start, sometimes I got the error
>
> $ sh ecos-install.tcl
> eCos installer v2.0.1 starting...
> Written and maintained by Jonathan Larmour <jifl@eCosCentric.com>
>
> Retrieving installer metadata information...
> ? ? ?0 [main] tclsh8.5 1316 child_info_fork::abort: libtcl8.5.dll:
> Loaded to different address: parent(0x5E0000) != child(0x590000)
> ? ? ?0 [main] tclsh8.5 3240 child_info_fork::abort: libtcl8.5.dll:
> Loaded to different address: parent(0x5E0000) != child(0x410000)
> ? ? ?0 [main] tclsh8.5 3836 child_info_fork::abort: libtcl8.5.dll:
> Loaded to different address: parent(0x5E0000) != child(0x410000)
>
> *** ecos-install.tcl error: Failed to retrieve metadata:
> couldn't fork child process: resource temporarily unavailable
>
> This message is in copy to the author: available for any further test.
> Thanks in advance.
>
> F.
>
> Il 14 aprile 2012 01:32, Andrew Hannam <andrewh@inmarket.com.au> ha scritto:
>> When trying to install on Windows 7 x64 I got the following message after
>> picking the distribution site and the install directory...
>>
>> Available prebuilt GNU tools:
>>
>> *** ecos-install.tcl error: *** ecos-install.tcl error: can't read
>> "ecos_install::toolchains(CYGWIN_NT-6.1-WOW64)": no such element in array
>>
>> What do I need to do to resolve this?
>> PS. Searched Archives but couldn't find anything similar.
>>
>>
>> --
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]