9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@lanl.gov>
To: lucio@proxima.alt.za,
	Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] GNU Make
Date: Wed,  2 Jun 2004 08:00:07 -0600	[thread overview]
Message-ID: <Pine.LNX.4.44.0406020755180.24798-100000@maxroach.lanl.gov> (raw)
In-Reply-To: <0ffa2db088558e493a30ecad96ee426e@proxima.alt.za>

On Wed, 2 Jun 2004 lucio@proxima.alt.za wrote:

> I can only presume that dhog was under pressure to build GCC (how could
> he not be?) and that it was simpler to bootstrap it using GCC itself.  
> As far as I understand, both GCC and the binutils are fairly portable,
> there ought to be a way to port GCC using the native compiler in its APE
> impersonation.

yes, but I was hoping the iterative process from 0.x would get us native,
i.e.  skip APE. In the early days gcc was very portable, and would compile
under just about any C compiler. Nowadays, what with all the lovely
extras, I'm not sure it compiles well under non-gcc-compatible compilers.

> Lastly, APE attempts to compute errno by searching a list of error
> strings to find a match.  Would it be out of the question to enhance
> all Plan 9 software to use a library of error messages that also
> includes a numeric code?  

I did this on v9fs in the early days: error messages in my 9p looked 
like this:
xxxx You screwed up

xxxx was the error code. You screwed up was an error message. On systems
without errstr, you returned xxxx as a number, otherwise, you return the
message. So you had an errno and errstr compatible TERRROR message at the
protocol level. 

I proposed this a while back to some folks but got a negative response.

I still find that doing strcmp() on a set of error strings to produce
errno is both gross and non-portable due to subtle variations in error
strings between different Unixes.


ron



  parent reply	other threads:[~2004-06-02 14:00 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 11:09 lucio
2004-06-01 16:37 ` boyd, rounin
2004-06-01 21:03   ` ron minnich
2004-06-01 21:09     ` boyd, rounin
2004-06-01 21:43     ` Russ Cox
2004-06-01 21:49       ` ron minnich
2004-06-01 22:03         ` Russ Cox
2004-06-01 22:08           ` boyd, rounin
2004-06-02  5:34     ` lucio
2004-06-02  7:36       ` Charles Forsyth
2004-06-02  9:07         ` John Murdie
2004-06-02  9:39           ` Charles Forsyth
2004-06-02 16:12         ` ron minnich
2004-06-02 16:24           ` lucio
2004-06-02 16:54             ` ron minnich
2004-06-02 16:56               ` boyd, rounin
2004-06-03  6:41                 ` lucio
2004-06-03  8:49                   ` Charles Forsyth
2004-06-03  9:16                     ` boyd, rounin
2004-06-03  9:50                       ` Error reporting (Was: [9fans] GNU Make) lucio
2004-06-03 14:01                         ` rog
2004-06-03 13:54                           ` Charles Forsyth
2004-06-03 14:19                             ` rog
2004-06-03 14:18                               ` boyd, rounin
2004-06-03 14:31                                 ` lucio
2004-06-03 14:33                                 ` rog
2004-06-03 14:58                               ` Charles Forsyth
2004-06-03 15:13                                 ` lucio
2004-06-03 15:17                                 ` rog
2004-06-03 16:12                                   ` C H Forsyth
2004-06-03 16:18                                     ` rog
2004-06-03 16:18                                       ` Charles Forsyth
2004-06-03 16:38                                         ` rog
2004-06-03 16:56                                           ` C H Forsyth
2004-06-03 17:03                                             ` rog
2004-06-03 17:15                                               ` C H Forsyth
2004-06-03 17:25                                                 ` rog
2004-06-03 19:10                                               ` boyd, rounin
2004-06-03 19:08                                           ` boyd, rounin
2004-06-03 19:35                                             ` rog
2004-06-03 19:46                                               ` boyd, rounin
2004-06-03 20:06                                                 ` rog
2004-06-03 22:09                                                   ` Charles Forsyth
2004-06-04  1:05                                                     ` Bruce Ellis
2004-06-04  1:56                                                       ` Scott Schwartz
2004-06-04  2:10                                                         ` Bruce Ellis
2004-06-04  2:46                                                           ` Russ Cox
2004-06-04  8:08                                                           ` Charles Forsyth
     [not found]                                                       ` <013301c449d2$95929d30$637f7d50@SOMA>
2004-06-04 12:16                                                         ` Bruce Ellis
2004-06-08 15:17                                                       ` rog
2004-06-03 14:06                           ` boyd, rounin
2004-06-03 14:21                             ` rog
2004-06-03 10:31                       ` [9fans] GNU Make lucio
2004-06-03 14:53                         ` Rob Pike
2004-06-03 15:01                           ` boyd, rounin
2004-06-03 15:04                           ` lucio
2004-06-03 15:16                             ` Rob Pike
2004-06-03 15:33                               ` rog
2004-06-03 15:40                                 ` boyd, rounin
2004-06-03 15:58                                   ` lucio
2004-06-03 15:40                               ` lucio
2004-06-03 15:20                             ` [9fans] internationalised error messages boyd, rounin
2004-06-02 21:30         ` [9fans] GNU Make boyd, rounin
2004-06-02  8:54       ` Richard Miller
2004-06-02  9:17         ` lucio
2004-06-02  9:54           ` Charles Forsyth
2004-06-02 16:15           ` ron minnich
2004-06-02 17:00           ` Steve Simon
2004-06-03  5:14             ` lucio
2004-06-02 14:00       ` ron minnich [this message]
2004-06-02 14:36         ` C H Forsyth
2004-06-02 14:33           ` Charles Forsyth
2004-06-02 15:24         ` Charles Forsyth
2004-06-02 15:56           ` lucio
2004-06-02 16:11           ` lucio
2004-06-02 19:28             ` Joel Salomon
2004-06-03  4:43               ` [9fans] troff and 4.4BSD man pages Lyndon Nerenberg
2004-06-03  5:54                 ` Taj Khattra
2004-06-03  8:26                 ` boyd, rounin
2004-06-07  8:55                   ` Douglas A. Gwyn
2004-06-07 13:19                     ` Jon Snader
     [not found]                       ` <z4udnTOQMJVTdlndRVn-jg@comcast.com>
2004-06-10 10:58                         ` Aharon Robbins
2004-06-10 12:40                           ` rog
2004-06-10 13:24                             ` Douglas A. Gwyn
2004-06-03 10:13                 ` Bruce Ellis
2004-06-03 10:17                   ` boyd, rounin
2004-06-03 10:27                     ` lucio
2004-06-03 10:29                     ` Bruce Ellis
2004-06-03 10:26                       ` boyd, rounin
2004-06-03 11:18                         ` Bruce Ellis
2004-06-03  1:57             ` [9fans] GNU Make a
2004-06-03  3:31               ` Kenji Okamoto
2004-06-02 11:13 lucio
2004-06-02 16:24 Trickey, Howard W (Howard)
2004-06-02 16:31 ` lucio
2004-06-02 23:53 ` Dan Cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0406020755180.24798-100000@maxroach.lanl.gov \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    --cc=lucio@proxima.alt.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).