Date: Thu, 10 Oct 2019 11:33:42 -0500 From: Justin Hibbits <chmeeedalf@gmail.com> To: freebsd-ppc@freebsd.org Subject: Re: build 32-bit binary on powerpc64 Message-ID: <20191010113342.1e29a2fb@ralga.knownspace> In-Reply-To: <CAED5WM9pS-aDKjGxetoD5KehW4ByVp6ihzKDadiDWPoA%2BXpBcA@mail.gmail.com> References: <CAED5WM9pS-aDKjGxetoD5KehW4ByVp6ihzKDadiDWPoA%2BXpBcA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 10 Oct 2019 15:05:01 +0100 Kevin Smallman <pipeline79@gmail.com> wrote: > Hi, > There's one package I'd like to build in the ports tree that is 32-bit > only, but I'm running the 64-bit version of FreeBSD powerpc on my old > imac g5. If I go to the port's directory and just do 'make install' > it naturally comes up with the error - 'This package is for i386 only, > you are running powerpc64'. > Interestingly, this program and it's dependencies - OLVWM/Xview, etc - > definitely are available for PowerPC 32 elsewhere, so I'm not sure > about the 'i386' part of that message. > I assume I could run a 32-bit powerpc binary because the 'choosing 32 > or 64-bit powerpc' part of the wiki says so. > Is there some way I could tell the ports system to build this for > powerpc32 this one time? Or, failing that, grab a binary from > elsewhere and install it with pkg_add or similar? > I think I could find a NetBSD .tgz package for it, but would that > work? > > Kevin. > _______________________________________________ > 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" You can build a powerpc (32-bit) binary on FreeBSD/powerpc64 by passing '-m32' to the compiler. I can't say how to do it in the ports build environment, but you can do it manually. You could also create a 32-bit poudriere jail and build in there. - Justin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191010113342.1e29a2fb>