9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Building new kernel.
@ 2008-07-22 16:01 Robert Hibberdine
  2008-07-22 16:04 ` erik quanstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Robert Hibberdine @ 2008-07-22 16:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi all,

I am having trouble building a new kernel for a terminal.
I do
       mk 'CONF=pcf'
and I get the error

    mk: don't know how to make '/386/bin/fossil/fossil' in directory
/sys/src/9/pc

A
    mk 'CONF=pc'
works fine.

I am hoping this is some simple newbie mistake.....

Thanks

Bob




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

* Re: [9fans] Building new kernel.
  2008-07-22 16:01 [9fans] Building new kernel Robert Hibberdine
@ 2008-07-22 16:04 ` erik quanstrom
  2008-07-22 17:34   ` Robert Hibberdine
  2008-07-22 16:06 ` [9fans] Building new kernel a
  2008-07-23  1:28 ` Jerome Ibanes
  2 siblings, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 16:04 UTC (permalink / raw)
  To: 9fans

> I am having trouble building a new kernel for a terminal.
> I do
>        mk 'CONF=pcf'
> and I get the error
>
>     mk: don't know how to make '/386/bin/fossil/fossil' in directory
> /sys/src/9/pc

does /386/bin/fossil/fossil exist?  if not, it's a little
worrying that it doesn't.  perhaps the iso was
missing some files.  or your network install was
interrupted.  assuming that the damage is
not too great, you probablly want to use
/usr/glenda/bin/rc/pull to sync up with sources.

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 16:01 [9fans] Building new kernel Robert Hibberdine
  2008-07-22 16:04 ` erik quanstrom
@ 2008-07-22 16:06 ` a
  2008-07-22 16:26   ` Robert Hibberdine
  2008-07-23  1:28 ` Jerome Ibanes
  2 siblings, 1 reply; 27+ messages in thread
From: a @ 2008-07-22 16:06 UTC (permalink / raw)
  To: 9fans

The kernel mkfiles don't know how to build dependencies from
the cmd tree. The mk you're doing knows fossil is missing or out
of date, but not how to do anything about it. Build it yourself. I
mk all of /sys/src/cmd to be safe, but you could just hit the list
you need for your kernel (whatever files you're building in).

The 'pc' configuration doesn't have this problem because it
doesn't include fossil (and a few other things pcf has). See the
'bootdir' section of the config file.
Anthony




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

* Re: [9fans] Building new kernel.
  2008-07-22 16:06 ` [9fans] Building new kernel a
@ 2008-07-22 16:26   ` Robert Hibberdine
  0 siblings, 0 replies; 27+ messages in thread
From: Robert Hibberdine @ 2008-07-22 16:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thank you both for your infromative replies.

A 'mk all' in /sys/src/cmd   gave errors so I am doing a pull now....

Bob




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

* Re: [9fans] Building new kernel.
  2008-07-22 16:04 ` erik quanstrom
@ 2008-07-22 17:34   ` Robert Hibberdine
  2008-07-22 18:03     ` erik quanstrom
  0 siblings, 1 reply; 27+ messages in thread
From: Robert Hibberdine @ 2008-07-22 17:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

erik quanstrom wrote:
>> I am having trouble building a new kernel for a terminal.
>> I do
>>        mk 'CONF=pcf'
>> and I get the error
>>
>>     mk: don't know how to make '/386/bin/fossil/fossil' in directory
>> /sys/src/9/pc
>>
>
> does /386/bin/fossil/fossil exist?  if not, it's a little
> worrying that it doesn't.  perhaps the iso was
> missing some files.  or your network install was
> interrupted.  assuming that the damage is
> not too great, you probablly want to use
> /usr/glenda/bin/rc/pull to sync up with sources.
>
> - erik
>
>
>
Ok. I pulled and remade fossil which got over that error. But now I do
mk 'CONF=pcf' and get

size 9pcf
links: incompatible type signitures ......    (for a whole load of init
files ie tcpinit, udpinit etc)

and then

mk: 8c -FTVv '-DKERNDATE='`{date ... : exit status=rc 1887: 8l 1891 error

Something not quite right with my system??? It's from the plan9 iso
dated June 26th..

Thanks again

Bob






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

* Re: [9fans] Building new kernel.
  2008-07-22 17:34   ` Robert Hibberdine
