From: "andrey mirtchovski" <mirtchovski@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] 9vx - os x fix
Date: Fri, 27 Jun 2008 11:40:12 -0600 [thread overview]
Message-ID: <14ec7b180806271040p3c606162p7f45d7b6d321487f@mail.gmail.com> (raw)
In-Reply-To: <20080627165844.4A77F1E8C35@holo.morphisms.net>
> make 9vx/9vx
on 10.5.3 that fails with:
gcc -g -O3 -MD -std=gnu99 -I. -I. -I9vx -I9vx/a -Wall
-Wno-missing-braces -c -o 9vx/main.o 9vx/main.c
9vx/main.c: In function 'sigsegv':
9vx/main.c:491: error: 'struct __darwin_mcontext32' has no member named 'es'
9vx/main.c:492: error: 'struct __darwin_mcontext32' has no member named 'ss'
9vx/main.c:493: error: 'struct __darwin_mcontext32' has no member named 'ss'
make: *** [9vx/main.o] Error 1
turns out that osx exposes __es and __ss for mcontext in
/usr/include/mach/i386/_structs.h. this fixes it:
gcc -D__DARWIN_UNIX03=0 -g -O3 -MD -std=gnu99 -I. -I. -I9vx -I9vx/a
-Wall -Wno-missing-braces -c -o 9vx/main.o 9vx/main.c
a bit later on:
gcc -Ilibvx32 -c -g -O3 -MD -std=gnu99 -I. -o libvx32/emu.o libvx32/emu.c
libvx32/emu.c: In function 'vxproc_run':
libvx32/emu.c:1796: error: storage size of 'env' isn't known
make: *** [libvx32/emu.o] Error 1
is fixed identically by:
gcc -D__DARWIN_UNIX03=0 -Ilibvx32 -c -g -O3 -MD -std=gnu99 -I. -o
libvx32/emu.o libvx32/emu.c
and then later on we fail with:
gcc -g -O3 -MD -std=gnu99 -I. -I. -I9vx -I9vx/a -Wall
-Wno-missing-braces -c -o 9vx/stub.o 9vx/stub.c
make: *** No rule to make target `libvx32/darwin-asm.o', needed by
`libvx32/libvx32.a'. Stop.
and darwin-asm.S just seems to be missing everywhere. in fact, there
is no definition for vx32_getcontext:
$ find . -type f | xargs grep vx32_getcontext
./libvx32/emu.c: if(vx32_getcontext(&env)){
Binary file ./libvx32/emu.o matches
./libvx32/vx32impl.h:int vx32_getcontext(struct i386_thread_state*);
$
next prev parent reply other threads:[~2008-06-27 17:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14ec7b180806270816t389b0794i1654ae3b6ed2a46d@mail.gmail.com>
2008-06-27 15:31 ` Russ Cox
2008-06-27 15:39 ` [9fans] " David Leimbach
2008-06-27 15:56 ` andrey mirtchovski
2008-06-27 16:04 ` ron minnich
2008-06-27 16:34 ` David Leimbach
2008-06-27 16:41 ` andrey mirtchovski
2008-06-27 17:00 ` Russ Cox
2008-06-27 17:40 ` andrey mirtchovski [this message]
2008-06-27 18:11 ` Russ Cox
2008-06-27 17:58 ` David Leimbach
2008-06-27 16:06 ` roger peppe
2008-06-27 16:44 ` andrey mirtchovski
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=14ec7b180806271040p3c606162p7f45d7b6d321487f@mail.gmail.com \
--to=mirtchovski@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).