Opened 4 years ago
Closed 4 years ago
#6415 closed defect (fixed)
Msys on Windows misses header file "locale"
Reported by: | 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"
- pacman -Qo /mingw64/include/c++/10.2.0/locale
- 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
- ls /mingw64/include/c++/10.2.0/locale
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 , 4 years ago
comment:2 by , 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 , 4 years ago
Component: | Third-Party Libraries → Installation program |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed with 181f6a/OpenModelicaSetup (master) and a81487a/OpenModelicaSetup (maintenance/v1.17).
comment:4 by , 4 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:5 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | reopened → assigned |
comment:6 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fortogt to mention: the workaround is, installing the package again:
pacman -S mingw-w64-x86_64-gcc