@ 2008-07-22 18:03     ` erik quanstrom
  2008-07-22 18:19       ` erik quanstrom
  2008-07-22 19:16       ` Robert Hibberdine
  0 siblings, 2 replies; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 18:03 UTC (permalink / raw)
  To: 9fans

> Ok. I pulled and remade fossil which got over that error. But now I do
> mk 'CONF=pcf' and get
>
> size 9pcf
> links: incompatible type signitures ......    (for a whole load of init
> files ie tcpinit, udpinit etc)
>
> and then
>
> mk: 8c -FTVv '-DKERNDATE='`{date ... : exit status=rc 1887: 8l 1891 error
>
> Something not quite right with my system??? It's from the plan9 iso
> dated June 26th..

this would be expected due to the pull which sets the mtimes of
new files to be older than the .8s.  try "mk clean" before proceeding.

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 18:03     ` erik quanstrom
@ 2008-07-22 18:19       ` erik quanstrom
  2008-07-22 18:48         ` Charles Forsyth
  2008-07-22 19:16       ` Robert Hibberdine
  1 sibling, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 18:19 UTC (permalink / raw)
  To: 9fans

> this would be expected due to the pull which sets the mtimes of
> new files to be older than the .8s.  try "mk clean" before proceeding.

i should explain that type signatures are 32-bit
signatures in .$O files that define the type of
external symbols.  the c compiler sets the type
signature to zero unless the -T flag is given.
if both signatures are not zero, the linker
checks to see that they match.

thus if you try to link a.c with decl
	extern int fu;
with b.c
	long fu
it will work perfectly if the -T flag is not
given (since there is a deep assumption
in plan 9 that int == long).  but i the
-T flag is given, it will fail with a type
signature error.

- erik

----
	minooka; cat a.c
	long fu;
	minooka; cat b.c
	#include <u.h>
	#include <libc.h>

	extern int fu;

	void
	main(void)
	{
		print("%d\n", fu);
	}

	minooka; 8c a.c && 8c b.c && 8l a.8 b.8 && 8.out
	0

	minooka; 8c -T a.c && 8c b.c && 8l a.8 b.8 && 8.out
	0

	minooka; 8c a.c && 8c -T b.c && 8l a.8 b.8 && 8.out
	0

	minooka; 8c -T a.c && 8c -T b.c && 8l a.8 b.8 && 8.out
	main: incompatible type signatures 5ef20f47(a.8) and 4151d5bd(b.8) for fu




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

* Re: [9fans] Building new kernel.
  2008-07-22 18:19       ` erik quanstrom
@ 2008-07-22 18:48         ` Charles Forsyth
  2008-07-22 18:49           ` erik quanstrom
  0 siblings, 1 reply; 27+ messages in thread
From: Charles Forsyth @ 2008-07-22 18:48 UTC (permalink / raw)
  To: 9fans

> it will work perfectly if the -T flag is not
> given (since there is a deep assumption
> in plan 9 that int == long).  but i the

not exactly. it will work on most Unix systems and
on Plan 9 without -T because nothing checks
external types across object module boundaries.  the linker/loader in both systems
will allocate in BSS the largest size seen for a given symbol,
so it doesn't matter whether int == long or not.




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

* Re: [9fans] Building new kernel.
  2008-07-22 18:48         ` Charles Forsyth
@ 2008-07-22 18:49           ` erik quanstrom
  2008-07-22 19:35             ` Charles Forsyth
  0 siblings, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 18:49 UTC (permalink / raw)
  To: 9fans

> not exactly. it will work on most Unix systems and
> on Plan 9 without -T because nothing checks
> external types across object module boundaries.  the linker/loader in both systems
> will allocate in BSS the largest size seen for a given symbol,
> so it doesn't matter whether int == long or not.

by "work" you mean not generate an out-of-range
memory access nor not produce unexpected values?

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 18:03     ` erik quanstrom
  2008-07-22 18:19       ` erik quanstrom
@ 2008-07-22 19:16       ` Robert Hibberdine
  2008-07-22 20:01         ` Jerome Ibanes
  1 sibling, 1 reply; 27+ messages in thread
From: Robert Hibberdine @ 2008-07-22 19:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

erik quanstrom wrote:
>> Ok. I pulled and remade fossil which got over that error. But now I do
>> mk 'CONF=pcf' and get
>>
>> size 9pcf
>> links: incompatible type signitures ......    (for a whole load of init
>> files ie tcpinit, udpinit etc)
>>
>> and then
>>
>> mk: 8c -FTVv '-DKERNDATE='`{date ... : exit status=rc 1887: 8l 1891 error
>>
>> Something not quite right with my system??? It's from the plan9 iso
>> dated June 26th..
>>
>
> this would be expected due to the pull which sets the mtimes of
> new files to be older than the .8s.  try "mk clean" before proceeding.
>
> - erik
>
>
Thanks. I realised that wouild be a good idea about 1.5 nanoseconds
after I sent the email....

So, now in /sys/src I do

    mk clean        ok,
    mk all            fails with

       mk ip
       8c -FTVv 6in4.c
       mk: no recipe to make 'pptpd.8' in directory /sys/src/cmd/ip

doing a mk all in /sys/src/cmd/ip/ gives the same error...

Any ideas.....

If I delete all sources and do a pull then try again????

Thanks for your patience :-)

Bob






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

* Re: [9fans] Building new kernel.
  2008-07-22 18:49           ` erik quanstrom
@ 2008-07-22 19:35             ` Charles Forsyth
  2008-07-22 19:38               ` erik quanstrom
  0 siblings, 1 reply; 27+ messages in thread
From: Charles Forsyth @ 2008-07-22 19:35 UTC (permalink / raw)
  To: 9fans

>> not exactly. it will work on most Unix systems and
>> on Plan 9 without -T because nothing checks
>> external types across object module boundaries.  the linker/loader in both systems
>> will allocate in BSS the largest size seen for a given symbol,
>> so it doesn't matter whether int == long or not.
>
> by "work" you mean not generate an out-of-range
> memory access nor not produce unexpected values?
>
> - erik

i meant "pass muster", which i thought was the sense originally
intended (ie, link without diagnostic) but i see now that wasn't intended.
sorry.

anyhow, that's why it links without diagnostic elsewhere!




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

* Re: [9fans] Building new kernel.
  2008-07-22 19:35             ` Charles Forsyth
@ 2008-07-22 19:38               ` erik quanstrom
  0 siblings, 0 replies; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 19:38 UTC (permalink / raw)
  To: 9fans

>> by "work" you mean not generate an out-of-range
>> memory access nor not produce unexpected values?
>>
>> - erik
>
> i meant "pass muster", which i thought was the sense originally
> intended (ie, link without diagnostic) but i see now that wasn't intended.
> sorry.
>
> anyhow, that's why it links without diagnostic elsewhere!

excellent point.

i did muddle the issue.

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 19:16       ` Robert Hibberdine
@ 2008-07-22 20:01         ` Jerome Ibanes
  2008-07-22 20:13           ` erik quanstrom
  0 siblings, 1 reply; 27+ messages in thread
From: Jerome Ibanes @ 2008-07-22 20:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

9,

>> Something not quite right with my system??? It's from the plan9 iso
>> dated June 26th..

I'm having the same exact issue with a July 19th iso.

>> this would be expected due to the pull which sets the mtimes of
>> new files to be older than the .8s.  try "mk clean" before proceeding.
> So, now in /sys/src I do
>     mk clean        ok,
>     mk all            fails with
>     mk ip
>     8c -FTVv 6in4.c
>     mk: no recipe to make 'pptpd.8' in directory /sys/src/cmd/ip

I'm getting the same error after a pull. Any thoughts?


Sincerely,
Jerome



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

* Re: [9fans] Building new kernel.
  2008-07-22 20:01         ` Jerome Ibanes
@ 2008-07-22 20:13           ` erik quanstrom
  2008-07-22 20:35             ` Jerome Ibanes
  0 siblings, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 20:13 UTC (permalink / raw)
  To: 9fans

> I'm having the same exact issue with a July 19th iso.
>
>>> this would be expected due to the pull which sets the mtimes of
>>> new files to be older than the .8s.  try "mk clean" before proceeding.
>> So, now in /sys/src I do
>>     mk clean        ok,
>>     mk all            fails with
>>     mk ip
>>     8c -FTVv 6in4.c
>>     mk: no recipe to make 'pptpd.8' in directory /sys/src/cmd/ip
>
> I'm getting the same error after a pull. Any thoughts?

does /sys/src/cmd/ip/pptpd.c exist?  if not, there must be an
error in the pull database on sources.  you can copy it
by hand with
	9fs sources && cp -x /n/sources/plan9/sys/src/cmd/ip/pptpd.c /sys/src/cmd/ip/

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 20:13           ` erik quanstrom
@ 2008-07-22 20:35             ` Jerome Ibanes
  2008-07-22 20:40               ` erik quanstrom
  2008-07-22 20:51               ` Jerome Ibanes
  0 siblings, 2 replies; 27+ messages in thread
From: Jerome Ibanes @ 2008-07-22 20:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

9,

>> mk: no recipe to make 'pptpd.8' in directory /sys/src/cmd/ip
> does /sys/src/cmd/ip/pptpd.c exist?  if not, there must be an
> error in the pull database on sources.  you can copy it
> by hand with
> 	9fs sources && cp -x /n/sources/plan9/sys/src/cmd/ip/pptpd.c /sys/src/cmd/ip/

Erik, it already exists and has the same MD5 checksum than the one in
sources.


Jerome



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

* Re: [9fans] Building new kernel.
  2008-07-22 20:35             ` Jerome Ibanes
@ 2008-07-22 20:40               ` erik quanstrom
  2008-07-23  1:19                 ` Jerome Ibanes
  2008-07-22 20:51               ` Jerome Ibanes
  1 sibling, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-22 20:40 UTC (permalink / raw)
  To: 9fans

> Erik, it already exists and has the same MD5 checksum than the one in
> sources.

i'm fresh out of ideas, then.

what i know is
a) it build just fine on my system, but i don't use pull.
b) if for some xyzw mk requires xyzw.8 and there's no xyzw.$x
so that there's a mk rule like so "%.8: %.$x", i get the following
error message

	; mk xyzw.8
	mk: no recipe to make 'xyzw.8' in directory /sys/src/9/pc

