build 32-bit binary on powerpc64

Justin Hibbits chmeeedalf at gmail.com
Thu Oct 10 16:33:49 UTC 2019


On Thu, 10 Oct 2019 15:05:01 +0100
Kevin Smallman <pipeline79 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe at 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


More information about the freebsd-ppc mailing list