From owner-freebsd-ppc@freebsd.org Thu Dec 26 17:46:32 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 A929B1D5DAA for ; Thu, 26 Dec 2019 17:46:32 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 47kHSl6ZCkz49sK for ; Thu, 26 Dec 2019 17:46:31 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: by mail-wr1-x42f.google.com with SMTP id c14so24161899wrn.7 for ; Thu, 26 Dec 2019 09:46: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=CGuLv3z11AJ6fG/YlpyGrc8THOufEy0zeWTSUsT3cfM=; b=tklaS6ERMHpbarAJ4FkHpJQM80jXjzYRlM5VjDISNRFSd18lJNOuTVqeVghMZRywoX zoZSlzSOAxFm090FUvt/KLS3/5kyNw/n3/Y4xG2GWNEu+xmPmZDNt6ajV15GJpIAKZFU AJyHYXG1GdXu9rCLWmwKLrCZOzeOUImBX7b4kzmQj+5UtYmJsBGJ8xeoXDNiI9afhWPQ lpmnuF1yAhZXLc3Hk68wrjKUxn0XzCrxFTugpmG6jrHBVyOrPH91m38m3GajxHlzYS29 sious+AfLLI8M8/T3MtOLRCNhkguRH+GMw/aYQzSRlzNcZa6bIQ1CVwAZLfHFNp+L3fo QWcA== 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=CGuLv3z11AJ6fG/YlpyGrc8THOufEy0zeWTSUsT3cfM=; b=G1CJ5ivhNtb+FnJBFQrVB4BuXJp+C6OFDdR0mhDvHRkLfxT01dySPn+B7YCieAmKaf olRxbgXI/WQ9jobjC4Uka2DZs7ofewsAgh9ogqhijLyQNuT4F00NilI4tZN6FSSD7mRS xPLC0hky/fAQJicFA63FrPqN/4FMpAPhb+PibEd+Sd+WEtRy9dJhPgddULLaFrq/UUa+ jNHvpMzz7YpxraAt6TApdJRky0TGu5LGbu7JpGr1CzCQs7K5f/QtyHX5lg9xPAV3KVof OxXWB1V+w70VlMGx4b6NtbeA0ALnMplaLoVU8kxSGZqdBbRAjJd3OSnYi8tfsx++oYQR fuHA== X-Gm-Message-State: APjAAAUT59wscOzTfhVA9bO3mXgAIOA5A0nWcd1cjn5oBq17YgVylslE ThzV4H89Ljd6QKm3VXNHuwqFTxxj/9gbwZaJbZ8FfQ== X-Google-Smtp-Source: APXvYqzHyKZzKLB9MIa7zwEbQ/KU0LVw/IkFytsPptxvZvD5mgODgZXCkSB82si6SSn9Jw/2eIuLgDOjNn5zqcYdAo8= X-Received: by 2002:adf:f58a:: with SMTP id f10mr48542431wro.105.1577382390325; Thu, 26 Dec 2019 09:46:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Joe Nosay Date: Thu, 26 Dec 2019 12:46: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: 47kHSl6ZCkz49sK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=tklaS6ER; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of superbisquit@gmail.com designates 2a00:1450:4864:20::42f 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)[f.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.06), 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:46:32 -0000 On Thu, Dec 26, 2019 at 12:44 PM Joe Nosay wrote: > 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 < >> 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 -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" >>> >> Apologies for the top posting. My mistake.