[RTEMS Project] #4897: Wrong result comparing Python versions in gdb-common-1.cfg
RTEMS trac
trac at rtems.org
Thu Apr 13 11:25:56 UTC 2023
#4897: Wrong result comparing Python versions in gdb-common-1.cfg
-----------------------------+--------------------
Reporter: Oliver Kleinke | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 5.4
Component: tool/rsb | Version: 5
Severity: normal | Keywords:
Blocked By: | Blocking:
-----------------------------+--------------------
On branch: 5, tag: 5.3, commit: 9144a4a
Tried to build using the following command line on a fresh Debian testing:
`../source-builder/sb-set-builder --prefix=[...]/rtems/bin 5/rtems-sparc`
Fails with:
`error: shell macro failed: [...]/rtems/rsb/source-builder/sb/rtems-build-
dep -c gcc -l : 2: error: no library (-l) provided`
The trace log reveals that a check in gdb-common-1.cfg has the wrong
outcome, thus not using the `--embed` argument when calling
`python3-config`:
{{{
config: source-builder/config/gdb-common-1.cfg: 112:>%if %{gdb-python-ver-
mm} < 3.8 [True]
config: source-builder/config/gdb-common-1.cfg: 112: _if[1]: ['3.11',
'<', '3.8']
config: source-builder/config/gdb-common-1.cfg: 112: _if: numeric value
check
config: source-builder/config/gdb-common-1.cfg: 112: _if[2]: ('3.11',
'<', '3.8') True none True
config: source-builder/config/gdb-common-1.cfg: 112: _ifs[2]: dir=None 3
['3.11', '<', '3.8']
config: source-builder/config/gdb-common-1.cfg: 113:>%define gdb-python-
config-lib-check-flags --ldflags [True]
config: source-builder/config/gdb-common-1.cfg: 114:>%else [True]
config: source-builder/config/gdb-common-1.cfg: 115: %define gdb-python-
config-lib-check-flags --ldflags --embed [False]
config: source-builder/config/gdb-common-1.cfg: 116: %endif [False]
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4897>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list