since i know there's a rule "%.8: %.c", there must be some reason
that mk thinks that pptp.c doesn't exist.  i have no idea what that
would be.  mode bits?

you might want to fiddle around with mk -de pptp.8

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 20:35             ` Jerome Ibanes
  2008-07-22 20:40               ` erik quanstrom
@ 2008-07-22 20:51               ` Jerome Ibanes
  2008-07-22 21:05                 ` [9fans] Sam on 9pm or plan9port Benjamin Huntsman
  1 sibling, 1 reply; 27+ messages in thread
From: Jerome Ibanes @ 2008-07-22 20:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

9,

>> mk: no recipe to make 'pptpd.8' in directory /sys/src/cmd/ip
> does /sys/src/cmd/ip/pptpd.c exist?  if not, there must be an
> error in the pull database on sources.  you can copy it
> by hand with
> 	9fs sources && cp -x /n/sources/plan9/sys/src/cmd/ip/pptpd.c /sys/src/cmd/ip/
> Erik, it already exists and has the same MD5 checksum than the one in
> sources.

Using July 19th's iso and today's (Tue Jul 22 13:51:21 PDT 2008) pull:

  http://www.eskimo.com/~jibanes/pull.png


Hope this helps,
Jerome



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

* [9fans]  Sam on 9pm or plan9port
  2008-07-22 20:51               ` Jerome Ibanes
@ 2008-07-22 21:05                 ` Benjamin Huntsman
  2008-07-22 22:24                   ` Edward Hirgelt
  0 siblings, 1 reply; 27+ messages in thread
From: Benjamin Huntsman @ 2008-07-22 21:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 748 bytes --]

As far as I could find, there isn't a newer version of sam for Windows then the one from 9pm, so I started trying to port the plan9port version.  So far, I got all of the stuff in the sam/ directory to compile.

I'm stuck on lib9, though, since it doesn't compile on Windows in its current form.  I've gotten bits and pieces to build, but not the whole thing, so before I end up having to gut it to make it work, I thought I'd ask if anyone might know..

might it be more straightforward to modify the plan9port sam to run on 9pm, or would the only way to get it running on Windows be to port the whole lib9 from p9p at the same time?

... I hate Windows, but alas, it's what I have to live with for my job ...

Thanks in advance!

-Ben

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2980 bytes --]

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

* Re: [9fans] Sam on 9pm or plan9port
  2008-07-22 21:05                 ` [9fans] Sam on 9pm or plan9port Benjamin Huntsman
