Opened 4 years ago

Closed 4 years ago

#6415 closed defect (fixed)

Msys on Windows misses header file "locale"

Reported by: openmodelica@… Owned by: Adrian Pop
Priority: high Milestone: 1.17.0
Component: Installation program Version: v1.17.0-dev
Keywords: Cc:

Description

I tried to compile code of a self-created modelica library with 1.17.0-beta3-64bit

Error message:
C:\OpenModelica1.17.0-dev.beta3-64bit\tools\msys\mingw64\include\c++\10.2.0\iomanip:44:10: fatal error: 'locale' file not found
#include <locale>

Investigation:

  • Open msys shell, in my case
    • C:\OpenModelica1.17.0-dev.beta3-64bit\tools\msys\msys2_shell.cmd
  • see who owns the "locale" header file:
    • pacman -Qo /mingw64/include/c++/10.2.0/locale
      • the result is "/mingw64/include/c++/10.2.0/locale is owned by mingw-w64-x86_64-gcc 10.2.0-5"
  • check if it is there
    • ls /mingw64/include/c++/10.2.0/locale
      • ls: cannot access '/mingw64/include/c++/10.2.0/locale': No such file or directory

So i guess the installer does not ship that file. Let's see if there are more files missing:

  • pacman -Ql mingw-w64-x86_64-gcc | cut -d" " -f2 | grep -ve"/$" | xargs -n1 ls
    • except for man-pages which are not essential, locale is the only file missing

Change History (6)

comment:1 by openmodelica@…, 4 years ago

Fortogt to mention: the workaround is, installing the package again:

pacman -S mingw-w64-x86_64-gcc

comment:2 by Adrian Pop, 4 years ago

We do have it in our OMDev git repository so the installer filters it out it seems:
https://github.com/OpenModelica/OpenModelicaSetup/blob/master/OpenModelicaSetup.nsi#L170
I'll fix this asap.

comment:3 by Adrian Pop, 4 years ago

Component: Third-Party LibrariesInstallation program
Resolution: fixed
Status: newclosed

Fixed with 181f6a/OpenModelicaSetup (master) and a81487a/OpenModelicaSetup (maintenance/v1.17).

Last edited 4 years ago by Adrian Pop (previous) (diff)

comment:4 by Francesco Casella, 4 years ago

Resolution: fixed
Status: closedreopened

comment:5 by Francesco Casella, 4 years ago

Owner: changed from Martin Sjölund to Adrian Pop
Status: reopenedassigned

comment:6 by Francesco Casella, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.