Re: Issues with native build of -10 on VAX

Hans Rosenfeld <[email protected]>
Newsgroups gmane.os.netbsd.ports.vax
Message-ID <[email protected]>
Hi,

On Thu, Nov 23, 2023 at 03:11:03PM +0900, Rin Okuyama wrote:
> This should be because:
> (1) vax natively supports 64-bit integers, but
> (2) 64-bit int support for binutils is not explicitly enabled for vax
> 
> As a result, this can be assembled correctly only if host is LP64.
> 
> This patch for netbsd-10 may resolve the problem: (compile test only)
> https://gist.github.com/rokuyama/9e67b79674a1bb32db0a8f8c9fbe0f15

I understand this patch has been integrated in HEAD and pulled up to -10
a while back. I've updated my src tree, there remains a local diff
against config.bfd which isn't upstream:


Index: external/gpl3/binutils/dist/bfd/config.bfd
===================================================================
RCS file: /cvsroot/src/external/gpl3/binutils/dist/bfd/config.bfd,v
retrieving revision 1.34.2.1
diff -u -p -r1.34.2.1 config.bfd
--- external/gpl3/binutils/dist/bfd/config.bfd  14 Dec 2023 17:19:59 -0000      1.34.2.1
+++ external/gpl3/binutils/dist/bfd/config.bfd  4 Jan 2024 09:37:30 -0000
@@ -1375,6 +1375,7 @@ case "${targ}" in
   vax-*-netbsdelf*)
     targ_defvec=vax_elf32_vec
     targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
+    want64=true
     ;;
 
   vax-*-netbsdaout* | vax-*-netbsd*)


Is this line no longer needed, or was this overlooked?


Hans


-- 
%SYSTEM-F-ANARCHISM, The operating system has been overthrown
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.