Chris Johns created an issue: 
https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/80



Adding `--freebsd-options=invariants` to libbsd's configure does not build:

```
In file included from ../../freebsd/sys/sys/systm.h:44,
                 from ../../freebsd/sys/sys/mbuf.h:41,
                 from ../../rtemsbsd/rtems/rtems-bsd-cxx.cc:49:
../../freebsd/sys/sys/libkern.h: In function 'u_char bcd2bin(int)':
../../freebsd/sys/sys/kassert.h:129:17: error: 'kassert_panic' was not declared 
in this scope
  129 |                 kassert_panic msg;                                      
\
      |                 ^~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:65:9: note: in expansion of macro 'KASSERT'
   65 |         KASSERT(bcd >= 0 && bcd < LIBKERN_LEN_BCD2BIN,
      |         ^~~~~~~
../../freebsd/sys/sys/libkern.h: In function 'u_char bin2bcd(int)':
../../freebsd/sys/sys/kassert.h:129:17: error: 'kassert_panic' was not declared 
in this scope
  129 |                 kassert_panic msg;                                      
\
      |                 ^~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:74:9: note: in expansion of macro 'KASSERT'
   74 |         KASSERT(bin >= 0 && bin < LIBKERN_LEN_BIN2BCD,
      |         ^~~~~~~
../../freebsd/sys/sys/libkern.h: In function 'char hex2ascii(int)':
../../freebsd/sys/sys/kassert.h:129:17: error: 'kassert_panic' was not declared 
in this scope
  129 |                 kassert_panic msg;                                      
\
      |                 ^~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:83:9: note: in expansion of macro 'KASSERT'
   83 |         KASSERT(hex >= 0 && hex < LIBKERN_LEN_HEX2ASCII,
      |         ^~~~~~~
../../freebsd/sys/sys/libkern.h: In function 'int ilog2_int(int)':
../../freebsd/sys/sys/kassert.h:129:17: error: 'kassert_panic' was not declared 
in this scope
  129 |                 kassert_panic msg;                                      
\
      |                 ^~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:242:9: note: in expansion of macro 'KASSERT'
  242 |         KASSERT(n != 0, ("ilog argument must be nonzero"));
      |         ^~~~~~~
../../freebsd/sys/sys/libkern.h: In function 'int ilog2_long(long int)':
../../freebsd/sys/sys/kassert.h:129:17: error: 'kassert_panic' was not declared 
in this scope
  129 |                 kassert_panic msg;                                      
\
      |                 ^~~~~~~~~~~~~

[snip]
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/80
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to