9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jens Staal <staal1978@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] ape compiler error, IND CHAR and INT
Date: Tue, 24 Jan 2012 05:43:33 +0100	[thread overview]
Message-ID: <CAK8RtFrxef6Pj149vK56Djjqd2tnh9gOXkYkYqp7LNqzSCmJ8w@mail.gmail.com> (raw)
In-Reply-To: <507def6adc5ca165a284c7be81a66605@chula.quanstro.net>

Thanks for the feedback!

The dlerror was indeed the culprit and now my errors have jumped to:

"
<eof> syntax error, last name: 0
pcc: cpp: 469: error
"

, presumably in the generated .c file.

Where can I find info about the "469" error and how do I know where
the error occurred? (previously I have had more informative "last
names" to jump to...)

I also added the "-+" to CFLAGS. I have no idea if this may help with
the problems with // comments.

2012/1/23 erik quanstrom <quanstro@quanstro.net>:
>> The line number is off-by-one, for some reason, but since the operation is
>> AS (assign), and since the assignment from dlerror is on the next line, and
>> dlerror won't be declared anywhere, that's most likely to be the problem.
>
> i think the compiler eats the newline sometimes when there's a // comment
> on a preprocessor line.
>
> i thought i submitted a fix for this.
>
> - erik
>
>



  reply	other threads:[~2012-01-24  4:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18 18:37 John Floren
2012-01-18 18:46 ` Martin Harriss
2012-01-18 18:55   ` John Floren
2012-01-18 19:52     ` steve
2012-01-23  6:47     ` Jens Staal
2012-01-23  8:13       ` steve
2012-01-23  8:30         ` Charles Forsyth
2012-01-23  8:37         ` Jens Staal
2012-01-23  8:59           ` Charles Forsyth
     [not found]           ` <CAOw7k5hX5p4-9gtHhGf4Zs=kpJGLOjA9ZEbyXigC2=jBkZKnAw@mail.gmail.c>
2012-01-23 15:16             ` erik quanstrom
2012-01-24  4:43               ` Jens Staal [this message]
     [not found]               ` <CAK8RtFrxef6Pj149vK56Djjqd2tnh9gOXkYkYqp7LNqzSCmJ8w@mail.gmail.c>
2012-01-24  4:48                 ` erik quanstrom
2012-01-24  4:48                 ` erik quanstrom
     [not found] <CAL4LZyjWRc0MtE5bGV35c18_JV8PjAaWUMpP1gZbdcYa26pX8A@mail.gmail.c>
2012-01-18 18:45 ` erik quanstrom

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=CAK8RtFrxef6Pj149vK56Djjqd2tnh9gOXkYkYqp7LNqzSCmJ8w@mail.gmail.com \
    --to=staal1978@gmail.com \
    --cc=9fans@9fans.net \
    /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).