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.


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

Reply via email to