breakage at usr.sbin/jail/Makefile

From: Pete Wright <pete_at_nomadlogic.org>
Date: Wed, 20 Nov 2019 19:57:57 -0800
Hello,
looks like some of the recent commits to usr.sbin/jail/Makefile has 
broken CURRENT.  I am getting this error when attempting a buildworld:

===> usr.sbin/jail (cleandir)
make[4]: "/usr/home/pete/git/freebsd/usr.sbin/jail/Makefile" line 21: 
Malformed conditional (${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv")
make[4]: Fatal errors encountered -- cannot continue
make[4]: stopped in /usr/home/pete/git/freebsd/usr.sbin/jail
*** [cleandir_subdir_usr.sbin/jail] Error code 1


here's the code in question:
  18 # workaround for GNU ld (GNU Binutils) 2.33.1:
  19 #   relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
  20 # https://bugs.freebsd.org/242109
  21 .if ${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv"
  22 CFLAGS+=-Wl,--no-relax
  23 .endif


looks like Ed Maste caught this already in the 
https://bugs.freebsd.org/242109 but wanted to flag it here as well in 
case anyone else runs into this in the hopes it saves some debugging time :)

-p

-- 
Pete Wright
pete_at_nomadlogic.org
_at_nomadlogicLA
Received on Thu Nov 21 2019 - 02:58:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC