From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <348c5f1e4ccbcc199c8c0444371307d0@plan9.bell-labs.com> From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] Alpha compiler chokes on webfs/io.c; various fixes. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-niggylevocrcampspzrnlyjryo" Date: Mon, 14 Oct 2002 16:26:31 -0400 Topicbox-Message-UUID: 05a81f82-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-niggylevocrcampspzrnlyjryo Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Arghhh!!! I can't send a mail message to save my life, this should have said: Its trying to compile mips assembly with a powerpc assembler. I've updated the mkfile on sources. --upas-niggylevocrcampspzrnlyjryo Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Mon Oct 14 16:21:18 EDT 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Mon Oct 14 16:21:17 EDT 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E3FF119A2C; Mon, 14 Oct 2002 16:21:08 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from plan9.cs.bell-labs.com (closedmind.org [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 357151998A for <9fans@cse.psu.edu>; Mon, 14 Oct 2002 16:20:11 -0400 (EDT) Message-ID: <526ee909eee6e0e9acc4399b339114ab@plan9.bell-labs.com> From: presotto@plan9.bell-labs.com To: 9fans@cse.psu.edu Subject: Re: [9fans] Alpha compiler chokes on webfs/io.c; various fixes. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-lfphsprlrnjvrrslscvjolnucc" Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 14 Oct 2002 16:20:08 -0400 This is a multi-part message in MIME format. --upas-lfphsprlrnjvrrslscvjolnucc Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit The libmp/mips stuff doesn't assemble because someone did this at the beginning of the mkfile: objtype=mips ; Mon, 14 Oct 2002 15:53:12 -0400 (EDT) Received: from augusta.math.psu.edu (augusta.math.psu.edu [146.186.132.2]) by math.psu.edu (8.9.3/8.9.3) with ESMTP id PAA27227 for <9fans@cse.psu.edu>; Mon, 14 Oct 2002 15:53:08 -0400 (EDT) Received: from augusta.math.psu.edu (localhost [127.0.0.1]) by augusta.math.psu.edu (8.11.6+Sun/8.9.3) with ESMTP id g9EJr8i25613 for <9fans@cse.psu.edu>; Mon, 14 Oct 2002 15:53:08 -0400 (EDT) Message-Id: <200210141953.g9EJr8i25613@augusta.math.psu.edu> To: 9fans@cse.psu.edu From: Dan Cross Subject: [9fans] Alpha compiler chokes on webfs/io.c; various fixes. Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 14 Oct 2002 15:53:08 -0400 Hey Folks, Just for the hell of it, last night I decided to try building Plan 9 for a bunch of different architectures. I encounted a few problems, and fixed what I could (and what I had time for). Some diff's (in the ed-script format, perhaps this'll be easier to apply) follow. First, some directories need to be created: /^(power arm)^/bin/ip/httpd and /^(power arm)^/bin/usb are missing from the distribution. Second, the alpha build choked on building io.c in /sys/src/cmd/webfs. A diff to fix it follows: term% diff -e /n/sources/plan9/sys/src/cmd/webfs/io.c io.c 52,56c addr = va_arg(*arg, char*); local = va_arg(*arg, char*); dir = va_arg(*arg, char*); cfdp = va_arg(*arg, int*); usetls = va_arg(*arg, int); . term% Note the *'s before `arg' in the macro call. Next, the MIPS compiler (actually, assembler) chokes on the stuff in /sys/src/libmp/mips, but my MIPS book is literally buried under a bunch of stuff right now, so I didn't track that down, but perhaps someone is more familiar with it and knows what's up. When building kernels, the mtx build failed due to things missing during the link stage. A diff: term% diff -e /n/sources/plan9/sys/src/9/mtx/mkfile mkfile 21a nulledf.$O\ . 17a devrealtime.$O\ . term% And similarly, the alphapc mkfile needed an addition: term% diff -e /n/sources/plan9/sys/src/9/alphapc/mkfile mkfile 17a devrealtime.$O\ . term% That's basically it. I'm not sure anyone really cares, since alpha's probably aren't used much anymore, and not a lot of people have mtx's, but I thought I'd send along the diff's anyway. - Dan C. --upas-lfphsprlrnjvrrslscvjolnucc-- --upas-niggylevocrcampspzrnlyjryo--