Building packages - qemu vs. CC etc.
vom513 <[email protected]> Tue, 2 Jun 2026 16:35:06 -0400
| Newsgroups | gmane.os.netbsd.ports.sparc |
|---|---|
| Message-ID | <[email protected]> |
Hello all, I know this topic has been covered from time to time here - but if you = would indulge me I=E2=80=99d like to post my workflow and get critiques = and tips. I currently build all my packages on qemu (Apple M1 Macbook Pro). My = command line is: qemu-system-sparc -M SS-20 -m 768 -smp 2 -drive = file=3Dsparc-10-1.qcow2,bus=3D0,unit=3D0,media=3Ddisk -drive = file=3DNetBSD-10.1-sparc.iso,bus=3D0,unit=3D2,media=3Dcdrom,readonly=3Don = -nic user,hostfwd=3Dtcp::8888-:22 This =E2=80=9Cgenerally=E2=80=9D works. I say generally because all too = often a really large/long build will cause the machine to freeze. This = seems to me to be memory related. On that note - qemu seems more apt to = freeze the more memory I give the machine. This is anecdotal - I = don=E2=80=99t have hard data :( The reason I have 768 up there now - is because I=E2=80=99m trying to = build sysutils/btop (gcc12 is a dep :( ) and it killed the compiler = running out with 512M (this was a healthy NetBSD kill - not a qemu = issue). Hence 768. It=E2=80=99s running now (the current cpp file its = working on is approaching a 3 hour run time ?) Anyway - my bigger picture question is workflow. The reason I am using = qemu is that I set up a CC environment on a fast amd64 VM with plenty of = RAM and had issues. I remember that I CC=E2=80=99ed lynx and the = CC=E2=80=99ed version didnt=E2=80=99 have ipv6 support. Compiling in = qemu did have ipv6 support and worked fine. So that made me gunshy from = using CC built packages. FYI - I used the official NetBSD guide docs = for setting up the CC environment. (Possible dumb question - any advantage to CC=E2=80=99ing on a sparc64 = (v240 / 4G ram) ? sparc64 and sparc are at least cousins yeah ? Like I = said - possibly dumb question=E2=80=A6) Even if I do CC - some things (oh perl=E2=80=A6) don=E2=80=99t support = CC anyway. So I guess I could =E2=80=9Chopscotch=E2=80=9D and build = everything possible using CC and feed back to qemu and build perl etc = there. and then put perl back on the CC machine... So tl;dr - how are yall building packages ? I=E2=80=99d love to hear = I=E2=80=99m way off base with my workflow - and any CC tips. Thanks.