9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] plan9port build failure on Linux (debian)
@ 2008-03-03 14:10 erik quanstrom
  0 siblings, 0 replies; 12+ messages in thread
From: erik quanstrom @ 2008-03-03 14:10 UTC (permalink / raw)
  To: lists, 9fans

> install.log was no help, the message I quoted was everything
> relevant.
>
> I took a stab at running gdb through yacc, but the compiler
> optimized the code to the point finding the problem was
> nearly impossible.....best I can say is its somewhere in the
> dofmt() function (lib9/fmt/dofmt.c) or something it calls.

i trust you ran yacc under gdb not gdb through yacc.  :-)
the problem is unlikely to be with the print.  it likely
occurred in argument parsing.

one thing that should be fixed in p9p is the ARGF() calls
should be replaced with EARGF(usage()) in setup().  the
definition of usage should be

void
usage(void)
{
	fprint(2, "usage: yacc [-Dn] [-vdS] [-o outputfile] [-s stem] grammar\n");
	exits("usage");
}

once that is fixed, it would be interesting to see if yacc
prints a usage statement instead of printing the garbage.

assuming that things are still broken, i would suggest
adding fprint(2, "...") statements in setup to understand
where things are going wrong.

- erik


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [9fans] plan9port build failure on Linux (debian)
@ 2008-03-03  4:20 David Morris
  2008-03-03  5:23 ` Hongzheng Wang
  2008-03-03 16:17 ` Russ Cox
  0 siblings, 2 replies; 12+ messages in thread
From: David Morris @ 2008-03-03  4:20 UTC (permalink / raw)
  To: 9fans

I am trying to install plan9port on a Linux system (Debian),
and am getting the following error:

    9 yacc -d -s bc bc.y

     fatal error:can't create , <nil>:1
    mk: 9 yacc -d ...  : exit status=exit(1)
    mk: for i in ...  : exit status=exit(1)

Everything compiles just fine up to this point with no
errors.  This looks to be the first step of building the
lexx application.  Because there is no filename listed in
the error message, I am guessing this is the result of a bug
in the code or the makefile (err, mkfile, I suppose).

Any idea of what the problem is?  Or if its a bug in the
code, where I can get a stable version?

Details of my build environment and my install process
follow....

OS  : Debian lenny (with a few packages from sid (unstable))
Arch: i386

plan9port version:
    downloaded Saturday from http://swtch.com/plan9port/
    After bug, updated from CVS

Install location: /usr/local

Install process:
    # cd /usr/local
    # sudo tar xvzf plan9port.tgz
    # cd plan9
    # sudo ./INSTALL
    (failed with noted error)
    # sudo cvs update -dP
    # sudo ./INSTALL
    (failed with noted error)

Thanks,

--David


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-03-05 16:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 14:10 [9fans] plan9port build failure on Linux (debian) erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2008-03-03  4:20 David Morris
2008-03-03  5:23 ` Hongzheng Wang
     [not found]   ` <20080303084557.GA24732@morris-clan.net>
2008-03-03  8:46     ` David Morris
2008-03-03 15:09       ` sqweek
2008-03-03 16:25         ` David Morris
2008-03-03 16:17 ` Russ Cox
2008-03-03 17:27   ` David Morris
2008-03-03 19:02     ` erik quanstrom
     [not found]       ` <20080303195459.GE28226@morris-clan.net>
2008-03-03 19:56         ` David Morris
2008-03-04  4:42   ` Russ Cox
2008-03-05 16:21     ` Douglas A. Gwyn

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).