#4897 new defect

Wrong result comparing Python versions in gdb-common-1.cfg

Reported by: Oliver Kleinke Owned by:
Priority: normal Milestone: 5.4
Component: tool/rsb Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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]

Change History (0)

Note: See TracTickets for help on using tickets.