@ 2008-07-22 22:24                   ` Edward Hirgelt
  2008-07-22 22:27                     ` Benjamin Huntsman
  0 siblings, 1 reply; 27+ messages in thread
From: Edward Hirgelt @ 2008-07-22 22:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Benjamin Huntsman wrote:
> might it be more straightforward to modify the plan9port sam to run on 9pm, or would the only way to get it running on Windows be to port the whole lib9 from p9p at the same time?
>
> ... I hate Windows, but alas, it's what I have to live with for my job ..
>

Here is a stab in the dark -- could p9p possibly compile and run under
Cygwin?   If so, that could be one way to get p9p working.  An extra of
indirection may not be the most efficient thing, but...

Ed



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

* Re: [9fans] Sam on 9pm or plan9port
  2008-07-22 22:24                   ` Edward Hirgelt
@ 2008-07-22 22:27                     ` Benjamin Huntsman
  2008-07-22 22:57                       ` Skip Tavakkolian
  2008-07-22 23:16                       ` Steve Simon
  0 siblings, 2 replies; 27+ messages in thread
From: Benjamin Huntsman @ 2008-07-22 22:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

>could p9p possibly compile and run under Cygwin?

Might be an easier port... MinGW might be preferable, as drawterm uses it, and again might be easier...
Neither would work out of the box, though.

