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 / 3021
3020  |  3022
Subject: 
Re: installation of cygwin and legos/brickos
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 9 Dec 2002 13:21:10 GMT
Viewed: 
3228 times
  
John,

It looks as if you don't have the cross compiler or it is is not in a known
directory.  Try searching your entire hard drive for h8300.  That might
bring something up. You should have either tired to build the cross compiler
or downloaded it from hitachi's web site.

Ed

John wrote:
------------------------------------------------------------------------
Thanks for your help Ed, this looks promising I am using legos-0.2.6,
and
win 98
- I did the changes you suggested, and then rebuilt the cross compiler,
and
re-checked the changes made had not been altered in the 2 common files.

Then I ran makeclean - seemed ok and followed this with make depend
which
gave the output below (less the top 2 lines.) I think that this is
moving
the right way, are any other changes in the files suggested by the
"h8300-hitachi-hms-gcc: not found" and other errors?

I have listed the commands used and the output from these during the
"try
it" section in the legos installation instructions. This may help in
diagnosis of the problem.

Error summary from below:
h8300-hitachi-hms-gcc: not found

make[1]: *** [depend] Error 127
make: *** [depend] Error 2

make[2]: *** [memcpy.o] Error 255
make[1]: *** [libc.a] Error 2
make: *** [all] Error 2

../boot/legos.srec: failed to open

Thanks again, John.

make[1]: Entering directory `/legos-0.2.6/util'
make - --unix -w -C dll-src depend
make[2]: Entering directory `/legos-0.2.6/util/dll-src'
gcc -M -O2 -Wall -D_WIN32 -I. -I../../include/lnp -c loader.c rcxtty.c
keepalive
.c ../../kernel/lnp.c lx.c convert.c srec.c srecload.c lx.c >.depend
../../kernel/lnp.c:117:9: warning: multi-line string literals are
deprecated
make[2]: Leaving directory `/legos-0.2.6/util/dll-src'
make - --unix -w -C firmdl depend
make[2]: Entering directory `/legos-0.2.6/util/firmdl'
make[2]: Nothing to be done for `depend'.
make[2]: Leaving directory `/legos-0.2.6/util/firmdl'
make[1]: Leaving directory `/legos-0.2.6/util'
make[1]: Entering directory `/legos-0.2.6/lib'
make[1]: Nothing to be done for `depend'.
make[1]: Leaving directory `/legos-0.2.6/lib'
make[1]: Entering directory `/legos-0.2.6/boot'
h8300-hitachi-hms-gcc -M -I/legos-0.2.6/include
-I/legos-0.2.6/include/lnp
-I. /
legos-0.2.6/kernel/*.c > .depend
h8300-hitachi-hms-gcc: not found
make[1]: *** [depend] Error 127
make[1]: Leaving directory `/legos-0.2.6/boot'
make: *** [depend] Error 2

then the make command

$ make
for i in util lib boot demo ; do make - --unix -C $i || exit 2 ; done
make[1]: Entering directory `/legos-0.2.6/util'
gcc fontdesign.c -o fontdesign.exe -O2 -Wall -D_WIN32
make - --unix -w -C dll-src || exit 2
make[2]: Entering directory `/legos-0.2.6/util/dll-src'
gcc -o loader.o -c loader.c -O2 -Wall -D_WIN32 -I. -I../../include/lnp
gcc -o rcxtty.o -c rcxtty.c -O2 -Wall -D_WIN32 -I. -I../../include/lnp
gcc -o keepalive.o -c keepalive.c -O2 -Wall -D_WIN32 -I.
-I../../include/lnp
gcc -o lnp.o -c ../../kernel/lnp.c -O2 -Wall -D_WIN32 -I.
-I../../include/lnp
../../kernel/lnp.c:117:9: warning: multi-line string literals are
deprecated
gcc -o lx.o -c lx.c -O2 -Wall -D_WIN32 -I. -I../../include/lnp
gcc -o ../dll.exe loader.o rcxtty.o keepalive.o lnp.o lx.o  -O2 -Wall
-D_WIN32 -
I.          -I../../include/lnp

