| | 
      |   |   
            | Subject: 
 | Attention cygwin and windows users 
 |  
            | Newsgroups: 
 | lugnet.robotics.rcx.legos 
 |  
            | Date: 
 | Fri, 8 Mar 2002 21:05:21 GMT 
 |  
            | Viewed: 
 | 3164 times 
 |  |  |  
 | 
 |  | For those using the cygwin tools under a windows OS as described in the article "LegOS 0.2.4 - Instructions for installing on NT/Win9x with Cygwin"
 you could be experiencing a conflict with dos and cygwin tools.  In
 particular is you are following the compile instructions shown here
 
 $ cd /legOS
 $ make realclean
 $ make depend
 $ make
 $ cd util
 $ make strip
 
 and experience an error similar to this during the $make command
 
 /cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-ld: address 0xb03e of
 helloworld.ds1 section .text is not within region ram
 /cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-ld: address 0xb03e of
 helloworld.ds1 section .tors is not within region ram
 /cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-ld: address 0xb03e of
 helloworld.ds1 section .data is not within region ram
 /cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-ld: address 0xb03e of
 helloworld.ds1 section .bss is not within region ram
 helloworld.o(.text+0x4):helloworld.c: undefined reference to `_cputs'
 helloworld.o(.text+0xc):helloworld.c: undefined reference to `_sleep'
 helloworld.o(.text+0x14):helloworld.c: undefined reference to `_cputs'
 helloworld.o(.text+0x1c):helloworld.c: undefined reference to `_sleep'
 helloworld.o(.text+0x24):helloworld.c: undefined reference to `_cls'
 
 then you could be experiencing a conflict between the sort command in dos
 and the sort command in cygwin.  To verify you are experiencing this
 conflict search the output of the $make command for a line which says
 
 SORT: File <-U> not found
 
 .  (For those not familar with unix command use $make > output.txt to write
 the output to the file output.txt).  This is an indication that the dos sort
 command is being used instead of the cygwin tool.  You can verify this by
 typing at the cygwin propmt $sort /? and you should the dos sort command
 help instead of the cygwin sort command help ($sort --help).  To fix this
 conflict modify the Makefile.common by adding another define as shown here
 
 #
 # WindowsNT/Cygnwin, test against several values:
 #
 ifneq (,$(findstring $(OSTYPE),cygwin32 CYGWIN_NT-4.0 WindowsNT Windows_NT))
 
 # NT
 TOOLPREFIX=/cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-
 CYGWINTOOLPREFIX=/cygnus/cygwin-b20/H-i586-cygwin32/bin/
 SED_SFLAG=i
 
 endif
 
 and then modify the Makefile.kernel file and the rules for the *.map files
 as shown below
 
 # how to make map files
 %.map: %.coff
 $(NM) $*.coff | $(CYGWINTOOLPREFIX)sort -u > $*.map
 
 
 These modifications should allow for a smooth compilation of the legOS and
 associated demos.
 
 Ed Manlove
 
 |  |  |  
 
 Message has 1 Reply:
 
  |  |  | Re: Attention cygwin and windows users 
 | 
 |  | Quoting Ed Manlove (emanlove@ieee.org): (...) If we actually get to the point of doing another release (and thus finding a maintainer for the project, etc) maybe this is something we should consider integrating? Anyone else building on Cygwin and (...)   (24 years ago, 8-Mar-02, to lugnet.robotics.rcx.legos) 
 |  2 Messages in This Thread:
 
    
 
      Entire Thread on One Page:
      
        Nested: 
        All | Brief | Compact | Dots
        Linear: 
        All | Brief | Compact
 | 
 | 
 | 
 |