>An extra of indirection may not be the most efficient thing, but...

My approach thus far has been to just grab the bits sam needs and compile it static...
It'd be kind of goofy to need -two- "compatibility" layers just to run an editor, but you're right in that doing so may be the only feasible way.


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 2952 bytes --]

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

* Re: [9fans] Sam on 9pm or plan9port
  2008-07-22 22:27                     ` Benjamin Huntsman
@ 2008-07-22 22:57                       ` Skip Tavakkolian
  2008-07-22 23:16                       ` Steve Simon
  1 sibling, 0 replies; 27+ messages in thread
From: Skip Tavakkolian @ 2008-07-22 22:57 UTC (permalink / raw)
  To: 9fans

dt can be compiled using either mingw or ms tools.  might want to read
rsc's recent post about 9vx port to windows and the relative ease
compared to porting p9p.

>>could p9p possibly compile and run under Cygwin?
>
> Might be an easier port... MinGW might be preferable, as drawterm uses it, and again might be easier...
> Neither would work out of the box, though.
>
>>An extra of indirection may not be the most efficient thing, but...
>
> My approach thus far has been to just grab the bits sam needs and compile it static...
> It'd be kind of goofy to need -two- "compatibility" layers just to run an editor, but you're right in that doing so may be the only feasible way.




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

* Re: [9fans] Sam on 9pm or plan9port
  2008-07-22 22:27                     ` Benjamin Huntsman
  2008-07-22 22:57                       ` Skip Tavakkolian
@ 2008-07-22 23:16                       ` Steve Simon
  1 sibling, 0 replies; 27+ messages in thread
From: Steve Simon @ 2008-07-22 23:16 UTC (permalink / raw)
  To: 9fans

I have a long term project to get somthing like p9p running under windows
though my goal is to use a windows box as a plan9 cpu server so /dev/draw
is not a priority.

My approach is very similar to Russ's p9p for windows alpha on swtch.com
but it is many months away from finished - i get a day a week or less to
work on it.

The DLL "kernel" works and supports most plan9 command line tools,
but has no mount driver yet so no devices and a recent attempt to port
over plan9's devmnt and its prerequisits resulted in more problems than
it solved.

I am happy to share the code I have which might be usefull to you.

-Steve



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

* Re: [9fans] Building new kernel.
  2008-07-22 20:40               ` erik quanstrom
@ 2008-07-23  1:19                 ` Jerome Ibanes
  0 siblings, 0 replies; 27+ messages in thread
From: Jerome Ibanes @ 2008-07-23  1:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> what i know is
> a) it build just fine on my system, but i don't use pull.
> b) if for some xyzw mk requires xyzw.8 and there's no xyzw.$x
> so that there's a mk rule like so "%.8: %.$x", i get the following
> error message
> 	; mk xyzw.8
> 	mk: no recipe to make 'xyzw.8' in directory /sys/src/9/pc
> since i know there's a rule "%.8: %.c", there must be some reason
> that mk thinks that pptp.c doesn't exist.  i have no idea what that
> would be.  mode bits?

pptpd.c is dated Dec 31, 1969, mk doesn't like this. So I touch'd it, and
then it compiled just fine.


Jerome



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

* Re: [9fans] Building new kernel.
  2008-07-23  1:28 ` Jerome Ibanes
@ 2008-07-23  1:26   ` erik quanstrom
  2008-07-23  3:15     ` Russ Cox
  2008-07-23 19:52   ` Robert Hibberdine
  1 sibling, 1 reply; 27+ messages in thread
From: erik quanstrom @ 2008-07-23  1:26 UTC (permalink / raw)
  To: 9fans

