To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 576
575  |  577
Subject: 
Re: (Failed) Getting LegOS 0.2.2 working on Windows
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 15 Dec 1999 09:18:23 GMT
Viewed: 
1065 times
  
Strange. I got my cygwin through the cygnus site, but as far as i can tell
it's the same as the one on arthurdent. Mine comes from one of the mirrors
on ftp://go.cygnus.com/pub/sourceware.cygnus.com/pub/cygwin/latest/. The
file is called full.exe.

I tried this on a NT 4 machine with little success. First of I got the
message:

chili : /legOS make
for i in util lib boot demo ; do make -C $i || exit -1 ; done
i was unexpected at this time.
make: *** [all] Error 1

After replacing the make version 3.75 which comes with the cygwin by a newer
version (3.77) I get
a little further:

Make --version gives me: "GNU Make version 3.75"


chili : /legOS make
for i in util lib boot demo ; do make -C $i || exit -1 ; done
make[1]: Entering directory `C:/legOS/util'
cc     firmdl3.c   -o firmdl3
process_begin: CreateProcess((null), cc firmdl3.c -o firmdl3, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [firmdl3] Error 2

So I copied gcc to cc. Now I get:

This doesn't seem right. It should use gcc in the first place. Try "cygcheck
-s" in cygwin and see if it reports any errors, it should find gcc.exe
(amongst others).


make[2]: Entering directory `C:/legOS/util/dll-src'
gcc -o loader.o -c loader.c -O2 -Wall -I. -I../../include/lnp
loader.c: In function `lnp_logical_write':
loader.c:100: warning: implicit declaration of function `bzero'
loader.c: In function `lnp_assured_write':
loader.c:167: warning: implicit declaration of function `rcxH'
loader.c:167: warning: passing arg 1 of `WaitCommEvent' makes pointer from
integer without a cast
loader.c:182: warning: passing arg 1 of `GetOverlappedResult' makes pointer
from integer without a cast
loader.c: In function `main':
loader.c:333: warning: passing arg 4 of `getopt_long' discards `const' from
pointer target type
gcc -o rcxtty.o -c rcxtty.c -O2 -Wall -I. -I../../include/lnp
rcxtty.c: In function `rcxInit':
rcxtty.c:90: warning: `hCom' might be used uninitialized in this function
gcc -o keepalive.o -c keepalive.c -O2 -Wall -I. -I../../include/lnp

These warnings seem to be harmless, i get them too.

make[2]: *** No rule to make target `lnp.o', needed by `dll'.  Stop.

I don't get this, if it has a rule for keepalive.o, i has one for lnp.o.
Anyone?

make[2]: Leaving directory `C:/legOS/util/dll-src'
exit: Illegal number: -1
make[1]: *** [dll] Error 2
...

The gcc in the cygwin version is egcs-2.91.57. Are you sure you are using the
same tools? I got mine from the
links in the web page.

Yes, i think so. I didn't get mine from Luis' page, but everything seems the
same. I'm using egcs-2.91.57 (for target i586-cygwin32). I see that i have a
/bin directory with sh.exe in it. I remember that this was recommended when
installing cygwin. They also recommend making a /tmp directory. Also, start
up cygwin with the cygnus.bat file (or through Start->Programs->Cygnus
Solutions->Cygwin B20).

That's all i can think of right now.

Peter

PS You might want to check: http://sourceware.cygnus.com/cygwin/faq/.



Message has 1 Reply:
  Re: (Failed) Getting LegOS 0.2.2 working on Windows
 
Hi, thank you all for your help. (...) works now. I think the problem was that I used MS Command Prompt and called bash there instead of using the cygwin window directly. (...) Could fix that as well. I used Winzip to unpack legOS instead of tar (...) (25 years ago, 17-Dec-99, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR