#4547 new defect

dtc build failure on msys2 - all rtems6 target tools fail to build on Windows 10

Reported by: kgardas Owned by:
Priority: normal Milestone: 6.1
Component: tool/rsb Version:
Severity: normal Keywords: SoC, ecosystem, small, msys2
Cc: Blocked By:
Blocking:

Description (last modified by Joel Sherrill)

I'm testing RSB git source updated 2021-11-10 and it fails on freshly installed msys2/windows 10 platform with:
`
karel@DESKTOP-755H9VE MINGW64 /c/r/rtems-source-builder/rtems
$ ../source-builder/sb-check
RTEMS Source Builder - Check, 6 (efa44e47a7d2 modified)
Environment is ok

karel@DESKTOP-755H9VE MINGW64 /c/r/rtems-source-builder/rtems
$ ../source-builder/sb-set-builder --prefix=/c/r/rr 6/rtems-sparc
RTEMS Source Builder - Set Builder, 6 (efa44e47a7d2 modified)
Build Set: 6/rtems-sparc
config: devel/dtc-1.6.0-1.cfg
package: dtc-1.6.0-x86_64-w64-mingw32-1
building: dtc-1.6.0-x86_64-w64-mingw32-1
error: building d1xwm1
Build FAILED

See error report: rsb-report-dtc-1.6.0-x86_64-w64-mingw32-1.txt

error: building d1xwm1
Build Set: Time 0:00:28.232196
Build FAILED

karel@DESKTOP-755H9VE MINGW64 /c/r/rtems-source-builder/rtems
$
`
the problem report is attached.

Joel adds: dtc does not build on msys2. It requires fnmatch.h which is not present. Alternative fixes include finding an alternative for fnmatch on msys2, providing an implementation to be used on msys2, or adding gnulib which is a portability package to our RSB packages on msys2.

Also there may be other tickets for the same issue.

Possible Mentors: Karel Gardas
Skills: C
Difficulty: Medium

Attachments (1)

rsb-report-dtc-1.6.0-x86_64-w64-mingw32-1.txt (25.4 KB) - added by kgardas on 11/11/21 at 21:09:20.
dtc compilation failure problem report.

Download all attachments as: .zip

Change History (6)

Changed on 11/11/21 at 21:09:20 by kgardas

dtc compilation failure problem report.

comment:1 Changed on 02/02/22 at 14:23:22 by Joel Sherrill

Keywords: SoC added
Milestone: 6.1

Adding SoC as a ticket because I think this is a possible small SoC project. Possible solutions include adding gnulib to the RSB bset for msys2 or modifying dtc to use other APIs for this functionality.

comment:2 Changed on 02/04/22 at 18:53:18 by Gedare Bloom

Keywords: ecosystem small added

comment:3 Changed on 02/04/22 at 20:05:29 by Joel Sherrill

Description: modified (diff)
Keywords: msys2 added
Summary: RSB can't build rtems-sparc target tools on Windows 10.dtc build failure on msys2 - all rtems6 target tools fail to build on Windows 10

comment:4 Changed on 02/25/22 at 21:15:50 by Joel Sherrill

Description: modified (diff)

comment:5 Changed on 11/29/22 at 23:48:28 by Chris Johns

status update?

Note: See TracTickets for help on using tickets.