Trouble with rtems-libbsd
Jeff Mayes
Jeff.Mayes at OARcorp.com
Fri Sep 14 14:08:44 UTC 2018
Hi
Just reporting as FYI. I'm building for powerpc, but it looks like
it's building some ARM components too and failing.
Thanks in advance!
Jeff
Here's my rtems configure, which seems to work:
# ../rtems/configure --prefix=/home/tester/rtems/kernel/ppc \
--target=powerpc-rtems5 --enable-rtemsbsp=mcp750 \
--enable-posix --disable-networking
Then, pulled rtems-libbsd and ran the submodule commands.
Here's my waf configure, which seems to work too:
# waf configure
--prefix=/home/tester/rtems/kernel/ppc \
--rtems=/home/tester/rtems/kernel/ppc \
--rtems-tools=/home/tester/rtems/tools \
--rtems-bsps=powerpc/mcp750
But then running waf fails with this:
# waf
...
[1328/2017] Compiling freebsd/contrib/tcpdump/util-print.c
[1329/2017] Compiling freebsd/sys/arm/at91/at91_mci.c
In file included from /home/tester/rtems/rtems-libbsd/freebsd/sys/sys/systm.h:42:0,
from ../../freebsd/sys/arm/at91/at91_mci.c:36:
/home/tester/rtems/rtems-libbsd/freebsd/sys/powerpc/include/machine/cpufunc.h:166:1: error: redefinition of 'eieio'
eieio(void)
^~~~~
In file included from /home/tester/rtems/kernel/ppc/powerpc-rtems5/mcp750/lib/include/bsp.h:14:0,
from /home/tester/rtems/kernel/ppc/powerpc-rtems5/mcp750/lib/include/bsp/fdt.h:18,
from /home/tester/rtems/rtems-libbsd/rtemsbsd/include/rtems/bsd/local/opt_platform.h:1,
from ../../freebsd/sys/arm/at91/at91_mci.c:30:
/home/tester/rtems/kernel/ppc/powerpc-rtems5/mcp750/lib/include/libcpu/io.h:53:20: note: previous definition of 'eieio' was here
static inline void eieio(void)
^~~~~
Waf: Leaving directory `/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default'
Build failed
-> task in 'bsd' failed (exit status 1):
{task 139731466652368: c at91_mci.c -> at91_mci.c.136.o}
['/home/tester/rtems/tools/bin/powerpc-rtems5-gcc', '-qrtems', '-B/home/tester/rtems/kernel/ppc/powerpc-rtems5/lib/', '-B/home/tester/rtems/kernel/ppc/powerpc-rtems5/mcp750/lib/', '--specs', 'bsp_specs', '-mcpu=750', '-mcpu=750', '-mmultiple', '-mmultiple', '-mstring', '-mstring', '-mstrict-align', '-mstrict-align', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '-O2', '-g', '-fno-strict-aliasing', '-ffreestanding', '-fno-common', '-w', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/rtemsbsd/powerpc/include', '-I/home/tester/rtems/rtems-libbsd/rtemsbsd/powerpc/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/sys/powerpc/include', '-I/home/tester/rtems/rtems-libbsd/freebsd/sys/powerpc/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/rtemsbsd/include', '-I/home/tester/rtems/rtems-libbsd/rtemsbsd/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/sys', '-I/home/tester/rtems/rtems-libbsd/freebsd/sys', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/sys/contrib/pf', '-I/home/tester/rtems/rtems-libbsd/freebsd/sys/contrib/pf', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/crypto', '-I/home/tester/rtems/rtems-libbsd/freebsd/crypto', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/sys/net', '-I/home/tester/rtems/rtems-libbsd/freebsd/sys/net', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/include', '-I/home/tester/rtems/rtems-libbsd/freebsd/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libbsdstat', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libbsdstat', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libc/include', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libc/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libc/isc/include', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libc/isc/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libc/resolv', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libc/resolv', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libutil', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libutil', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libkvm', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libkvm', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/lib/libmemstat', '-I/home/tester/rtems/rtems-libbsd/freebsd/lib/libmemstat', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/contrib/expat/lib', '-I/home/tester/rtems/rtems-libbsd/freebsd/contrib/expat/lib', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/contrib/libpcap', '-I/home/tester/rtems/rtems-libbsd/freebsd/contrib/libpcap', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/contrib/libxo', '-I/home/tester/rtems/rtems-libbsd/freebsd/contrib/libxo', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/ipsec-tools/src/libipsec', '-I/home/tester/rtems/rtems-libbsd/ipsec-tools/src/libipsec', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/linux/include', '-I/home/tester/rtems/rtems-libbsd/linux/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/linux/drivers/net/ethernet/freescale/fman', '-I/home/tester/rtems/rtems-libbsd/linux/drivers/net/ethernet/freescale/fman', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/rtemsbsd/sys', '-I/home/tester/rtems/rtems-libbsd/rtemsbsd/sys', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/mDNSResponder/mDNSCore', '-I/home/tester/rtems/rtems-libbsd/mDNSResponder/mDNSCore', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/mDNSResponder/mDNSShared', '-I/home/tester/rtems/rtems-libbsd/mDNSResponder/mDNSShared', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/mDNSResponder/mDNSPosix', '-I/home/tester/rtems/rtems-libbsd/mDNSResponder/mDNSPosix', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/testsuite/include', '-I/home/tester/rtems/rtems-libbsd/testsuite/include', '-I/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/build-include', '-I/home/tester/rtems/rtems-libbsd/build-include', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1', '-DHAVE_DLFCN_H=1', '-DHAVE_RTEMS_PCI_H=1', '-DHAVE_RTEMS_RTEMS_DEBUGGER_H=1', '../../freebsd/sys/arm/at91/at91_mci.c', '-c', '-o', '/home/tester/rtems/rtems-libbsd/build/powerpc-rtems5-mcp750-default/freebsd/sys/arm/at91/at91_mci.c.136.o']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180914/30185e0a/attachment.html>
More information about the devel
mailing list