build of libbsd for powerpc fails with error: redefinition of 'eieio'

Peter Dufault dufault at hda.com
Tue Jul 16 17:58:13 UTC 2019


I have a build failure with the MVME5500 “beatnik” BSP. Therefore I tried to build the “psim” BSP and have the same failure: the FreeBSD PowerPC “cpufunc.h” and the RTEMS PowerPC “io.h” headers both define static inline "eioeio()" functions.

- RTEMS, libbsd, RSB and the build tools are up-to-date as of this AM.
- Building for arm xilinx_zynq_a9_qemu succeeds.
- I’ll work-around it but I believe I must have something locally screwed up, I can't find any recent changes associated with this.

CONFIGURATION:

# project  configured on Tue Jul 16 12:07:03 2019 by
# waf 2.0.13 (abi 20, python 20705f0 on linux2)
# using ./waf configure --rtems-tools=/opt/flatland/opt/rtems-5/ --rtems=/opt/flatland/opt/rtems-5/ --prefix=/opt/fl
atland/opt/rtems-5/ --rtems-bsps=powerpc/psim


BUILD FAILURE:

[1217/1915] Compiling freebsd/sys/kern/kern_sysctl.c
In file included from ../../freebsd/sys/sys/systm.h:45:0,
                 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.c:35:
../../freebsd/sys/powerpc/include/machine/cpufunc.h:168:1: error: redefinition of 'eieio'
 eieio(void)
 ^~~~~
In file included from /opt/flatland/opt/rtems-5/powerpc-rtems5/psim/lib/include/bsp.h:59:0,
                 from ../../rtemsbsd/include/rtems/bsd/local/opt_dpaa.h:1,
                 from ../../linux/drivers/soc/fsl/qbman/qman.c:3:
/opt/flatland/opt/rtems-5/powerpc-rtems5/psim/lib/include/libcpu/io.h:53:20: note: previous definition of 'eieio' was here
 static inline void eieio(void)
                    ^~~~~

Waf: Leaving directory `/home/dufault/development/rtems/rtems-libbsd/build/powerpc-rtems5-psim-default'
Build failed
 -> task in 'bsd' failed with exit status 1 (run with -v to display more information)
ERROR: Waf configure on rtems-libbsd failed
Zynq dufault at gen6 lou_files]$ 

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering

This email is delivered through the public internet using protocols subject to interception and tampering.



More information about the devel mailing list