From owner-freebsd-ppc@freebsd.org Thu Dec 26 17:44:33 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9FEDB1D5D23 for ; Thu, 26 Dec 2019 17:44:33 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47kHQS1k9pz49pC for ; Thu, 26 Dec 2019 17:44:31 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: by mail-wm1-x333.google.com with SMTP id a5so6375851wmb.0 for ; Thu, 26 Dec 2019 09:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZwkj70WRrWWXdHvg/oNTJ9cu6HryAgJZd18/ARefEk=; b=Y9WGqqgsAxqmGdgbZhXKiMoTRKpH/o6ppVqFK7aiCoMnlcG5bQZbK6qO3ThzUh4xjs qdr4v9AuRzVpx1fR5h3zUzYYqAq7a463Pzy1vv60VTGGf7j7zuZSzqSchl3zClbiwOag G0IBvfaAkVzpCizOb2GzgkRmbmJhlaRVTOVAhV4PUmTyS56XxtDAvmM1a0cv6vohk+QE Y1VOSJtNyQnOzLZkGrOlpLmNwzfOQRuxUVSdSmkzm4Dbab/rVmLnbV3uZRrXRenuKRGk ryfKg7OkX8mwMjd7PnSPVO63U0l4Vtdlc5DBBIKotbfGgNJ3EDB96MZDq7nlRZHr07JQ jYYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZwkj70WRrWWXdHvg/oNTJ9cu6HryAgJZd18/ARefEk=; b=qFeVi0G9KEEADv+ZBJF+JE6LYcTyfCBNopDFPnaGQ7aG8EMDgYf3gEf67n7lvxRfYp OMZW/tzvVx9HXoPxK8IAd1K4zf9PMP690APR2L0NYqiDWwAYZ2fan3drI/qwmecEx6k5 vqEv3a78vMKPG7ojxn14PlZZmXmkwnV1a6YlRHNQiQBBz6QMxC9XZkA1HnT1Onjb+f0F ZHbUdZyKoP3zt5L866M0SA+6EGNO9a1M/CHSBXVqb8b1In6BPtAdlfv98gQ/nn5clvhP qXXMzplKb4jvpcOWeK9/k21YG7fvpR4gWQKfb7POm//2vSCMW2ymLcnQnffsEo8C38DM uBcw== X-Gm-Message-State: APjAAAUZAJ/e0gNrn3bIDtW4s2ummXs2Ud+K3cahAvYnXm1k5D74nwZJ uA1wUd+/lQyJabWPgSHwrG4Je6GAUU/yq5uDm/c= X-Google-Smtp-Source: APXvYqyO6e6xB1ZjW4dbFrObwM8IH1NUqf9Gast5Ju/VkCrz+sLnKCPugElrr3ksiVmdU4fo1+/catVDSPeIOuqfE/Q= X-Received: by 2002:a7b:c407:: with SMTP id k7mr15506077wmi.46.1577382270512; Thu, 26 Dec 2019 09:44:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Joe Nosay Date: Thu, 26 Dec 2019 12:44:10 -0500 Message-ID: Subject: Re: Building powerpc (32-bit) packages on amd64 To: Gustavo Romero Cc: Daniel Benjamin Miller , FreeBSD PowerPC ML X-Rspamd-Queue-Id: 47kHQS1k9pz49pC X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y9WGqqgs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of superbisquit@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=superbisquit@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; URI_COUNT_ODD(1.00)[9]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[3.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.66), ipnet: 2a00:1450::/32(-2.64), asn: 15169(-1.88), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Dec 2019 17:44:33 -0000 Edit: Search for the problem and fix it. My apologies On Thu, Dec 26, 2019 at 12:40 PM Joe Nosay 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 > 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 -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" >> >