[RTEMS Project] #3227: sb-check fails on Msys2 64-bit

RTEMS trac trac at rtems.org
Fri Nov 10 16:13:10 UTC 2017


#3227: sb-check fails on Msys2 64-bit
---------------------------+--------------------
 Reporter:  Joel Sherrill  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  5.1
Component:  admin          |    Version:  5
 Severity:  normal         |   Keywords:
---------------------------+--------------------
 There must be a recent change to msys2 which is breaking things. I
 installed the 64-bit version from https://msys2.github.io/ per the
 instructions at
 https://docs.rtems.org/branches/master/user/hosts/index.html#microsoft-
 windows

 {{{
 $ ./source-builder/sb-check
 error: no hosts defaults found; please add
 }}}

 After adding some prints, I learned this:

 {{{
 $ ./source-builder/sb-check
 posix
 made it
 MSYS_NT-10.0
 error: no hosts defaults found; please add
 }}}

 I filled in options.py and windows.py to recognize this as MSYS2. I was
 then able to run sb-check. But it wasn't happy. Apparently the pacman
 command in the User's Guide is missing some packages based on newer
 versions:

 {{{
 $ ./source-builder/sb-check
 posix
 MSYS_NT-10.0
 RTEMS Source Builder - Check, 5 (8b30eb3f440a modified)
 error: exe: not found: (__ar) ar
 error: exe: not found: (__as) as
 error: exe: not found: (__cc) x86_64-w64-mingw32-gcc
 error: exe: not found: (__cxx) x86_64-w64-mingw32-g++
 error: exe: not found: (__ld) ld
 error: exe: not found: (__nm) nm
 error: exe: not found: (__objcopy) objcopy
 error: exe: not found: (__objdump) objdump
 error: exe: not found: (__ranlib) ranlib
 Environment is not correctly set up
 }}}

 I installed binutils explcitly with pacman and then sb-check is
 complaining about gcc. I did a find to locate the gcc's installed:

 {{{
 $ find / -name "*gcc.*"
 /home/jrs007/.ssh/id_rsa_gcc.pub
 /mingw64/bin/gcc.exe
 /mingw64/bin/x86_64-w64-mingw32-gcc.exe
 /mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/stdint-gcc.h
 /mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/libgcc.a
 /mingw64/share/info/gcc.info.gz
 /mingw64/share/man/man1/gcc.1.gz
 /usr/share/vim/vim80/compiler/gcc.vim
 find: failed to read file names from file system at or below ‘/’: No such
 file or directory

 jrs007 at JRS-OAR-Laptop MINGW64 /c/opt/rtems/rsb/source-builder
 $ /mingw64/bin/x86_64-w64-mingw32-gcc.exe --version
 x86_64-w64-mingw32-gcc.exe (Rev2, Built by MSYS2 project) 6.2.0
 Copyright (C) 2016 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3227>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list