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 / 2340
2339  |  2341
Subject: 
Re: Makefile command to make *.map files
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 8 Mar 2002 19:08:51 GMT
Viewed: 
1891 times
  
Quoting Ed Manlove (emanlove@ieee.org):
What is the sort command doing in the command to create *.map files within
the Makefile.kernal?

# how to make map files
%.map: %.coff
$(NM) $*.coff | sort -u > $*.map

Doing my build I get the following error and the resulting map file has size
zero.

/cygnus/cygwin-b20/H-i586-cygwin32/bin/h8300-hms-nm legOS.coff | sort -u > legOS
.map
SORT: File <-U> not found

I can't speak for absolute certain about this, not being familiar with
that part of the code, but sort -u is used to unique a list of
strings. That is, if you pipe a file:

spam
spam
spam
eggs

through sort -u, you get back

eggs
spam


It looks like the "sort" on your system doesn't grok -u tho.

--G.

--
Geoff Gerrietts             "Don't get suckered in by the comments--
<geoff at gerrietts net>     they can be terribly misleading.
www.gerrietts.net/geoff/     Debug only code." --Dave Storer



Message has 1 Reply:
  Re: Makefile command to make *.map files
 
For clarity I am running under Win98 using CYGWIN tools as outlined by the instructions "LegOS0.2.4 - Instructions for installing on NT/Win9x with Cygwin". I was looking for help on the sort command using $sort --help but I was getting a similar (...) (23 years ago, 8-Mar-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Makefile command to make *.map files
 
What is the sort command doing in the command to create *.map files within the Makefile.kernal? # how to make map files %.map: %.coff $(NM) $*.coff | sort -u > $*.map Doing my build I get the following error and the resulting map file has size zero. (...) (23 years ago, 8-Mar-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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