[GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes
Mritunjay Sharma
mritunjaysharma394 at gmail.com
Wed Aug 26 20:13:03 UTC 2020
On Wed, Aug 26, 2020 at 6:01 AM Chris Johns <chrisj at rtems.org> wrote:
> On 26/8/20 8:48 am, Mritunjay Sharma wrote:
> > First of all, Apologies for the little delay in response. I was actually
> a
> > little stuck with assignments in classes.
>
> Thanks for letting us know. You will need to make up the lost time somehow.
Yes, I will make surely make sure of it.
> There's one problem although, while building using:
> > `./source-builder/sb-set-builder --with-rtems-bsp="xilinx_zynq_a9_qemu"
> > --log=log_epics epics/epics-base --trace
> --prefix=$HOME/development/rtems/5-arm
> > --host=arm-rtems5
> > `
> > The EPICS is building perfectly fine but the Buildset fails with the
> following
> > error:
> >
> > `cleaning: epics-base-7.0-arm-rtems5-1
> > error: copying tree (4):
> >
>
> /home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000
> > ->
> >
>
> /home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base:
> > [Errno 2] No such file or directory:
> >
>
> '/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000'
> > Build Set: Time 0:02:57.099708
> > Build FAILED
> > `
> > I am not sure what it is and it was not encountered earlier?
> >
>
> You need to take a look at the log and the directories left after the
> build in
> the build tree. The names used need to match up or the RSB will not be
> able to
> find the installed tree to copy to the prefix.
>
> Note, most packages support the `DESTDIR=` make option to `make install` to
> control installing to a location that is not the specified prefix. The RSB
> does
> this to stage packages that form part of a vertical stack.
>
Hi Chris,
I tried to debug this with the help of trace file and what you suggested
above. I still haven't been successful in it.
With RSB 5 branch when sb-builder was available, the EPICS build was
running successfully using RSB recipe. However, in the RSB master,
sb-builder is no longer available and I used sb-set-builder to build EPICS.
I used this command:
`../source-builder/sb-set-builder --with-rtems-bsp="xilinx_zynq_a9_qemu"
--log=log_epics epics/epics-base --trace
--prefix=$HOME/development/rtems/5-arm
--with-tools=$HOME/development/rtems/5-arm --host=arm-rtems5
`
This gave me the following error again and again
cleaning: epics-base-7.0-arm-rtems5-1
error: copying tree (4):
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000
->
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base:
[Errno 2] No such file or directory:
'/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000'
Build Set: Time 0:02:52.146050
Build FAILED
`
For your reference, Below is the last part of the log file. Please see if
you can help me out and tell me if you want me to share any other details
`cleaning: epics-base-7.0-arm-rtems5-1
run: /bin/sh -ex
/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1/do-clean
exe: shell: /bin/sh -ex
/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1/do-clean
exe: /bin/sh -ex
/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1/do-clean
+ export
SB_ORIG_PATH=/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ SB_PREFIX=/home/mritunjay/development/rtems/5-arm
+ echo /home/mritunjay/development/rtems/5-arm
+ /bin/sed -e s/^\///
+ SB_PREFIX_CLEAN=home/mritunjay/development/rtems/5-arm
+ SB_SOURCE_DIR=/home/mritunjay/development/rtems/src/rsb/rtems/sources
+
SB_BUILD_DIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1
+
SB_HOST_CPPFLAGS=-I/home/mritunjay/development/rtems/5-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/include
+ SB_HOST_CFLAGS=-qrtems
-B/home/mritunjay/development/rtems/5-arm/arm-rtems5/lib/
-B/home/mritunjay/development/rtems/5-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/
--specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
-mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections
+ SB_HOST_CXXFLAGS=-qrtems
-B/home/mritunjay/development/rtems/5-arm/arm-rtems5/lib/
-B/home/mritunjay/development/rtems/5-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/
--specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
-mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections
+ echo -qrtems -B/home/mritunjay/development/rtems/5-arm/arm-rtems5/lib/
-B/home/mritunjay/development/rtems/5-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib/
--specs bsp_specs -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard
-mtune=cortex-a9 -O0 -g -ffunction-sections -fdata-sections
+ awk {for (i=1;i<NF;++i) if ($i ~ /\-m/) printf("%s ",$i);}
+
SB_HOST_LDFLAGS=-L/home/mritunjay/development/rtems/5-arm/arm-rtems5/xilinx_zynq_a9_qemu/lib
-march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a9
-Wl,--gc-sections
-L/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/lib
+ SB_HOST_LIBS=-lbsd -lm -lz -lrtemsdefaultconfig
+ SB_BUILD_CFLAGS=-O2 -g -pipe
-I/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/include
+ SB_BUILD_CXXFLAGS=-O2 -g -pipe
-I/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/include
+ SB_BUILD_LDFLAGS=
-L/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/lib
+ SB_BUILD_LBS=
+ SB_CFLAGS=-O2 -g -pipe
-I/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/include
+ SB_CXXFLAGS=-O2 -g -pipe
-I/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/include
+ SB_ARCH=arm
+ SB_OS=linux
+ export SB_SOURCE_DIR SB_BUILD_DIR SB_ARCH SB_OS
+ export SB_HOST_CPPFLAGS SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS
SB_HOST_LIBS
+ export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS SB_BUILD_LIBS
+ export SB_CFLAGS SB_CXXFLAGS
+ SB_DOC_DIR=/home/mritunjay/development/rtems/5-arm/share/doc
+ export SB_DOC_DIR
+ SB_PACKAGE_NAME=epics-base-7.0-arm-rtems5-1
+ SB_PACKAGE_BUILDNAME=epics-base-7.0-arm-rtems5-1
+ SB_PACKAGE_VERSION=7.0
+ SB_PACKAGE_RELEASE=1
+ export SB_PACKAGE_NAME SB_PACKAGE_VERSION SB_PACKAGE_RELEASE
+ export SB_PREFIX
+
SB_BUILD_DIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1
+
SB_BUILD_ROOT=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000
+
SB_BUILD_ROOT_BINDIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000/home/mritunjay/development/rtems/5-arm/bin
+ export SB_BUILD_ROOT SB_BUILD_DIR SB_BUILD_ROOT_BINDIR
+
SB_BUILD_CXC_DIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1-cxc
+
SB_BUILD_CXC_ROOT=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000-cxc
+
SB_BUILD_CXC_ROOT_BINDIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000-cxc/home/mritunjay/development/rtems/5-arm/bin
+ export SB_BUILD_CXC_ROOT SB_BUILD_CXC_DIR SB_BUILD_CXC_ROOT_BINDIR
+
SB_TMPROOT=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base
+
SB_TMPPREFIX=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm
=> epics-base-7.0-arm-rtems5-1: CLEAN
+
SB_TMPBINDIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin
==> %clean:
+ export SB_TMPROOT SB_TMPPREFIX SB_TMPBINDIR
+
SB_TMPCXCROOT=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base
+
SB_TMPCXCPREFIX=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm
+
SB_TMPCXCBINDIR=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin
+ export SB_TMPCXCROOT SB_TMPCXCPREFIX SB_TMPCXCBINDIR
+ SB_EXTRAPATH=/home/mritunjay/development/rtems/src/rsb/source-builder
+ export CFLAGS_FOR_TARGET
+ export CXXFLAGS_FOR_TARGET
+ test -n
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin
+
PATH=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin
+
PATH=/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ test -n /home/mritunjay/development/rtems/src/rsb/source-builder
+
PATH=/home/mritunjay/development/rtems/src/rsb/source-builder:/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+
PATH=/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/development/rtems/src/rsb/source-builder:/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000-cxc/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base/home/mritunjay/development/rtems/5-arm/bin:/home/mritunjay/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ export PATH
+ LANG=C
+ export LANG
+ unset DISPLAY
+ umask 022
+ cd
/home/mritunjay/development/rtems/src/rsb/rtems/build/epics-base-7.0-arm-rtems5-1
+ echo => epics-base-7.0-arm-rtems5-1: CLEAN
+ echo ==> %clean:
exe: shell: /usr/bin/id -u
exe: /usr/bin/id -u
shell-output: 0 1000
exe: shell: /usr/bin/id -u
exe: /usr/bin/id -u
shell-output: 0 1000
_bset: : epics/epics-base: collecting:
build/tmp/epics-base-7.0-arm-rtems5-1-1000 ->
build/tmp/sb-1000/epics/epics-base
copy:
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/epics-base-7.0-arm-rtems5-1-1000
=>
/home/mritunjay/development/rtems/src/rsb/rtems/build/tmp/sb-1000/epics/epics-base
Build Set: Time 0:03:33.536948`
Thank you so much!
>
> Is there an EPICS install pass in the build?
>
I am not sure what 'install pass' means but if it has something to do with
make, then only `make` was used which
is the same thing done when building by hand.
Thanks
Mritunjay
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200827/a2e953a7/attachment-0001.html>
More information about the devel
mailing list