> Bob,
>
>> mk: don't know how to make '/386/bin/fossil/fossil' in directory
>> /sys/src/9/pc
>
> touch /386/bin/fossil/fossil then you can mk 'CONF=pcf' if you want.

if you are trying to boot from a fossil root and do this,
your kernel will not be able to successfully mount the root
filesystem.

don't do this if you expect to boot.

- erik




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

* Re: [9fans] Building new kernel.
  2008-07-22 16:01 [9fans] Building new kernel Robert Hibberdine
  2008-07-22 16:04 ` erik quanstrom
  2008-07-22 16:06 ` [9fans] Building new kernel a
@ 2008-07-23  1:28 ` Jerome Ibanes
  2008-07-23  1:26   ` erik quanstrom
  2008-07-23 19:52   ` Robert Hibberdine
  2 siblings, 2 replies; 27+ messages in thread
From: Jerome Ibanes @ 2008-07-23  1:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Bob,

> mk: don't know how to make '/386/bin/fossil/fossil' in directory
> /sys/src/9/pc

touch /386/bin/fossil/fossil then you can mk 'CONF=pcf' if you want.


Hope this helps,
Jerome Ibanes



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

* Re: [9fans] Building new kernel.
  2008-07-23  1:26   ` erik quanstrom
@ 2008-07-23  3:15     ` Russ Cox
  0 siblings, 0 replies; 27+ messages in thread
From: Russ Cox @ 2008-07-23  3:15 UTC (permalink / raw)
  To: 9fans

>> touch /386/bin/fossil/fossil then you can mk 'CONF=pcf' if you want.
>
> if you are trying to boot from a fossil root and do this,
> your kernel will not be able to successfully mount the root
> filesystem.
>
> don't do this if you expect to boot.

Only if there was no /386/bin/fossil/fossil before.
If instead the problem is that fossil/fossil has mtime==0
but is otherwise a valid binary (as an earlier post suggested
was the problem with pptpd.c), then touch is a fine
solution.

Presumably mk fails to distinguish mtime==0 from
"file does not exist" internally.

Russ



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

* Re: [9fans] Building new kernel.
  2008-07-23  1:28 ` Jerome Ibanes
  2008-07-23  1:26   ` erik quanstrom
@ 2008-07-23 19:52   ` Robert Hibberdine
  1 sibling, 0 replies; 27+ messages in thread
From: Robert Hibberdine @ 2008-07-23 19:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Many thanks. I _am_ glad someone else had the same problem...
It was the touch pptpd.c that did the trick.

Bob

Jerome Ibanes wrote:
> Bob,
>
>
>> mk: don't know how to make '/386/bin/fossil/fossil' in directory
>> /sys/src/9/pc
>>
>
> touch /386/bin/fossil/fossil then you can mk 'CONF=pcf' if you want.
>
>
> Hope this helps,
> Jerome Ibanes
>
>
>




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

end of thread, other threads:[~2008-07-23 19:52 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-22 16:01 [9fans] Building new kernel Robert Hibberdine
2008-07-22 16:04 ` erik quanstrom
2008-07-22 17:34   ` Robert Hibberdine
2008-07-22 18:03     ` erik quanstrom
2008-07-22 18:19       ` erik quanstrom
2008-07-22 18:48         ` Charles Forsyth
2008-07-22 18:49           ` erik quanstrom
2008-07-22 19:35             ` Charles Forsyth
2008-07-22 19:38               ` erik quanstrom
2008-07-22 19:16       ` Robert Hibberdine
2008-07-22 20:01         ` Jerome Ibanes
2008-07-22 20:13           ` erik quanstrom
2008-07-22 20:35             ` Jerome Ibanes
2008-07-22 20:40               ` erik quanstrom
2008-07-23  1:19                 ` Jerome Ibanes
2008-07-22 20:51               ` Jerome Ibanes
2008-07-22 21:05                 ` [9fans] Sam on 9pm or plan9port Benjamin Huntsman
2008-07-22 22:24                   ` Edward Hirgelt
2008-07-22 22:27                     ` Benjamin Huntsman
2008-07-22 22:57                       ` Skip Tavakkolian
2008-07-22 23:16                       ` Steve Simon
2008-07-22 16:06 ` [9fans] Building new kernel a
2008-07-22 16:26   ` Robert Hibberdine
2008-07-23  1:28 ` Jerome Ibanes
2008-07-23  1:26   ` erik quanstrom
2008-07-23  3:15     ` Russ Cox
2008-07-23 19:52   ` Robert Hibberdine

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