9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Building Inferno on Mac OS X
@ 2010-12-01 16:24 Aram Hăvărneanu
  2010-12-01 16:34 ` Aram Hăvărneanu
  2010-12-01 16:40 ` Martin Kühl
  0 siblings, 2 replies; 5+ messages in thread
From: Aram Hăvărneanu @ 2010-12-01 16:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi, I seem to have some problems while trying to build hosted Inferno
on Mac OS X.

Orion%
Orion% uname -a
Darwin Orion.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov  5
23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386
Orion%
Orion% pwd
/Users/aram/inferno
Orion%
Orion% cat mkconfig
#
#	Set the following 4 variables.  The host system is the system where
#	the software will be built; the target system is where it will run.
#	They are almost always the same.

#	On Nt systems, the ROOT path MUST be of the form `drive:/path'
ROOT=/Users/aram/inferno

#
#	Specify the flavour of Tk (std for standard builds)
#
TKSTYLE=std

#
#	Except for building kernels, SYSTARG must always be the same as SYSHOST
#
SYSHOST=MacOSX		# build system OS type (Hp, Inferno, Irix, Linux,
MacOSX, Nt, Plan9, Solaris)
SYSTARG=$SYSHOST	# target system OS type (Hp, Inferno, Irix, Linux,
Nt, Plan9, Solaris)

#
#	specify the architecture of the target system - Plan 9 imports it from the
#	environment; for other systems it is usually just hard-coded
#
OBJTYPE=386			# target system object type (eg, 386, arm, mips, power,
s800, sparc)
OBJTYPE=$objtype

#
#	no changes required beyond this point
#
OBJDIR=$SYSTARG/$OBJTYPE

<$ROOT/mkfiles/mkhost-$SYSHOST		# variables appropriate for host system
<$ROOT/mkfiles/mkfile-$SYSTARG-$OBJTYPE	# variables used to build
target object type
Orion%
Orion% echo $PATH
/Users/aram/inferno/MacOSX/386/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Orion%
Orion% ls /Users/aram/inferno/MacOSX/386/bin
0a		2c		8a		data2s		ka		md5sum		qa		va
0c		2l		8c		emu		kc		mk		qc		vc
0l		5a		8l		ftl		kl		mk.save		ql		vl
1a		5c		acid		iar		kprof		mkext		sqz
1c		5coff		asm		idea		ksize		mkppcimage	srclist
1l		5cv		c2l		inm		kstrip		ms2		styxtest
2a		5l		data2c		iyacc		limbo		ndate		tc
Orion%
Orion% gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~89/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin10
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
--target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
Orion%
Orion% mk all
warning: skipping missing include file:
/Users/aram/inferno/mkfiles/mkfile-MacOSX-: No such file or directory
(cd lib9; mk  all)
warning: skipping missing include file:
/Users/aram/inferno/mkfiles/mkfile-MacOSX-: No such file or directory
warning: skipping missing include file: mkfile-: No such file or directory
mk: don't know how to make '/Users/aram/inferno/MacOSX//include/lib9.h'
/Users/aram/inferno/MacOSX//lib/lib9.a doesn't exist: assuming it will
be an archive
mk: for j in ...  : exit status=exit(1)
Orion%

Anyone knows what might be the cause? Why is it looking after
/Users/aram/inferno/mkfiles/mkfile-MacOSX- instead of
/Users/aram/inferno/mkfiles/mkfile-MacOSX-386? Any hints what to do
next?

Thanks,

-- 
Aram Hăvărneanu



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

* Re: [9fans] Building Inferno on Mac OS X
  2010-12-01 16:24 [9fans] Building Inferno on Mac OS X Aram Hăvărneanu
@ 2010-12-01 16:34 ` Aram Hăvărneanu
  2010-12-01 16:40 ` Martin Kühl
  1 sibling, 0 replies; 5+ messages in thread
