<div dir="ltr">If you really meant the master, try 6-freebsd12 instead. <div><br></div><div>Branch names are complicated in libbsd because they need to reflect RTEMS and FreeBSD version.</div><div><br></div><div>I'm not really sure how to make this any less confusing. :(</div><div><br></div><div>--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 18, 2020 at 3:01 PM Karel Gardas <<a href="mailto:karel.gardas@centrum.cz">karel.gardas@centrum.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello,<br>
<br>
I've just tried to build libbsd master branch against the pc686 BSP<br>
build from rtems master and this still does not fly and fails with:<br>
<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(uipc_mbuf.c.25.o): in function `m_unmappedtouio':<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1813:<br>
undefined reference to `PHYS_TO_VM_PAGE'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1814:<br>
undefined reference to `uiomove_fromphys'<br>
collect2: error: ld returned 1 exit status<br>
<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(uipc_mbuf.c.25.o): in function `m_unmappedtouio':<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1813:<br>
undefined reference to `PHYS_TO_VM_PAGE'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1814:<br>
undefined reference to `uiomove_fromphys'<br>
collect2: error: ld returned 1 exit status<br>
<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
testsuite/arphole/test_main.c.54.o:/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../rtemsbsd/include/bsp/nexus-devices.h:165:<br>
undefined reference to `_bsd_lem_pcimodule_sys_init'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(uipc_mbuf.c.25.o): in function `m_unmappedtouio':<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1813:<br>
undefined reference to `PHYS_TO_VM_PAGE'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/kern/uipc_mbuf.c:1814:<br>
undefined reference to `uiomove_fromphys'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(iflib.c.25.o): in function `iflib_pseudo_register':<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/net/iflib.c:4857:<br>
undefined reference to `IFDI_CLONEATTACH'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
/export/home/karel/git/rtems/rtems-libbsd/build/i386-rtems6-pc686-everything/../../freebsd/sys/net/iflib.c:4983:<br>
undefined reference to `IFDI_RX_CLSET'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(iflib.c.25.o):(.rodata+0x190): undefined reference to<br>
`noop_attach'<br>
/export/home/karel/sfw/rtems/6-tools-core2/lib/gcc/i386-rtems6/10.2.1/../../../../i386-rtems6/bin/ld:<br>
./libbsd.a(iflib.c.25.o):(.rodata+0x198): undefined reference to<br>
`iflib_pseudo_detach'<br>
collect2: error: ld returned 1 exit status<br>
<br>
<br>
Any help or fix for this highly appreciated!<br>
<br>
Thanks,<br>
Karel<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>