1 or 2 missed lines

make[2]: Entering directory `/legos-0.2.6/util/firmdl'
gcc -O2 -Wall -D_WIN32   -c -o mkimg.o mkimg.c
mkimg.c: In function `srec_load':
mkimg.c:63: warning: implicit declaration of function `exit'
gcc -O2 -Wall -D_WIN32   -c -o srec.o srec.c
gcc mkimg.o srec.o -o mkimg.exe -O2 -Wall -D_WIN32
./mkimg fastdl.srec > fastdl.h
gcc -O2 -Wall -D_WIN32   -c -o firmdl.o firmdl.c
gcc -O2 -Wall -D_WIN32   -c -o rcx_comm.o rcx_comm.c
gcc firmdl.o srec.o rcx_comm.o -o ../firmdl3.exe -O2 -Wall -D_WIN32
make[2]: Leaving directory `/legos-0.2.6/util/firmdl'
make[1]: Leaving directory `/legos-0.2.6/util'
make[1]: Entering directory `/legos-0.2.6/lib'
make - --unix -w -C c || exit 2
make[2]: Entering directory `/legos-0.2.6/lib/c'
h8300-hitachi-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall
-I/legos-0.2.6
/include -I/legos-0.2.6/include/lnp -I. -c memcpy.c -o memcpy.o
make[2]: *** [memcpy.o] Error 255
make[2]: Leaving directory `/legos-0.2.6/lib/c'
make[1]: *** [libc.a] Error 2
make[1]: Leaving directory `/legos-0.2.6/lib'
make: *** [all] Error 2

$ cd util

$ make strip
strip fontdesign.exe dll.exe makelx.exe fixdeps.exe genlds.exe
firmdl3.exe

$ export RCXTTY=USB

$ ls
Makefile         dll-src  firmdl3.exe   fontdesign.exe  merge-map
Makefile.bak     dll.exe  fixdeps.exe   genlds.exe
Makefile.common  firmdl   fontdesign.c  makelx.exe

$ firmdl3 ../boot/legos.srec
../boot/legos.srec: failed to open

-  searched the directory and the file legos.srec did not appear
anywhere
(recursive) under the cygwin directory.



Ed Manlove <emanlove@ieee.org> wrote in message
news:H6sxFx.A9J@lugnet.com...
John,

What version of legOS are you using?  Looking at the code below it seems • to
indicate that you are using legOS ver 0.2.6 (unless in the newer versions • of
brickOS we forgot to change a directory name).  I am also going to gues • that
you are using Windows 98.  If these two assumptions are correct, then your
problem lies in that legOS 0.2.6 does not properly identify Windows 98.  I
have described the problem here on this newsgroup and within the new
development for brickOS the team has redesigned the "which OS is this user
running code".  This is done by creating a configure script which
automatically detects the cross compiler tools. This feature was added in
brickOS 0.2.6.08.

So you have two options.  First is to upgrade to a newer version of • brickOS
which I recommend at some point.  But since it is in various stages of
development you might wait for now?

The second option is to make two slight modifications to the • Makefile.common
files.  You will need to add the result of the command uname to a couple • of
files.  For my version of cygwin 1.3 running under windows 98 I get the
following

emanlove@OEMCOMPUTER ~
$ uname
CYGWIN_98-4.10

emanlove@OEMCOMPUTER ~
$

If you get something different use that instead in the instructions here.
In the files /legos-0.2.6/Makefile.common and
/legos-0.2.6/util/Makefile.common there is a couple of checks for cygwin
versions.  The first is for the older Cygwin version B-20 and the second • for
Cygwin 1.1(+).  Modify the second one (around line 50) by adding
CYGWIN_98-4.10 to the list of OS to check.  Thus that line shound look • like


#
# Cygwin 1.1
#
ifneq (,$(findstring $(OSTYPE),CYGWIN_NT-4.0 CYGWIN_NT-5.0 CYGWIN_NT-5.1
CYGWIN_98-4.10))

TOOLPREFIX=h8300-hitachi-hms-

Do the same for the check in the file /legos-0.2.6/util/Makefile.common,
about line 25 as shown here.

#
# WindowsNT/Cygnwin, test against several values:
#
ifneq (,$(findstring $(OSTYPE),cygwin32 cygwin WindowsNT Windows_NT
CYGWIN_98-4.10))
EXT=.exe
CC =gcc
CFLAGS+=-D_WIN32
endif

This should fix your problem.  For those interested, the clue that to • John's
problem was that the cygwin version was looking for cc and not gcc which • it
should be.

Ed



John <john.ormerod@NOSPAM.virgin.net> wrote in message
news:H6ryvv.G3x@lugnet.com...
I have previously reported problems in installing cygwin and legos, and • have
tried again to get this up and running.
I believe that cygwin is not properly installed and have included
information here on all modules included and error messages when I try • to
make. Any help would be appreciated with this.


Having attempted 2 further installations of Cygwin, I have still got
problems running Cygwin specifically when attempting to build the • example
programs. I first installed the standard list of modules suggested in • the
download instructions but got errors which lugnet postings identified as • due
to the lack of Java (pcre) modules, so additionally installed these • using
the installer (over internet). This still had problems so I decided to • start
over, and deleted all Cygwin folders and files, including the log files • from
the previous installations. I did not however change the dos path which
Cygwin had changed in the previous installation and I also assume that • the
unix path would have been set up correctly as part of the install • process -
I did check using set and it seemed to have relevant entries.
I then reinstalled with the cygwin setup utility with the list of • modules
below (at end of this posting)

On checking the Cygwin installation log file, the following comes up
repeatedly "compress_bz::error called"

I included the modules listed below, and now get the following errors • when
I
attempt to build:

make realclean [- no errors apparent]
make depend [gives the following]

$ make depend
for i in util lib boot demo ; do make - --unix NODEPS=yes -C $i depend • ||
exit 2
; done
make[1]: Entering directory `/legos-0.2.6/util'
make - --unix -w -C dll-src depend
make[2]: Entering directory `/legos-0.2.6/util/dll-src'
cc -M -O2 -Wall -I. -I../../include/lnp -c loader.c rcxtty.c keepalive.c • ../../k
ernel/lnp.c lx.c convert.c srec.c srecload.c lx.c >.depend
cc: not found
make[2]: *** [depend] Error 127
make[2]: Leaving directory `/legos-0.2.6/util/dll-src'
make[1]: *** [depend] Error 2
make[1]: Leaving directory `/legos-0.2.6/util'
make: *** [depend] Error 2

$ make
for i in util lib boot demo ; do make - --unix -C $i || exit 2 ; done
make[1]: Entering directory `/legos-0.2.6/util'
cc fontdesign.c -o fontdesign -O2 -Wall
make[1]: *** [fontdesign] Error 255
make[1]: Leaving directory `/legos-0.2.6/util'
make: *** [all] Error 2

I am missing something, but cant work out what this might be. The • install
process was followed closely, and all the required modules have been
installed. I would really like to get this going, to allow access to • more
variables and faster execution, and would appreciate any help anyone • could
provide.

Current Installed modules.

ash
autoconf
autoconf-devel
autoconf-stable
automake
automake-devel
automake-stable
base-files
base-passwd
bash
bintutils
cpio
cygwin
diff
diffutils
ed
file
fileutils
findutils
flex
gawk
gcc
gcc-mingw
gdbm
grep
gzip
less
libiconv2
libintl1
libintl2
libncurses5
libncurses6
libreadline4
libreadline5
login
make
mingw-runtime
ncurses
patch
pcre
readline
sed
sh-utils
tar
termcap
terminfo
textinfo
textutils
time
vim
w32api
which
zlib
_update-info-dir





Message is in Reply To:
  Re: installation of cygwin and legos/brickos
 
John, What version of legOS are you using? Looking at the code below it seems to indicate that you are using legOS ver 0.2.6 (unless in the newer versions of brickOS we forgot to change a directory name). I am also going to gues that you are using (...) (22 years ago, 8-Dec-02, to lugnet.robotics.rcx.legos)

4 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