LibBSD | rtems-libbsd build failure under Python 2 (#30)
Trac Migrate (@tracmigrate)
gitlab at rtems.org
Fri Jan 31 18:27:56 UTC 2025
Trac Migrate created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/30
Assignee: Trac Migrate
Original author: jbrandmeyer-piq
Waf was unable to build rtems-libbsd using the default python. Executing it with Python 3 succeeded. Full reproduction details follow, but the summary is that running the build step with `./waf` fails immediately with the error `Could not create the directory ///h`. Running configuration and build with python 3 succeeds.
Host operating system is Debian Stretch
/usr/bin/python is 2.7.13
/usr/bin/python3 is 3.5.5
Perhaps this is Unicode-specific? `locale` reports:
```
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
```
Reproduction:
Fresh git checkouts of rtems, rtems-libbsd, and rtems-source-builder, all under `~/src`, all at master, with the following sha:
```
rtems-source-builder: 38241392a4f96da
rtems: 7abc497b6c763c
rtems-libbsd: 5432c6bed37fa26a
```
Build the rtems toolchain, from `rtems-source-builder/rtems`, executed:
```
../sb-set-builder --prefix=$HOME/Programs/rtems_5 --with-fortran --with-lto 5/rtems-arm
```
Rebuild the rtems build scripts. With `$HOME/Programs/rtems_5/bin` in the `PATH`, in the `cwd` of `~/src/rtems`:
```
./bootstrap -c
$HOME/src/rtems-source-builder/source-buildersb-bootstrap
```
Create a separate build directory `~/src/build-rtems-zynq`, `cd` into it and build rtems with:
```
../rtems/configure --prefix=$HOME/Programs/rtems_5 --disable-networking --enable-cxx --enable-smp --target=arm-rtems5 --enable-posix --enable-rtemsbsp=xilinx_zynq_zedboard
make -j<many>
```
Configure rtems-libbsd. In a `pwd` of `~/src/rtems-libbsd`:
```
git submodule init
git submodule update rtems_waf
./waf configure --prefix=$HOME/Programs/rtems_5 \
--rtems-bsps=arm/xilinx_zynq_zedboard \
--buildset=buildset/default.ini
./waf
```
Now the bug: Configuration appears to succeed. However, subsequent execution of waf all by itself immediately fails with the error "Could not create the directory ///h".
The sequence:
```
python3 ./waf configure --prefix=$HOME/Programs/rtems_5 \
--rtems-bsps=arm/xilinx_zynq_zedboard \
--buildset=buildset/default.ini
python3 ./waf
```
succeeds.
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/30
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250131/3cd6b500/attachment-0001.htm>
More information about the bugs
mailing list