Date: Thu, 26 Dec 2019 12:44:10 -0500 From: Joe Nosay <superbisquit@gmail.com> To: Gustavo Romero <gromero@linux.vnet.ibm.com> Cc: Daniel Benjamin Miller <dbmiller@dbmiller.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: Building powerpc (32-bit) packages on amd64 Message-ID: <CA%2BWntOshPhSDwZ=TLcEKY3u2-6iH9Y-tR69AhsZra_RqxXrUaQ@mail.gmail.com> In-Reply-To: <CA%2BWntOsJKaCotx3YWAm=Ba46_f2wdCDm_-5mU8Yd1S5Of11rmw@mail.gmail.com> References: <a53b5540-5cff-a0d0-7a2f-fa143f6c6f4f@dbmiller.org> <fa96de38-7e7c-2dc7-00aa-29a9d9adf39e@linux.vnet.ibm.com> <CA%2BWntOsJKaCotx3YWAm=Ba46_f2wdCDm_-5mU8Yd1S5Of11rmw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Edit: Search for the problem and fix it. My apologies On Thu, Dec 26, 2019 at 12:40 PM Joe Nosay <superbisquit@gmail.com> wrote: > You will need to build on the G3/4/5 PowerPC32/64||POWER machine itself. > Since it is your computer, and you are probably not one of the committers, > I would suggest that you edit the Makefiles to the proper architecture by > adding what you need. > In the source itself, you need to edit the configuration file so that > FreeBSD is allowed. This is the way I was able to build a public package > repository for FreeBSD on the PowerPC32/64||POWER series. > You need to start editing the files from the source after you download > them.or the problem and fix it. > I had one of these: > https://everymac.com/systems/apple/powermac_g3/specs/powermac_g3_400_bl.html > and simultaneously built firefox, a window manager, and an editor on it > with it having less than one gigabyte of memory. > > The POWER RISC architecture is different, I'll explain it to you. > Since it has a base of LOAD_STORE in the registers, it will dedicate as > many if not all resources to the load intensive process. > The machine looked like it was dead. > It wasn't. > One day later it was up, and the ports were built. > > So there is no excuse. > > Go home and do your homework. > > > > On Tue, Nov 19, 2019 at 1:49 PM Gustavo Romero <gromero@linux.vnet.ibm.com> > wrote: > >> Hi Daniel, >> >> Thanks for sharing your recipe and results. >> >> In fact I realized last week that indeed ppc32 binaries don't exist in the >> mirrors and I could not find any replacement for them. >> >> I've tried to kick a build of gcc9 on ppc32 G4 and hit a couple of issues >> which >> I was able to work around. I have not tried other packages yet. On of the >> issues looks related specific with that kind of build environment, i.e >> real >> G4 HW, so cross-compiling looks a nice alternative. >> >> So yeah, please keep us posted on your progress building the ppc32 >> binaries on >> amd64 :) >> >> Cheers, >> Gustavo >> >> On 11/09/2019 03:25 AM, Daniel Benjamin Miller wrote: >> > While it's not normally supported, I have managed to build powerpc >> packages on amd64, for a 32-bit target. I recently obtained a PowerBook G4 >> and was interested in running FreeBSD on it. So I installed the base >> system, but found that there were no binaries out there. Somebody had an >> unofficial server in ~2015 but it looks like there's nothing on the web >> now. Compiling ports on a G4 is torturous, so I decided to give it a whirl >> on my amd64 computer. The issue was that I couldn't run powerpc (32-bit) >> FreeBSD in QEMU, and it seemed that cross-compiling using poudriere was not >> supported with a powerpc target from an amd64 host. I've been able to >> generate some packages using the following method: >> > >> > 1. Run a FreeBSD-CURRENT (powerpc64) virtual machine under Linux, using >> the command sudo qemu-system-ppc64 -M pseries-2.12-sxxm -smp 2 -mem-path >> /dev/hugepages -drive file=bsd.img -m 12G -boot c as my boot command. >> (Before this, you'll need to have a CD attached, of course, in order to >> install it.) >> > >> > 2. Compile pkg, then pkg install poudriere. >> > >> > 3. Add a simple poudriere.conf (I just went with the example). >> > >> > 4. Create poudriere's data folder. >> > >> > 5. poudriere ports -c >> > >> > 6. poudriere jail -c -j ppc32 -v 12.1-RELEASE -a powerpc >> > >> > 7. Create a file and then run poudriere bulk -f <myfile> -j ppc32 >> > >> > And it all seems to work. Once my job is done, I will post my >> unofficial binaries in a publicly accessible repository. I don't know if >> the project maintainers would be potentially interested in using this >> method to compile powerpc (32-bit) binaries on modern hardware (being that >> the userbase for this architecture is, in all likelihood, fairly small). >> Nevertheless, these packages should make my PowerBook G4 somewhat more >> useful as a FreeBSD system. >> > >> > _______________________________________________ >> > freebsd-ppc@freebsd.org mailing list >> > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BWntOshPhSDwZ=TLcEKY3u2-6iH9Y-tR69AhsZra_RqxXrUaQ>