[RTEMS Project] #4894: RSB: does not build tools for x86_64 due to gdb failure.

RTEMS trac trac at rtems.org
Tue Apr 11 05:38:54 UTC 2023


#4894: RSB: does not build tools for x86_64 due to gdb failure.
----------------------+---------------------
 Reporter:  kgardas   |       Owner:  (none)
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  tool/gdb  |     Version:
 Severity:  normal    |  Resolution:
 Keywords:            |  Blocked By:
 Blocking:            |
----------------------+---------------------

Comment (by Chris Johns):

 To debug this run the command with the options `--trace` and `--dry-run`
 as this is an RSB config issue. Running:
 {{{
 ../source-builder/sb-set-builder --prefix=/opt/work/rtems/6 --log=a.txt
 --trace --dry-run 6/rtems-aarch64
 }}}
 shows in the log:
 {{{
 exe: shell: /usr/bin/python3-config --ldflags --embed | awk 'BEGIN{FS="
 "}/python/{for(i=1;i<NF;++i)if(match($i,".*lpython.*")) print
 "lib"substr($i,3)"\\*";}'
 exe: /usr/bin/python3-config --ldflags --embed | awk 'BEGIN{FS="
 "}/python/{for(i=1;i<NF;++i)if(match($i,".*lpython.*")) print
 "lib"substr($i,3)"\\*";}'
 shell-output: 0 libpython3.9\*
 config: source-builder/config/gdb-common-1.cfg: 121:>%define gdb-python-
 config-libpath %(%{gdb-python-config} %{gdb-python-config-lib-check-flags}
 | %{gdb-python-libpath-filter} | uniq) [True]
 exe: shell: /usr/bin/python3-config --ldflags --embed | awk 'BEGIN{FS="
 "}/python/{for(i=1;i<NF;++i)if(match($i,".*L.*")) print substr($i,3);}' |
 uniq
 exe: /usr/bin/python3-config --ldflags --embed | awk 'BEGIN{FS="
 "}/python/{for(i=1;i<NF;++i)if(match($i,".*L.*")) print substr($i,3);}' |
 uniq
 shell-output: 0 /usr/lib/python3.9/config-3.9-x86_64-linux-gnu
 /usr/lib/x86_64-linux-gnu
 config: source-builder/config/gdb-common-1.cfg: 122:>%define gdb-python-
 lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -L
 %{gdb-python-config-libpath} -l %{gdb-python-config-libs}) [True]
 exe: shell: /opt/work/chris/rtems/kernel/rtems-source-builder.git/source-
 builder/sb/rtems-build-dep -c gcc  -L /usr/lib/python3.9/config-3.9-x86_64
 -linux-gnu
 /usr/lib/x86_64-linux-gnu -l libpython3.9\*
 exe: /opt/work/chris/rtems/kernel/rtems-source-builder.git/source-
 builder/sb/rtems-build-dep -c gcc  -L /usr/lib/python3.9/config-3.9-x86_64
 -linux-gnu
 /usr/lib/x86_64-linux-gnu -l libpython3.9\*
 shell-output: 126 error: no header or library file to find found.
 /bin/sh: 2: /usr/lib/x86_64-linux-gnu: Permission denied
 error: shell macro failed: /opt/work/chris/rtems/kernel/rtems-source-
 builder.git/source-builder/sb/rtems-build-dep -c gcc  -L
 /usr/lib/python3.9/config-3.9-x86_64-linux-gnu
 /usr/lib/x86_64-linux-gnu -l libpython3.9\*: 126: error: no header or
 library file to find found.
 /bin/sh: 2: /usr/lib/x86_64-linux-gnu: Permission denied
 }}}
 The issue is the python config command outputting more than one library
 and the `awk` post processing turning this into more than one line:
 {{{
  /usr/bin/python3-config --ldflags --embed
 -L/usr/lib/python3.9/config-3.9-x86_64-linux-gnu -L/usr/lib/x86_64-linux-
 gnu -lpython3.9 -lcrypt -ldl  -lm -lm
 }}}
 The breaks the library check script.

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


More information about the bugs mailing list