New build system ready for testing
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Sep 14 12:23:06 UTC 2020
Hello Sebastian,
I get a linker error when I try to build libbsd for BBB (with a buildset that builds everything but netipsec):
-----
/home/EB/christian_m/Projekte/rtems-bbb/install/rtems/6/lib/gcc/arm-rtems6/10.2.1/../../../../arm-rtems6/bin/ld: ./libbsd.a(uipc_mbuf.c.20.o): in function `m_unmappedtouio':
/home/EB/christian_m/Projekte/rtems-bbb/libs/rtems-libbsd/build/arm-rtems6-beagleboneblack-noIPSec/../../freebsd/sys/kern/uipc_mbuf.c:1813: undefined reference to `PHYS_TO_VM_PAGE'
/home/EB/christian_m/Projekte/rtems-bbb/install/rtems/6/lib/gcc/arm-rtems6/10.2.1/../../../../arm-rtems6/bin/ld: /home/EB/christian_m/Projekte/rtems-bbb/libs/rtems-libbsd/build/arm-rtems6-beagleboneblack-noIPSec/../../freebsd/sys/kern/uipc_mbuf.c:1814: undefined reference to `uiomove_fromphys'
collect2: error: ld returned 1 exit status
-----
Configure line for libbsd is:
./waf configure \
--prefix=/home/EB/christian_m/Projekte/rtems-bbb//install/rtems/6 \
--rtems-bsps=arm/beagleboneblack \
--buildset=/home/EB/christian_m/Projekte/rtems-bbb//build/src/noipsec.ini \
--enable-warnings \
--optimization=2 \
--rtems-version=6
Adding your patch from ages ago to libbsd works to solve that:
https://gitlab.com/c-mauderer/rtems-libbsd/-/commit/c9474c0b228d91dff098d617234842d56af3c4d7.patch
But you haven't applied it to the libbsd master. So I assume that there is a better workaround for that problem? What's the correct solution?
Best regards
Christian
On 14/09/2020 09:07, Sebastian Huber wrote:
> Hello,
>
> I checked in the new build system today. Now is a good time to test your
> favourite BSP if it still works. You find the user oriented
> documentation of build system here:
>
> https://docs.rtems.org/branches/master/user/bld/index.html
>
> The documentation for RTEMS maintainers is here:
>
> https://docs.rtems.org/branches/master/eng/build-system.html
>
> How to check the new build system for a particular BSP?
>
> 1. Build the BSP with all tests enabled.
>
> 2. Run the tests and compare the results with the old build system.
> Ideally use the RTEMS Tester to run the tests and report them to the
> RTEMS Project.
>
> 3. Check if all BSP options are available (./waf bsp_defaults). Check
> the type and values of the BSP options.
>
> 4. Check the linker command file.
>
> 5. Check the compiler machine flags.
>
> 6. Install the BSP and build your third-party libraries and applications
> with it.
>
--
--------------------------------------------
embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.mauderer at embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax: +49-89-18 94 741 - 08
PGP: Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list