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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18332 invoked from network); 5 Jul 2022 00:43:57 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2022 00:43:57 -0000 Received: from mail-il1-f178.google.com ([209.85.166.178]) by 9front; Mon Jul 4 20:40:40 -0400 2022 Received: by mail-il1-f178.google.com with SMTP id a7so6390068ilj.2 for <9front@9front.org>; Mon, 04 Jul 2022 17:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=o4HIyK9FhRY77jj0fHN9zZNt9knKRvVaVprCkEGyK5Y=; b=UGGtyr+mQPKE1r3I77mD0oOB1OuITLJdBAVjt4bS00p67FDdzVQEpLG6HZlOKA0VAe YeFjdaIlaJSbg/SchFcVWSB9f0qQT9EXbQ8Srr6ekGOdzwxLOTGjzeGLZLdQ5e9q6RXP l1ohcfbltlo+fMpgzu7mpT78A/YOIXFwABxbas/WGQIYlM+fmF8JHiqXXGBf9+gamYuR WyVSX4a4k/6sbrfUnTK2T3vELVyM7/Y6bJoWqi/qJLgN/uYwEFlMyXYLmJUh73+KgPKB I2O55hQzkjCEECfhCkHqjr4SHVnSZ2XKYU4UyTKze+6qSQbSF5DtddyygElbK8KmAUZj E6Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=o4HIyK9FhRY77jj0fHN9zZNt9knKRvVaVprCkEGyK5Y=; b=gdDQ4+Vuue5kI0xvmHXdItR17Xs7YT0xSGtxjqhehJRZj8ltXqViOYXEYKSVOzB0sw BPM227GQslcqjslJYAcXuPLqe913viDWaaopkQuh6hbvOQEaVn8zy1VQH1+5OgeSoHGC XM6As/Mg7xM5IB6VJpeb7zcr422KfOt9SeKwiSLAJuqXLCdUrfaw2AdXrdZaWD5qp2DD nHbck4AJUi+v7NUXlNV1Xvg54U6QWQbquKHia97ejTKcNmtm9TQWd8khClVAJjfvrwZH TGki/c7z/ItAgich3vQQI/HslVV+MG8fOvR18RudWOmyw+S+fXOnYM8e7HZRKWFlV5KN znDQ== X-Gm-Message-State: AJIora+Nw6panMG/y4uhlUt6fST4X70sdDLCmGdJvDAFSf0ZnVtBd1RU GZFi86YbPLkzDgWqe63gtKciNLtMHtgNv9cA+YWh6+L6OEk= X-Google-Smtp-Source: AGRyM1v9P+WQ2dNRSEm1UE5gO3ifx2/yIRKnDmdD5ULjLYBzKKyq8egrBkHKTu6ClXCv5akW64WtdAG+noLjbERQEIk= X-Received: by 2002:a05:6e02:184d:b0:2da:ca66:76f6 with SMTP id b13-20020a056e02184d00b002daca6676f6mr17926284ilv.128.1656981636569; Mon, 04 Jul 2022 17:40:36 -0700 (PDT) MIME-Version: 1.0 References: <4838A219717B21C66038618289A970D9@eigenstate.org> In-Reply-To: From: adventures in9 Date: Mon, 4 Jul 2022 17:40:25 -0700 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: STM XMPP base replication Subject: Re: [9front] 9front on spim Reply-To: 9front@9front.org Precedence: bulk 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! > > > > >