Re: netbsd-9/amd64 build mixes 32 bit objects

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Sat, Mar 12, 2022 at 02:09:03AM +0000, Emmanuel Dreyfus wrote:
> On Fri, Mar 11, 2022 at 05:41:22PM +0100, Martin Husemann wrote:
> > This file should have been build with -m32 too - but apparently wasn't.
> 
> Should it? I am building on amd64 for amd64, and this is a just checked
> out tree, with no leftover.

Yes, /usr/lib/lib/i386 are 32bit compat files, needed to build other things
with -m32:

On my amd64 machine:

 > file /usr/lib/i386/crti.o 
/usr/lib/i386/crti.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), for NetBSD 9.99.94, not stripped

vs.:

 > file /usr/lib/crti.o 
/usr/lib/crti.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), for NetBSD 9.99.94, not stripped


Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.