LibBSD | powerpc/beatnik does not build on 6-freebsd-14 (#60)

Chris Johns (@chris) gitlab at rtems.org
Tue Oct 7 02:38:56 UTC 2025



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



The `powerpc/beatnik` does not build on the `6-freerbsd-14` branch. The error is:

```
[1664/2432] Compiling linux/drivers/soc/fsl/qbman/qman_test_stash.c
In file included from ../../freebsd/sys/sys/systm.h:683,
                 from ../../rtemsbsd/powerpc/include/linux/slab.h:35,
                 from ../../linux/drivers/soc/fsl/qbman/dpaa_sys.h:35,
                 from ../../linux/drivers/soc/fsl/qbman/qman_priv.h:33,
                 from ../../linux/drivers/soc/fsl/qbman/qman_test.h:31,
                 from ../../linux/drivers/soc/fsl/qbman/qman_test_stash.c:35:
../../freebsd/sys/sys/libkern.h:279:35: error: expected identifier or '(' before '__typeof'
  279 | #define roundup_pow_of_two(n)   ((__typeof(n))1 << order_base_2(n))
      |                                   ^~~~~~~~
../../rtemsbsd/powerpc/include/linux/log2.h:39:1: note: in expansion of macro 'roundup_pow_of_two'
   39 | roundup_pow_of_two(unsigned long x)
      | ^~~~~~~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:279:47: error: expected ')' before numeric constant
  279 | #define roundup_pow_of_two(n)   ((__typeof(n))1 << order_base_2(n))
      |                                               ^
../../rtemsbsd/powerpc/include/linux/log2.h:39:1: note: in expansion of macro 'roundup_pow_of_two'
   39 | roundup_pow_of_two(unsigned long x)
      | ^~~~~~~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:277:35: error: expected identifier or '(' before '__typeof'
  277 | #define rounddown_pow_of_two(n) ((__typeof(n))1 << ilog2(n))
      |                                   ^~~~~~~~
../../rtemsbsd/powerpc/include/linux/log2.h:51:1: note: in expansion of macro 'rounddown_pow_of_two'
   51 | rounddown_pow_of_two(unsigned long x)
      | ^~~~~~~~~~~~~~~~~~~~
../../freebsd/sys/sys/libkern.h:277:47: error: expected ')' before numeric constant
  277 | #define rounddown_pow_of_two(n) ((__typeof(n))1 << ilog2(n))
      |                                               ^
../../rtemsbsd/powerpc/include/linux/log2.h:51:1: note: in expansion of macro 'rounddown_pow_of_two'
   51 | rounddown_pow_of_two(unsigned long x)
      | ^~~~~~~~~~~~~~~~~~~~
```

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251007/d4dd52bb/attachment.htm>


More information about the bugs mailing list