9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Error building 9front on arm64 (64-bit Pi)
@ 2024-12-20 10:53 Frank D. Engel, Jr.
  2024-12-20 15:13 ` Jacob Moody
  2024-12-20 16:56 ` qwx
  0 siblings, 2 replies; 7+ messages in thread
From: Frank D. Engel, Jr. @ 2024-12-20 10:53 UTC (permalink / raw)
  To: 9front

I did a sysupdate and see one warning that I suspect is innocuous?

Ran it again and was told that everything is up to date:

f86cc3e912e1598ff0df63b053dcb49b24e7f758 usbxhci: preserve RsvdP bits in 
registers, print recovery reason, print base address.
eff4b9365281325a37ead1c6ae8ed77823b7037f acme/Mail: correct message line 
number for partially hidden threads
5028b882da353ad46ac81340db9e03ffae8f87db usbehci: implement portpower 
control for rootports
837c596bdf90e7a723864b65a3bac84155ee66f6 usbdwc: preserve Prtpwr bit for 
portstatus, turn off power by default, handle channel timeout
remotes/THEM/front: 970d3b7eb7dc56aa84924dd68c4c39fd1df5d1f5 => 
837c596bdf90e7a723864b65a3bac84155ee66f6
cp: warning: can't wstat adm/timezone/Australia_South: wstat -- not 
owner or group leader
refs/heads/front: 837c596bdf90e7a723864b65a3bac84155ee66f6
glenda@brains1%
glenda@brains1% sysupdate
up to date



After:

cd /sys/src

mk clean

mk libs



Getting:

