From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10806270814k8aec549q139069e008b4566a@mail.gmail.com> Date: Fri, 27 Jun 2008 08:14:19 -0700 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <13426df10806270757h3c364b22wb3bb80312336316d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080627110538.15AA31E8C35@holo.morphisms.net> <13426df10806270757h3c364b22wb3bb80312336316d@mail.gmail.com> Subject: Re: [9fans] 9vx Topicbox-Message-UUID: c7e2605a-ead3-11e9-9d60-3106f5b1d025 On Fri, Jun 27, 2008 at 7:57 AM, ron minnich wrote: > building on x86 64 bit. > > first issue is that I get this:make: vx32-gcc: Command not found > > second is that I get this: > gcc -Ilibvx32 -c -g -O3 -MD -std=gnu99 -I. -o libvx32/linux.o libvx32/linux.c > libvx32/linux.c: In function `vx32_sighandler': > libvx32/linux.c:254: error: structure has no member named `rip' > libvx32/linux.c:303: error: structure has no member named `rip' > make: *** [libvx32/linux.o] Error 1 yeah. The rip thing is fixed for sigcontext in linux.c, but not in this: // VX32 CPU state struct vxcpu { uint32_t reg[8]; uint32_t eip; uint32_t eflags; uint32_t traperr; uint32_t trapva; // cr2 }; So the #defines in libvx32/linux.c fix things for sigcontext and break things for vxcpu struct. Hmm. It's rather sleazy but I put #undef eip at linux.c line 252 and it builds. Now I get a link error: libvx32/libvx32.a(rts.o)(.text+0x99): In function `vxrun_lookup_backpatch': libvx32/rts.S:127: undefined reference to `VXEMU_RETPTR' libvx32/libvx32.a(rts.o)(.text+0x10d): In function `vxrun_lookup_indirect': libvx32/rts.S:214: undefined reference to `VXEMU_RETPTR' libvx32/libvx32.a(rts.o)(.text+0x13e): In function `vxrun_gentrap': libvx32/rts.S:232: undefined reference to `VXEMU_RETPTR' libvx32/libvx32.a(run64.o)(.text+0x2e): In function `vxrun': libvx32/run64.S:56: undefined reference to `VXEMU_RUNPTR' libvx32/libvx32.a(run64.o)(.text+0x60):libvx32/run64.S:82: undefined reference to `VXEMU_RUNPTR' collect2: ld returned 1 exit status make: exit 2 more as I hit it. This is a little bit easier than building lguest modules. Ah, this is going to be fun! I just shorted vmware. I'm gonna be rich, I tell you! Rich! ron