From owner-freebsd-ppc@freebsd.org Thu Dec 26 17:40:36 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 A8E491D5B03 for ; Thu, 26 Dec 2019 17:40:36 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 47kHKv6vL1z49TK for ; Thu, 26 Dec 2019 17:40:35 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id y11so24155585wrt.6 for ; Thu, 26 Dec 2019 09:40:35 -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=mbvwng5nVktWMYSF3O7ZIyu3q/Xb9k71AytNrqT2580=; b=Lk4u3QSwJr0G+wHaWX+np0XAgywbpNB2M5kBcru6OHpRSEzUz5CwhBidq6v+nMtB/5 i9XB4zCPkb2BP/W02dCPK8pLaM2gYP2hy2blvQru15QfdQvnUQu/o9zQubTVLOqan2y8 NpiCqAPrLY079nYUBKNVZkZVQt9efBy4t84cDEGWKxgdfkWnH9byfmiFVORWT2Qx65dt d6k/qqt1GVy3bdiMHPFTkjlJBy4H09u9HJprStOp9/NOzPhauXJk/DB/p4pPUpLcgLjW +eMY+xYpmZa9R9tXyfJWkazBh3kdoi6zcrEreigKBdrIn0oAINf6Z8Y/nXANREZCp6AI 8SWQ== 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=mbvwng5nVktWMYSF3O7ZIyu3q/Xb9k71AytNrqT2580=; b=dvkqURxrhBMsSkB/U2bDfCg98u3ATtxgLm0JAcfA/BXimrpJj84NILaLj+jCP9YzuJ ooOwhwKP/OzOll4+RLa8PuAg8wqc6FdgN3YeAt4WAnn9MVZwhX7bBFoaHM0Tl237GarH 4sA1Y6sxcHrjouwOmc3sIFATmGpdzocRCY0Grm+Z0kuifoSBAwo70iyoI/r/ecifspTz BQpY4/Dxaeg8u4JAU7xK8Y5vKULNHVmWYj1Gf91Kv1MN/1m5f8ltJ4Grvs8pA6YSyr3K gMiuTbLrkRURC+V5cRZjg6FxBPiaysLvWDS9aO3Jwv4rydOwbGLXAAwz0uXQKM15xHRe U+7A== X-Gm-Message-State: APjAAAWmOLI+Yk6XCop3jhK8iub3y5rSeana6IqsIIbKTBNERoP8oI9U lAw82I2N4FGHOYtKaQJQs7AcoorxZzInD5KeLIA= X-Google-Smtp-Source: APXvYqzjqi6gy+nWmKiZGJuvebHEyWZIl4WpFMdxUmwID9duy3XBZsQIXGNL0M4KQgN2L6Thj8gT0sfwoc+yR7nKNrs= X-Received: by 2002:adf:f58a:: with SMTP id f10mr48524840wro.105.1577382033786; Thu, 26 Dec 2019 09:40:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Joe Nosay Date: Thu, 26 Dec 2019 12:40:19 -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: 47kHKv6vL1z49TK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Lk4u3QSw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of superbisquit@gmail.com designates 2a00:1450:4864:20::42e 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:c]; 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)[e.2.4.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: (-9.01), 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:40:36 -0000 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" >