From: Aram Hăvărneanu @ 2010-12-01 16:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Dec 1, 2010 at 6:24 PM, Aram Hăvărneanu <aram.h@mgk.ro> wrote:
> Hi, I seem to have some problems while trying to build hosted Inferno
> on Mac OS X.
>

The mail client inserted additional newlines. A `better' build log is
here: http://pastebin.com/JXFgzimW

Thanks,

-- 
Aram Hăvărneanu



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

* Re: [9fans] Building Inferno on Mac OS X
  2010-12-01 16:24 [9fans] Building Inferno on Mac OS X Aram Hăvărneanu
  2010-12-01 16:34 ` Aram Hăvărneanu
@ 2010-12-01 16:40 ` Martin Kühl
  2010-12-01 16:50   ` Aram Hăvărneanu
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Kühl @ 2010-12-01 16:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Dec 1, 2010 at 17:24, Aram Hăvărneanu <aram.h@mgk.ro> wrote:
> OBJTYPE=386                     # target system object type (eg, 386, arm, mips, power,
> s800, sparc)
> OBJTYPE=$objtype

With these lines you correctly set OBJTYPE to 386, then immediately
reset it to $objtype, which is empty.
Comment out the second line and you should be fine.

HTH,
Martin



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

* Re: [9fans] Building Inferno on Mac OS X
  2010-12-01 16:40 ` Martin Kühl
@ 2010-12-01 16:50   ` Aram Hăvărneanu
  2010-12-01 17:11     ` Aram Hăvărneanu
  0 siblings, 1 reply; 5+ messages in thread
From: Aram Hăvărneanu @ 2010-12-01 16:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Dec 1, 2010 at 6:40 PM, Martin Kühl <martin.kuehl@gmail.com> wrote:
> On Wed, Dec 1, 2010 at 17:24, Aram Hăvărneanu <aram.h@mgk.ro> wrote:
>> OBJTYPE=386                     # target system object type (eg, 386, arm, mips, power,
>> s800, sparc)
>> OBJTYPE=$objtype
>
> With these lines you correctly set OBJTYPE to 386, then immediately
> reset it to $objtype, which is empty.
> Comment out the second line and you should be fine.
>

You are correct -- that was an error. However, it doesn't solve the
problem, I get a different error:

http://pastebin.com/QJj5BSXs

/Users/aram/inferno/MacOSX/386/include/lib9.h does not exist, btw.

Thanks,

-- 
Aram Hăvărneanu



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

* Re: [9fans] Building Inferno on Mac OS X
  2010-12-01 16:50   ` Aram Hăvărneanu
@ 2010-12-01 17:11     ` Aram Hăvărneanu
  0 siblings, 0 replies; 5+ messages in thread
From: Aram Hăvărneanu @ 2010-12-01 17:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, Dec 1, 2010 at 6:50 PM, Aram Hăvărneanu <aram.h@mgk.ro> wrote:
> On Wed, Dec 1, 2010 at 6:40 PM, Martin Kühl <martin.kuehl@gmail.com> wrote:
>> On Wed, Dec 1, 2010 at 17:24, Aram Hăvărneanu <aram.h@mgk.ro> wrote:
>>> OBJTYPE=386                     # target system object type (eg, 386, arm, mips, power,
>>> s800, sparc)
>>> OBJTYPE=$objtype
>>
>> With these lines you correctly set OBJTYPE to 386, then immediately
>> reset it to $objtype, which is empty.
>> Comment out the second line and you should be fine.
>>
>

With the aid of Mr. Martin Kühl and Mr. jumzi on IRC, I was able to
solve the problem.

mk nuke && mk install

did the trick.

Thanks guys!

-- 
Aram Hăvărneanu



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

end of thread, other threads:[~2010-12-01 17:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 16:24 [9fans] Building Inferno on Mac OS X Aram Hăvărneanu
2010-12-01 16:34 ` Aram Hăvărneanu
2010-12-01 16:40 ` Martin Kühl
2010-12-01 16:50   ` Aram Hăvărneanu
2010-12-01 17:11     ` Aram Hăvărneanu

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