Typo in rtems-libbsd/rtems_waf/rtems.py?

Heinz Junkes junkes at fhi-berlin.mpg.de
Wed Jan 18 09:31:26 UTC 2023


ok, my "real" problem is that i can't build rtems-libbsd for rtems 5 anymore:

RTEMS_BSP=beatnik
RTEMS_VERSION=5
RTEMS_ROOT=/home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5
RTEMS_ARCH=powerpc-rtems5

rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST$ git clone https://github.com/RTEMS/rtems-libbsd.git
Cloning into 'rtems-libbsd'...
remote: Enumerating objects: 42896, done.
remote: Counting objects: 100% (2983/2983), done.
remote: Compressing objects: 100% (1006/1006), done.
remote: Total 42896 (delta 1967), reused 2762 (delta 1859), pack-reused 39913
Receiving objects: 100% (42896/42896), 42.95 MiB | 5.47 MiB/s, done.
Resolving deltas: 100% (29323/29323), done.
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST$ cd rtems-libbsd/
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ git checkout ${RTEMS_VERSION}-freebsd-12
Branch '5-freebsd-12' set up to track remote branch '5-freebsd-12' from 'origin'.
Switched to a new branch '5-freebsd-12'
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ git checkout -b if_mve de0badf2c3aea5328936e583c842f58e80e56d62
Switched to a new branch 'if_mve'
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ git submodule init
Submodule 'freebsd-org' (https://github.com/freebsd/freebsd.git) registered for path 'freebsd-org'
Submodule 'rtems_waf' (git://git.rtems.org/rtems_waf.git) registered for path 'rtems_waf'
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ git submodule update rtems_waf
Cloning into '/home/rtems/MVME6100_5_LIBBSD_INST/rtems-libbsd/rtems_waf'...
Submodule path 'rtems_waf': checked out 'ad08908c452c6a9bbb3bf7bbbcc9fc03fe46cc7f'
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ ./waf configure --rtems-version=${RTEMS_VERSION} --prefix=${RTEMS_ROOT} --rtems-bsps=${ARCH}/${RTEMS_BSP} --buildset=buildset/default.ini
Setting top to                           : /home/rtems/MVME6100_5_LIBBSD_INST/rtems-libbsd
Setting out to                           : /home/rtems/MVME6100_5_LIBBSD_INST/rtems-libbsd/build
RTEMS Version                            : 5
Architectures                            : powerpc-rtems5
Board Support Package (BSP)              : powerpc-rtems5-beatnik
Show commands                            : no
Long commands                            : no
Checking for program 'powerpc-rtems5-gcc' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-gcc
Checking for program 'powerpc-rtems5-g++' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-g++
Checking for program 'powerpc-rtems5-gcc' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-gcc
Checking for program 'powerpc-rtems5-ld'  : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ld
Checking for program 'powerpc-rtems5-ar'  : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ar
Checking for program 'powerpc-rtems5-nm'  : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-nm
Checking for program 'powerpc-rtems5-objdump' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-objdump
Checking for program 'powerpc-rtems5-objcopy' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-objcopy
Checking for program 'powerpc-rtems5-readelf' : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-readelf
Checking for program 'powerpc-rtems5-strip'   : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-strip
Checking for program 'powerpc-rtems5-ranlib'  : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ranlib
Checking for program 'rtems-ld'               : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/rtems-ld
Checking for program 'rtems-tld'              : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/rtems-tld
Checking for program 'rtems-syms'             : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/rtems-syms
Checking for program 'rtems-bin2c'            : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/rtems-bin2c
Checking for program 'tar'                    : /usr/bin/tar
Checking for program 'gcc, cc'                : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-gcc
Checking for program 'ar'                     : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ar
Checking for program 'g++, c++'               : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-g++
Checking for program 'ar'                     : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ar
Checking for program 'gas, gcc'               : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-gcc
Checking for program 'ar'                     : /home/rtems/MVME6100_5_LIBBSD_RUN/rtems/5/bin/powerpc-rtems5-ar
Checking for c flags '-MMD'                   : yes
Checking for cxx flags '-MMD'                 : yes
Compiler version (powerpc-rtems5-gcc)         : 7.5.0 20191114 (RTEMS 5, RSB 5.not_released, Newlib 7947581)
Checking for a valid RTEMS BSP installation   : yes
Checking for RTEMS_DEBUG                      : no
Checking for RTEMS_MULTIPROCESSING            : no
Checking for RTEMS_NEWLIB                     : yes
Checking for RTEMS_POSIX_API                  : yes
Checking for RTEMS_SMP                        : no
Checking for RTEMS_NETWORKING                 : no
Checking for header dlfcn.h                   : yes
Checking for header rtems/pci.h               : yes
Configure variant:                            : powerpc-rtems5-beatnik-default
Checking for library debugger                 : no
'configure' finished successfully (0.888s)
rtems at rtems-dev:~/MVME6100_5_LIBBSD_INST/rtems-libbsd$ ./waf
Waf: Entering directory `/home/rtems/MVME6100_5_LIBBSD_INST/rtems-libbsd/build/powerpc-rtems5-beatnik-default'
[1/4] Creating build/powerpc-rtems5-beatnik-default/build-include/rtems/bsd/modules.h
[2/4] Compiling rtemsbsd/rtems/generate_kvm_symbols
[3/4] Compiling testsuite/include/rtems/bsd/test/network-config.h.in
[4/4] Compiling build/powerpc-rtems5-beatnik-default/rtemsbsd/rtems/rtems-kernel-kvm-symbols.c
[   5/2050] Compiling freebsd/contrib/libpcap/scanner.c
[   6/2050] Compiling freebsd/lib/libc/net/nslexer.c
[   7/2050] Compiling freebsd/contrib/libpcap/grammar.c
[   8/2050] Compiling freebsd/lib/libc/net/nsparser.c
[   9/2050] Compiling freebsd/sbin/pfctl/parse.c
[  10/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clsubs.c
[  11/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clcomsubs.c
[  12/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clstate.c
[  13/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clrpcops.c
[  14/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clbio.c
[  15/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clport.c
[  16/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clnfsiod.c
[  17/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clvfsops.c
[  18/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clkdtrace.c
[  19/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clnode.c
[  20/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clvnops.c
[  21/2050] Compiling freebsd/sys/fs/nfsclient/nfs_clkrpc.c
[  22/2050] Compiling freebsd/contrib/expat/lib/xmltok_ns.c
[  23/2050] Compiling freebsd/contrib/expat/lib/xmltok_impl.c
[  24/2050] Compiling freebsd/contrib/expat/lib/xmltok.c
[  25/2050] Compiling freebsd/contrib/expat/lib/xmlrole.c
[  26/2050] Compiling freebsd/contrib/expat/lib/xmlparse.c
[  27/2050] Compiling freebsd/lib/libc/rpc/clnt_vc.c
[  28/2050] Compiling freebsd/usr.bin/netstat/sctp.c
[  29/2050] Compiling freebsd/bin/stty/stty.c
[  30/2050] Compiling freebsd/sbin/pfctl/pfctl_qstats.c
[  31/2050] Compiling freebsd/sbin/pfctl/pfctl_optimize.c
[  32/2050] Compiling freebsd/lib/libc/inet/inet_ntoa.c
[  33/2050] Compiling freebsd/lib/libc/resolv/res_comp.c
[  34/2050] Compiling freebsd/sbin/ifconfig/af_inet.c
[  35/2050] Compiling freebsd/sbin/ifconfig/af_inet6.c
../../freebsd/sys/fs/nfsclient/nfs_clnode.c: In function 'ncl_nget':
../../freebsd/sys/fs/nfsclient/nfs_clnode.c:152:24: error: 'PVFS' undeclared (first use in this function); did you mean 'PVM'?
  lockinit(&np->n_excl, PVFS, "nfsupg", VLKTIMEOUT, LK_NOSHARE |
                        ^~~~
                        PVM
../../freebsd/sys/fs/nfsclient/nfs_clnode.c:152:24: note: each undeclared identifier is reported only once for each function it appears in

../../freebsd/sys/fs/nfsclient/nfs_clport.c: In function 'nfscl_nget':
../../freebsd/sys/fs/nfsclient/nfs_clport.c:242:24: error: 'PVFS' undeclared (first use in this function); did you mean 'PVM'?
  lockinit(&np->n_excl, PVFS, "nfsupg", VLKTIMEOUT, LK_NOSHARE |
                        ^~~~
                        PVM
../../freebsd/sys/fs/nfsclient/nfs_clport.c:242:24: note: each undeclared identifier is reported only once for each function it appears in

In file included from ../../freebsd/sys/fs/nfsclient/nfs_clvfsops.c:47:0:
../../freebsd/sys/fs/nfsclient/nfs_clvfsops.c: In function 'nfs_unmount':
../../freebsd/sys/fs/nfsclient/nfs_clvfsops.c:1744:29: error: 'PVFS' undeclared (first use in this function); did you mean 'PVM'?
   msleep(nmp, &nmp->nm_mtx, PVFS, "nfsfdism", 0);
                             ^
../../freebsd/sys/sys/systm.h:600:39: note: in definition of macro 'msleep'
  _sleep((chan), &(mtx)->lock_object, (pri), (wmesg),  \
                                       ^~~
../../freebsd/sys/fs/nfsclient/nfs_clvfsops.c:1744:29: note: each undeclared identifier is reported only once for each function it appears in
   msleep(nmp, &nmp->nm_mtx, PVFS, "nfsfdism", 0);
                             ^
../../freebsd/sys/sys/systm.h:600:39: note: in definition of macro 'msleep'
  _sleep((chan), &(mtx)->lock_object, (pri), (wmesg),  \
                                       ^~~

In file included from ../../freebsd/sys/fs/nfs/nfsport.h:47:0,
                 from ../../freebsd/sys/fs/nfsclient/nfs_clstate.c:86:
../../freebsd/sys/fs/nfsclient/nfs_clstate.c: In function 'nfscl_cancelreqs':
../../freebsd/sys/fs/nfsclient/nfs_clstate.c:5033:22: error: 'PVFS' undeclared (first use in this function); did you mean 'PVM'?
   tsleep(&non_event, PVFS, "ndscls", hz);
                      ^
../../freebsd/sys/sys/systm.h:625:24: note: in definition of macro 'tsleep'
  _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo),  \
                        ^~~
../../freebsd/sys/fs/nfsclient/nfs_clstate.c:5033:22: note: each undeclared identifier is reported only once for each function it appears in
   tsleep(&non_event, PVFS, "ndscls", hz);
                      ^
../../freebsd/sys/sys/systm.h:625:24: note: in definition of macro 'tsleep'
  _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo),  \
                        ^~~

In file included from ../../freebsd/sys/fs/nfs/nfsport.h:47:0,
                 from ../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c:52:
../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c: In function 'nfscl_doiods':
../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c:5840:26: error: 'PVFS' undeclared (first use in this function); did you mean 'PVM'?
      tsleep(&tdrpc->tsk, PVFS, "clrpcio",
                          ^
../../freebsd/sys/sys/systm.h:625:24: note: in definition of macro 'tsleep'
  _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo),  \
                        ^~~
../../freebsd/sys/fs/nfsclient/nfs_clrpcops.c:5840:26: note: each undeclared identifier is reported only once for each function it appears in
      tsleep(&tdrpc->tsk, PVFS, "clrpcio",
                          ^
../../freebsd/sys/sys/systm.h:625:24: note: in definition of macro 'tsleep'
  _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo),  \
                        ^~~

Waf: Leaving directory `/home/rtems/MVME6100_5_LIBBSD_INST/rtems-libbsd/build/powerpc-rtems5-beatnik-default'
Build failed
 -> task in 'objs01' failed with exit status 1 (run with -v to display more information)
 -> task in 'objs01' failed with exit status 1 (run with -v to display more information)
 -> task in 'objs01' failed with exit status 1 (run with -v to display more information)
 -> task in 'objs01' failed with exit status 1 (run with -v to display more information)
 -> task in 'objs01' failed with exit status 1 (run with -v to display more information)


Heinz

> On 18. Jan 2023, at 08:03, Sebastian Huber <sebastian.huber at embedded-brains.de> wrote:
> 
> On 17.01.23 21:13, Heinz Junkes wrote:
>> rtems at rtems-dev:~/MVME6100_6_INST/kernel$ ./waf bsp_defaults --rtems-bsps=powerpc/beatnik > config.ini
> 
> If you just want to build a BSP with default values, you should simply use:
> 
> [powerpc/beatnik]
> 
> -- 
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list