tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: amd64 kernel, i386 userland



> times and the only snags I've run into are that very old i386 NetBSD-0.x
> binaries won't run and there is a compatibility bug in the socket code
> whereby 32-bit programs can't use local sockets to talk to other programs
> via AF_LOCAL sockets.

are there PRs for these problems?

>       Other than those two items, I'm running machines with amd64 under
> NetBSD-5.x with 64GB, 32GB and others with equally sized memory footprints
> that could never be utilized under NetBSD/i386.
>       The last caveat is that in order to build and install packages for
> these systems, one must build the package on a native I386 platform and
> then pkg_add(1) the binary package to the running AMD64 hybrid environment.
>  You'll get warnings about incorrect platforms, but it works.

actually, you might be able to simply get away with building
packages with a specific mk.conf.  this is my /etc/mk.conf32:

---
WRKOBJDIR?=         /var/obj/pkgsrc32

CFLAGS+=-m32
LDFLAGS+=-Wl,-m,elf_i386

.include "/etc/mk.conf"

LOCALBASE=/usr/pkg32
---

for my amd64 box.


.mrg.


Home | Main Index | Thread Index | Old Index