Opened on 02/26/19 at 15:57:10
Last modified on 02/27/19 at 23:45:53
#3709 new defect
rtems-libbsd build failure under Python 2
Reported by: | Jonathan Brandmeyer | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | build | Version: | |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description (last modified by Chris Johns)
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.
Change History (2)
comment:1 Changed on 02/26/19 at 16:30:26 by Jonathan Brandmeyer
comment:2 Changed on 02/27/19 at 23:45:53 by Chris Johns
Description: | modified (diff) |
---|
Thank you. I am still considering a way to reproduce this locally.
Reader beware: two forward slashes together are interpreted by Trac as an italic formatting request. The error text is
Could not create the directory ///h
with three forward slashes (backticks work for literally quoting the machine-output text).