From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24694 invoked from network); 5 Jul 2022 10:10:37 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2022 10:10:37 -0000 Received: from dpmailmta02.doteasy.com ([65.61.219.40]) by 9front; Tue Jul 5 06:08:56 -0400 2022 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=192.168.101.82; Received: from dpmailrp02.doteasy.com (unverified [192.168.101.82]) by dpmailmta02.doteasy.com (DEO) with ESMTP id 90166654-1393315 for <9front@9front.org>; Tue, 05 Jul 2022 03:08:45 -0700 Return-Path: Received: from dpmail01.doteasy.com (dpmail01.doteasy.com [192.168.101.1]) by dpmailrp02.doteasy.com (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id 265A8iJ2002952 for <9front@9front.org>; Tue, 5 Jul 2022 03:08:45 -0700 X-SmarterMail-Authenticated-As: fde101@fjrhome.net Received: from [192.168.1.75] (pool-74-99-150-186.hrbgpa.fios.verizon.net [74.99.150.186]) by dpmail01.doteasy.com with SMTP; Tue, 5 Jul 2022 03:08:26 -0700 Message-ID: Date: Tue, 5 Jul 2022 06:08:18 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: 9front@9front.org References: <4838A219717B21C66038618289A970D9@eigenstate.org> From: "Frank D. Engel, Jr." In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Exim-Id: cbf5a7a0-ebf5-e211-85a5-47cb2a1b5f39 X-Bayes-Prob: 0.0001 (Score 0, tokens from: base:default, @@RPTN) X-CanIt-Geo: No geolocation information available for 192.168.101.1 X-CanItPRO-Stream: base:default X-Canit-Stats-ID: 017Pm8I9k - 67cd6794cb7d - 20220705 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.168.101.82 X-Originating-IP: 192.168.101.82 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: non-blocking extension app Subject: Re: [9front] 9front on spim Reply-To: 9front@9front.org Precedence: bulk I tried this: objtype=spim mk clean objtype=spim mk all I continue to get errors related to being missing. 0a mips/getcallerpc.s cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 ctime.c:1 Could not find include file 0a mips/getfcr.s pcc: 0c: cpp 221059: error not a function syntax error, last name: ex cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 ../../../libc/port/crypt.c:11 Could not find include file mk: pcc -c -Fw ...  : exit status=rc 221046: pcc 221051: 0c: cpp 221059: errorpcc: 0c: cpp 221057: error not a function syntax error, last name: ext cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 rerrstr.c:1 Could not find include file pcc: 0c: cpp 221071: error mk: for (i in ...  : exit status=rc 221036: rc 221038: mk 221039: error mk: cd lib mk all  : exit status=rc 221030: mk 221032: error mk: mk lib.all mk ...  : exit status=rc 221027: mk 221029: error mk: date for (i ...  : exit status=rc 217389: rc 221025: mk 221026: error On 7/4/22 8:40 PM, adventures in9 wrote: > I just tried a /sys/src mk all and it is giving me similar errors too. > > cd 9src > mk all > 0l -o 0.stty stty.0 > 0l -o 0.tar tar.0 > 0l -o 0.cc cc.0 > lock: undefined: _tas > (856) JAL ,_tas+0(SB) > lock: undefined: _tas > (856) JAL ,_tas+0(SB) > lock: undefined: _tas > (856) JAL ,_tas+0(SB) > mk: 0l -o ... : exit status=rc 324833: vl 324839: error > mk: cd 9src mk all : exit status=rc 324830: mk 324832: error > mk: mk lib.all mk ... : exit status=rc 324142: mk 324829: error > mk: date for (i ... : exit status=rc 323149: rc 324140: mk 324141: error > > I also tried it with objtype=mips, and it builds without error. > > I ran objtype=spim and mk all again, and got a similar error. > > Then just to be sure, I did mk clean, and ran mk all again, and this > time it it finished building. > > 0c -FTVw cpufp.c > warning: v8e.c:89 param declared and not used: file > 0c -FTVw mem.c > 0c -FTVw sys.c > 0l -o 0.out v8e.0 cpu.0 cpubcd.0 cpufp.0 mem.0 sys.0 > Mon Jul 4 17:33:38 PDT 2022 > cpu% echo $objtype > spim > cpu% > > So it might just be an issue of something getting left behind from > building for other architectures. Like I mentioned before, spim is > sort of an odd one because the 0c compiler is just a script that calls > "exec vc -l $*" > > Try mk clean and then build just objtype=spim > > On Mon, Jul 4, 2022 at 5:02 PM Frank D. Engel, Jr. wrote: >> For reference, I am actually doing the build from an arm64 system >> (Raspberry Pi) and getting "up to date" when running sysupdate, and when >> I cd /sys/src then objtype=spim mk all I am getting a bunch of the >> typical working stuff followed by variations of the following at the end: >> >> >> pcc -c -Fw -D_POSIX_SOURCE -D_PLAN9_SOURCE -I. ../../../libc/9sys/idn.c >> cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 ctime.c:1 Could not find >> include file >> pcc: 0c: cpp 201201: error >> mk: pcc -c -Fw ... : exit status=rc 201186: pcc 201193: 0c: cpp 201201: >> error not a function >> syntax error, last name: ex >> >> cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 ../../../libc/9sys/idn.c:2 >> Could not find include file >> cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 ../../../libc/port/crypt.c:11 >> Could not find include file >> pcc: 0c: cpp 201197: error >> pcc: 0c: cpp 201200: error >> cpp: /sys/include/ape/fmt.h:26 ./libc.h:21 >> ../../../libc/port/getfields.c:2 Could not find include file >> syntax error, last name: Rune >> not a function >> syntax error, last name: ext >> pcc: 0c: cpp 201204: error >> mk: for (i in ... : exit status=rc 201180: rc 201182: mk 201183: error >> mk: cd lib mk all : exit status=rc 201174: mk 201176: error >> mk: mk lib.all mk ... : exit status=rc 201171: mk 201173: error >> mk: date for (i ... : exit status=rc 200132: rc 201169: mk 201170: error >> glenda@brains1% not a function >> syntax error, last name: runestrstr >> >> >> >> On 7/4/22 7:21 PM, ori@eigenstate.org wrote: >>> Quoth adventures in9 : >>>> I'll make this a separate thread for anyone who wants to talk about spim >>>> specifically. >>>> >>>> I saw spim mentioned in the Port Status thread. I haven't had any trouble >>>> building for spim, and some of the missing parts might just be because it >>>> is building off code stored in "mips" but does it with with the "spim" >>>> compiler, which is really just a script with the mips compiler set with a >>>> little-endian flag. >>>> >>>> As for hardware, I've been using the Onion Omega 2. I've also found >>>> several Chinese router boards that also use the MT7688. I have got it to >>>> start booting on the Onion, but haven't finished it up yet. I haven't >>>> touched it in a couple months, but what I have done so far is here: >>>> >>>> https://github.com/adventuresin9/9front-mt7688 >>>> >>>> I'm pretty sure the Loongson and Ingenic mips chips are also little endian, >>>> so there are a few systems out there that would use spim. >>>> >>>> My goal was to use the Onion Omega 2 kits to set up i2c sensors and control >>>> lights and such around my house. I also got a MT7688 based router, to make >>>> a 9front based wifi router with. And a MT7621 based router, which is >>>> similar but dual core. >>>> >>>> So, if anyone wants to help, I do have some little endian mips hardware to >>>> test on. >>> Awesome. Please send patches when you're ready! >>> >>>