Re: git: 5e04571cf3cf - main - sys/bitset.h: reduce visibility of BIT_* macros

From: Mark Millard via freebsd-current <freebsd-current_at_freebsd.org>
Date: Mon, 06 Dec 2021 22:19:08 UTC
This broke building lang/gcc11 so may be a exp run is appropriate:

In file included from /usr/include/sys/cpuset.h:39,
                 from /usr/include/sched.h:36,
                 from /usr/include/pthread.h:48,
                 from /wrkdirs/usr/ports/lang/gcc11/work/gcc-11.2.0/gcc/jit/libgccjit.c:27:
/usr/include/sys/bitset.h:314:36: error: attempt to use poisoned "malloc"
  314 | #define __BITSET_ALLOC(_s, mt, mf) malloc(__BITSET_SIZE((_s)), mt, (mf))
      |                                    ^
. . .

In file included from /usr/include/sys/cpuset.h:39,
                 from /usr/include/sched.h:36,
                 from /usr/include/pthread.h:48,
                 from /wrkdirs/usr/ports/lang/gcc11/work/gcc-11.2.0/gcc/jit/jit-recording.c:28:
/usr/include/sys/bitset.h:314:36: error: attempt to use poisoned "malloc"
  314 | #define __BITSET_ALLOC(_s, mt, mf) malloc(__BITSET_SIZE((_s)), mt, (mf))
      |                                    ^
. . .
gmake[4]: *** [Makefile:1142: jit/libgccjit.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
In file included from /usr/include/sys/cpuset.h:39,
                 from /usr/include/sched.h:36,
                 from /usr/include/pthread.h:48,
                 from /wrkdirs/usr/ports/lang/gcc11/work/gcc-11.2.0/gcc/jit/jit-playback.c:44:
/usr/include/sys/bitset.h:314:36: error: attempt to use poisoned "malloc"
  314 | #define __BITSET_ALLOC(_s, mt, mf) malloc(__BITSET_SIZE((_s)), mt, (mf))
      |                                    ^
gmake[4]: *** [Makefile:1142: jit/jit-recording.o] Error 1
gmake[4]: *** [Makefile:1142: jit/jit-playback.o] Error 1
rm gcc.pod gfortran.pod
gmake[4]: Leaving directory '/wrkdirs/usr/ports/lang/gcc11/work/.build/gcc'
gmake[3]: *** [Makefile:4817: all-stage2-gcc] Error 2


For reference:

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #24 main-n251362-9f32cb5b1c81-dirty: Sun Dec  5 21:16:30 PST 2021     root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72  arm64 aarch64 1400043 1400043

 ~/fbsd-based-on-what-commit.sh 
branch: main
merge-base: 9bed79e869721b4ca8a15c527db8d40969867c2c
merge-base: CommitDate: 2021-12-06 03:45:47 +0000
9bed79e86972 (HEAD -> main, freebsd/main, freebsd/HEAD) www/drupal9: update to 9.2.10
n567671 (--first-parent --count for merge-base)

My test of building on amd64 is still in progress.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)