qdb.c:1745 syntax error, last name: b111110
7c -FTVw -I/sys/src/cmd vobj.c
mk: 7c -FTVw -I/sys/src/cmd qdb.c  : exit status=rc 22389: 7c 22393: error
mk: date for (i ...  : exit status=rc 19698: rc 22304: mk 22316: error



I tried "mk all" instead and it came back to this same error.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 10:53 [9front] Error building 9front on arm64 (64-bit Pi) Frank D. Engel, Jr.
@ 2024-12-20 15:13 ` Jacob Moody
  2024-12-20 16:57   ` Frank D. Engel, Jr.
  2024-12-20 16:56 ` qwx
  1 sibling, 1 reply; 7+ messages in thread
From: Jacob Moody @ 2024-12-20 15:13 UTC (permalink / raw)
  To: 9front

On 12/20/24 04:53, Frank D. Engel, Jr. wrote:
> I did a sysupdate and see one warning that I suspect is innocuous?
> 
> Ran it again and was told that everything is up to date:
> 
> f86cc3e912e1598ff0df63b053dcb49b24e7f758 usbxhci: preserve RsvdP bits in 
> registers, print recovery reason, print base address.
> eff4b9365281325a37ead1c6ae8ed77823b7037f acme/Mail: correct message line 
> number for partially hidden threads
> 5028b882da353ad46ac81340db9e03ffae8f87db usbehci: implement portpower 
> control for rootports
> 837c596bdf90e7a723864b65a3bac84155ee66f6 usbdwc: preserve Prtpwr bit for 
> portstatus, turn off power by default, handle channel timeout
> remotes/THEM/front: 970d3b7eb7dc56aa84924dd68c4c39fd1df5d1f5 => 
> 837c596bdf90e7a723864b65a3bac84155ee66f6
> cp: warning: can't wstat adm/timezone/Australia_South: wstat -- not 
> owner or group leader
> refs/heads/front: 837c596bdf90e7a723864b65a3bac84155ee66f6
> glenda@brains1%
> glenda@brains1% sysupdate
> up to date
> 
> 
> 
> After:
> 
> cd /sys/src
> 
> mk clean
> 
> mk libs
> 
> 
> 
> Getting:
> 
> qdb.c:1745 syntax error, last name: b111110
> 7c -FTVw -I/sys/src/cmd vobj.c
> mk: 7c -FTVw -I/sys/src/cmd qdb.c  : exit status=rc 22389: 7c 22393: error
> mk: date for (i ...  : exit status=rc 19698: rc 22304: mk 22316: error
> 

You need to rebuild your compiler, I added binary constants to the compiler and made use of them
for bitmasks for the power64 disassembler.


Thank you,
moody



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 10:53 [9front] Error building 9front on arm64 (64-bit Pi) Frank D. Engel, Jr.
  2024-12-20 15:13 ` Jacob Moody
@ 2024-12-20 16:56 ` qwx
  1 sibling, 0 replies; 7+ messages in thread
From: qwx @ 2024-12-20 16:56 UTC (permalink / raw)
  To: 9front

On Fri Dec 20 11:53:51 +0100 2024, fde101@fjrhome.net wrote:
> After:
> 
> cd /sys/src
> 
> mk clean
> 
> mk libs
> 
> 
> 
> Getting:
> 
> qdb.c:1745 syntax error, last name: b111110
> 7c -FTVw -I/sys/src/cmd vobj.c
> mk: 7c -FTVw -I/sys/src/cmd qdb.c  : exit status=rc 22389: 7c 22393: error
> mk: date for (i ...  : exit status=rc 19698: rc 22304: mk 22316: error

As moody said, your compilers are out of date.  Given how old this
change is (1.5 years), I recommend pulling the latest binaries and
libraries from the last release ISO [1] or a nightly [2] to avoid
headaches.

Cheers,
qwx

[1] http://9front.org/iso
[2] http://iso.only9fans.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 15:13 ` Jacob Moody
@ 2024-12-20 16:57   ` Frank D. Engel, Jr.
  2024-12-20 17:09     ` qwx
  2024-12-20 17:10     ` Jacob Moody
  0 siblings, 2 replies; 7+ messages in thread
From: Frank D. Engel, Jr. @ 2024-12-20 16:57 UTC (permalink / raw)
  To: 9front

Thanks, I tried cd cmd/7c; mk; mk install which seemed to work as 
expected, but I am still getting the error below when I try to mk libs 
from /sys/src (and it happens when running 7c).

I tried running mk all from /sys/src/cmd and hit an error that it was 
unable to open libpcm when building audio:

7l  -o 7.out pcmconv.7
??none??: cannot open file: /arm64/lib/libpcm.a
mk: 7l  -o ...  : exit status=rc 35585: 7l 35587: error
mk: for (i in ...  : exit status=rc 35573: rc 35583: mk 35584: error
mk: for(i in 1a ...  : exit status=rc 35470: rc 35570: mk 35572: error
mk: mk $MKFLAGS all.dirs  : exit status=rc 35448: mk 35450: error


I then tried an mk install from that directory anyway as a number of 
things got built before that and I considered that maybe one of them 
would help with either issue, but I am still hitting the pcm error when 
I mk all in cmd and the qdb error when doing mk libs.


On 12/20/24 10:13, Jacob Moody wrote:
> On 12/20/24 04:53, Frank D. Engel, Jr. wrote:
>> I did a sysupdate and see one warning that I suspect is innocuous?
>>
>> Ran it again and was told that everything is up to date:
>>
>> f86cc3e912e1598ff0df63b053dcb49b24e7f758 usbxhci: preserve RsvdP bits in
>> registers, print recovery reason, print base address.
>> eff4b9365281325a37ead1c6ae8ed77823b7037f acme/Mail: correct message line
>> number for partially hidden threads
>> 5028b882da353ad46ac81340db9e03ffae8f87db usbehci: implement portpower
>> control for rootports
>> 837c596bdf90e7a723864b65a3bac84155ee66f6 usbdwc: preserve Prtpwr bit for
>> portstatus, turn off power by default, handle channel timeout
>> remotes/THEM/front: 970d3b7eb7dc56aa84924dd68c4c39fd1df5d1f5 =>
>> 837c596bdf90e7a723864b65a3bac84155ee66f6
>> cp: warning: can't wstat adm/timezone/Australia_South: wstat -- not
>> owner or group leader
>> refs/heads/front: 837c596bdf90e7a723864b65a3bac84155ee66f6
>> glenda@brains1%
>> glenda@brains1% sysupdate
>> up to date
>>
>>
>>
>> After:
>>
>> cd /sys/src
>>
>> mk clean
>>
>> mk libs
>>
>>
>>
>> Getting:
>>
>> qdb.c:1745 syntax error, last name: b111110
>> 7c -FTVw -I/sys/src/cmd vobj.c
>> mk: 7c -FTVw -I/sys/src/cmd qdb.c  : exit status=rc 22389: 7c 22393: error
>> mk: date for (i ...  : exit status=rc 19698: rc 22304: mk 22316: error
>>
> You need to rebuild your compiler, I added binary constants to the compiler and made use of them
> for bitmasks for the power64 disassembler.
>
>
> Thank you,
> moody
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 16:57   ` Frank D. Engel, Jr.
@ 2024-12-20 17:09     ` qwx
  2024-12-20 17:10     ` Jacob Moody
  1 sibling, 0 replies; 7+ messages in thread
From: qwx @ 2024-12-20 17:09 UTC (permalink / raw)
  To: 9front

On Fri Dec 20 17:58:43 +0100 2024, fde101@fjrhome.net wrote:
> Thanks, I tried cd cmd/7c; mk; mk install which seemed to work as 
> expected, but I am still getting the error below when I try to mk libs 
> from /sys/src (and it happens when running 7c).
> 
> I tried running mk all from /sys/src/cmd and hit an error that it was 
> unable to open libpcm when building audio:
> 
> 7l  -o 7.out pcmconv.7
> ??none??: cannot open file: /arm64/lib/libpcm.a
> mk: 7l  -o ...  : exit status=rc 35585: 7l 35587: error
> mk: for (i in ...  : exit status=rc 35573: rc 35583: mk 35584: error
> mk: for(i in 1a ...  : exit status=rc 35470: rc 35570: mk 35572: error
> mk: mk $MKFLAGS all.dirs  : exit status=rc 35448: mk 35450: error

This just means that you need to build libpcm in /sys/src/libpcm, also
a recent addition.  However you might hit other issues if you only
rebuilt 7c and not 7a/7l first, which is why I recommend just copying
over the latest binaries and libraries from an ISO -- or from `9fs
9front`.

Cheers,
qwx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 16:57   ` Frank D. Engel, Jr.
  2024-12-20 17:09     ` qwx
@ 2024-12-20 17:10     ` Jacob Moody
  2024-12-20 19:15       ` Frank D. Engel, Jr.
  1 sibling, 1 reply; 7+ messages in thread
From: Jacob Moody @ 2024-12-20 17:10 UTC (permalink / raw)
  To: 9front

On 12/20/24 10:57, Frank D. Engel, Jr. wrote:
> Thanks, I tried cd cmd/7c; mk; mk install which seemed to work as 
> expected, but I am still getting the error below when I try to mk libs 
> from /sys/src (and it happens when running 7c).
> 
> I tried running mk all from /sys/src/cmd and hit an error that it was 
> unable to open libpcm when building audio:
> 
> 7l  -o 7.out pcmconv.7
> ??none??: cannot open file: /arm64/lib/libpcm.a
> mk: 7l  -o ...  : exit status=rc 35585: 7l 35587: error
> mk: for (i in ...  : exit status=rc 35573: rc 35583: mk 35584: error
> mk: for(i in 1a ...  : exit status=rc 35470: rc 35570: mk 35572: error
> mk: mk $MKFLAGS all.dirs  : exit status=rc 35448: mk 35450: error
> 
> 
> I then tried an mk install from that directory anyway as a number of 
> things got built before that and I considered that maybe one of them 
> would help with either issue, but I am still hitting the pcm error when 
> I mk all in cmd and the qdb error when doing mk libs.
> 
> 

It seems clear to me that parts of your tree are outdated.
You've likely gotten bit by the git bug here, I am copying here what I sent
ron in the other thread. You'll likely have to go through all of it:

; bind -ac /dist/plan9front /
; cd /
; git/diff -s /
# check if you see any differences that explain this discrepancy.
# if not continue
; mkdir -p .git/index9
; mv .git/INDEX9 .git/INDEX9borked
; git/diff -s /
# git will print the instructions to regenerate the index
# do those then continue
; git/diff -s /
# git/revert what it reports



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Error building 9front on arm64 (64-bit Pi)
  2024-12-20 17:10     ` Jacob Moody
@ 2024-12-20 19:15       ` Frank D. Engel, Jr.
  0 siblings, 0 replies; 7+ messages in thread
From: Frank D. Engel, Jr. @ 2024-12-20 19:15 UTC (permalink / raw)
  To: 9front

Thanks, it looks like this gave me what I needed.

Actually, git was so out of date that INDEX9 did not exist, but I was 
able to mk install just git, which gave me instructions to add that, and 
I followed through from there.

After that I did a mk clean then mk install on 7a, 7l and 7c and was 
able to mk install successfully from /sys/src for arm64.  I am going to 
follow up similarly for the other architectures I am interested in, and 
I have one more installation to update, which is probably just as 
hopelessly out of date, but at least now I have a plan to work from.



On 12/20/24 12:10, Jacob Moody wrote:
> On 12/20/24 10:57, Frank D. Engel, Jr. wrote:
>> Thanks, I tried cd cmd/7c; mk; mk install which seemed to work as
>> expected, but I am still getting the error below when I try to mk libs
>> from /sys/src (and it happens when running 7c).
>>
>> I tried running mk all from /sys/src/cmd and hit an error that it was
>> unable to open libpcm when building audio:
>>
>> 7l  -o 7.out pcmconv.7
>> ??none??: cannot open file: /arm64/lib/libpcm.a
>> mk: 7l  -o ...  : exit status=rc 35585: 7l 35587: error
>> mk: for (i in ...  : exit status=rc 35573: rc 35583: mk 35584: error
>> mk: for(i in 1a ...  : exit status=rc 35470: rc 35570: mk 35572: error
>> mk: mk $MKFLAGS all.dirs  : exit status=rc 35448: mk 35450: error
>>
>>
>> I then tried an mk install from that directory anyway as a number of
>> things got built before that and I considered that maybe one of them
>> would help with either issue, but I am still hitting the pcm error when
>> I mk all in cmd and the qdb error when doing mk libs.
>>
>>
> It seems clear to me that parts of your tree are outdated.
> You've likely gotten bit by the git bug here, I am copying here what I sent
> ron in the other thread. You'll likely have to go through all of it:
>
> ; bind -ac /dist/plan9front /
> ; cd /
> ; git/diff -s /
> # check if you see any differences that explain this discrepancy.
> # if not continue
> ; mkdir -p .git/index9
> ; mv .git/INDEX9 .git/INDEX9borked
> ; git/diff -s /
> # git will print the instructions to regenerate the index
> # do those then continue
> ; git/diff -s /
> # git/revert what it reports
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-12-20 19:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-20 10:53 [9front] Error building 9front on arm64 (64-bit Pi) Frank D. Engel, Jr.
2024-12-20 15:13 ` Jacob Moody
2024-12-20 16:57   ` Frank D. Engel, Jr.
2024-12-20 17:09     ` qwx
2024-12-20 17:10     ` Jacob Moody
2024-12-20 19:15       ` Frank D. Engel, Jr.
2024-12-20 16:56 ` qwx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).