[RTEMS Project] #3709: rtems-libbsd build failure under Python 2

RTEMS trac trac at rtems.org
Wed Feb 27 23:45:53 UTC 2019


#3709: rtems-libbsd build failure under Python 2
---------------------------------+---------------------
 Reporter:  Jonathan Brandmeyer  |       Owner:  (none)
     Type:  defect               |      Status:  new
 Priority:  normal               |   Milestone:
Component:  build                |     Version:
 Severity:  normal               |  Resolution:
 Keywords:                       |  Blocked By:
 Blocking:                       |
---------------------------------+---------------------

Old description:

> 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.

New description:

 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.

--

Comment (by Chris Johns):

 Thank you. I am still considering a way to reproduce this locally.

--
Ticket URL: <http://devel.rtems.org/ticket/3709#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list