Opened 3 years ago
Closed 3 years ago
#6415 closed defect (fixed)
Msys on Windows misses header file "locale"
Reported by: | openmodelica@… | Owned by: | adrpo |
---|---|---|---|
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 Changed 3 years ago by openmodelica@…
comment:2 Changed 3 years ago by adrpo
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 Changed 3 years ago by adrpo
- Component changed from Third-Party Libraries to Installation program
- Resolution set to fixed
- Status changed from new to closed
Fixed with 181f6a/OpenModelicaSetup (master) and a81487a/OpenModelicaSetup (maintenance/v1.17).
comment:4 Changed 3 years ago by casella
- Resolution fixed deleted
- Status changed from closed to reopened
comment:5 Changed 3 years ago by casella
- Owner changed from sjoelund.se to adrpo
- Status changed from reopened to assigned
comment:6 Changed 3 years ago by casella
- Resolution set to fixed
- Status changed from assigned to closed
Fortogt to mention: the workaround is, installing the package again:
pacman -S mingw-w64-x86_64-gcc