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=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13391 invoked from network); 23 Nov 2023 15:34:01 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 23 Nov 2023 15:34:01 -0000 Received: from dpmailmta02.doteasy.com ([65.61.219.26]) by 9front; Thu Nov 23 10:32:39 -0500 2023 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 115432482-1393315 for <9front@9front.org>; Thu, 23 Nov 2023 07:32:32 -0800 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 3ANFWVAt000517 for <9front@9front.org>; Thu, 23 Nov 2023 07:32:31 -0800 X-SmarterMail-Authenticated-As: fde101@fjrhome.net Received: from [192.168.1.95] (pool-173-67-134-57.hrbgpa.fios.verizon.net [173.67.134.57]) by dpmail01.doteasy.com with SMTP (version=Tls12 cipher=Aes256 bits=256); Thu, 23 Nov 2023 07:32:12 -0800 Message-ID: <27cc76d2-c331-45bf-88f5-e833acae4df7@fjrhome.net> Date: Thu, 23 Nov 2023 10:32:06 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: 9front@9front.org References: <2e5d17d1-49da-4493-b78f-614578eb0d73@fjrhome.net> <4ad2cd6c-64ce-4e0b-a0a1-fb7dcd637564@posixcafe.org> From: "Frank D. Engel, Jr." In-Reply-To: <4ad2cd6c-64ce-4e0b-a0a1-fb7dcd637564@posixcafe.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Exim-Id: 27cc76d2-c331-45bf-88f5-e833acae4df7 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: 01bdPwvAo - 09a8a6049723 - 20231123 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: distributed map/reduce CSS frontend Subject: Re: [9front] Build Errors Reply-To: 9front@9front.org Precedence: bulk Thanks. I tried mk nuke followed by mk libs and it came back to the same error related to sqrt.7; git/diff was telling me it was not a git repository, so taking a cue from the sysupdate script, I tried this: rfork en cd / bind -ac /dist/plan9front / cd sys/src/libc git/diff That git/diff command produced no output. On 11/23/23 09:47, Jacob Moody wrote: > On 11/23/23 06:25, Frank D. Engel, Jr. wrote: >> It has admittedly been a while since I last did a sysupdate on my 9front >> Pi cluster, but after the release announcement jogged my memory to go >> back and do this, I ran into some build errors. >> >> I did an mk clean to get a clean start on the builds but am still >> hitting errors no matter which path I take. > This new release was done in part due to the above average amount > of breakage via a naive sysupdate. Notes in line on how to get unstuck. > >> >> For mk kernels it is ending here: >> >> >> 7c -FTVw -I. ../port/devcap.c >> 7c -FTVw -I. ../port/devproc.c >> 7c -FTVw devrtc.c >> ../ip/ethermedium.c:726 too many function arguments: icmpna6 >> ../ip/ethermedium.c:740 too many function arguments: icmpns6 > This "too many function arguments" or "not enough function arguments" > is usually evidence that the library has updated and needs rebuilt from > scratch. You can do this via mk nuke. > >> mk: 7c -FTVw -I. ../ip/ethermedium.c  : exit status=rc 1979947: 7c >> 1979949: error >> file system made >> mk: for(i in arm64 ...  : exit status=rc 1979801: rc 1979803: mk >> 1979804: error >> mk: for (i in ...  : exit status=rc 1978206: rc 1978208: mk 1979800: error >> >> >> >> For mk all (building for arm64, the platform it is running on): >> >> >> a - runeistype.7 >> a - runenorm.7 >> a - runetotype.7 >> arm64 >> 7a  getcallerpc.s >> 7a  getfcr.s >> 7a  main9.s >> 7a  main9p.s >> mk: no recipe to make 'sqrt.7' in directory /sys/src/libc/arm64 > This one is a bit strange, I recommend checking git/diff for libc and > ensuring you don't have any files missing. >> mk: for(i in 9sys ...  : exit status=rc 1980048: rc 1980626: mk 1980628: >> error >> mk: date for (i ...  : exit status=rc 1979980: rc 1980046: mk 1980047: error >> >> >> >> For objtype=amd64 mk all it is ending here: >> >> >> mk dhcpd >> mk: 'all' is up to date >> mk httpd >> mk: 'all' is up to date >> mk ipconfig >> 6c -FTVw dhcp.c >> dhcp.c:290 not enough function arguments: putndb > Needs a mk nuke > >> mk: 6c -FTVw dhcp.c  : exit status=rc 1983177: 6c 1983179: error >> mk: for (i in ...  : exit status=rc 1983160: rc 1983174: mk 1983176: error >> mk: for(i in 1a ...  : exit status=rc 1982313: rc 1983157: mk 1983159: error >> mk: mk $MKFLAGS all.dirs  : exit status=rc 1982292: mk 1982294: error >> mk: date for (i ...  : exit status=rc 1980646: rc 1982272: mk 1982273: error >> >> >> >> I also tried objtype=mips mk all as an additional reference point due to >> the inconsistency in the errors I am seeing: >> >> >> vl -o v.dhcpd dhcpd.v db.v ndb.v ping.v >> vl -o v.dhcpleases dhcpleases.v db.v ping.v >> mk httpd >> vl  -o v.imagemap imagemap.v libhttps.av >> vl  -o v.man2html man2html.v libhttps.av >> vl  -o v.save save.v libhttps.av >> mk ipconfig >> vc -FTVw dhcp.c >> dhcp.c:290 not enough function arguments: putndb > Same as above, needs a mk nuke. > >> mk: vc -FTVw dhcp.c  : exit status=rc 1985713: vc 1985715: error >> mk: for (i in ...  : exit status=rc 1985673: rc 1985710: mk 1985712: error >> mk: for(i in 1a ...  : exit status=rc 1984844: rc 1985670: mk 1985672: error >> mk: mk $MKFLAGS all.dirs  : exit status=rc 1984822: mk 1984824: error >> mk: date for (i ...  : exit status=rc 1983184: rc 1984801: mk 1984802: error >> >> > > Additionally there was a compiler and linker update for arm64 specifically > that must be applied in order. 7l must be updated before 7c. With all that said > this is the steps I would take to rebuild. I can confirm that from a clean repo > the arm64 build works just fine, for what that's worth. > > cd /sys/src/ > mk nuke > mk libs > cd cmd/7l > mk install > cd ../cmd/7c > mk install > cd ../.. > mk install > >