-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSYS UCRT64 (or MINGW64) fails to compile, missing /usr/include/sys headers, even if set correctly in Makefile #4986
Comments
Please do not mix MINGW/UCRT/CLANG environments with MSYS one. Use either one of those. |
Hi Biswapriyo, In regard to this, how can I determine what shell is best to use, for a particular repo/project? At the end of the day, if people actually know how to compile things without relying on prepackaged |
If that project support native Windows platform use ucrt64 else use msys. |
@Biswa96 |
The project will only uses APIs provided in Windows system. picocom does not support native Windows platform because it requires POSIX APIs. Try to compile the project in msys environment. |
Which "APIs"? There shouldn't be any Windows APIs in the picocom project.
Are you sure? There are no compilers installed OOTB in MSYS. So which one should be installed there? And from a technical perspective, what is preventing it from being compiled in UCRT64? |
@Biswa96 Below is my Click to Show Package List
The tools show up at: ------------------------------
Installed Development Tools
------------------------------
/ucrt64/bin/cc
/ucrt64/bin/cpp
/ucrt64/bin/c++
/ucrt64/bin/g++
/usr/bin/make
/ucrt64/bin/ld
/usr/bin/ldd
/ucrt64/bin/pkgconf If not convinced, please try to compile (make) any of these yourself.
|
Description / Steps to reproduce the issue
I'm tried to compile this in both UCRT64 and MINGW64 environments, and keep running into the same weird problem.
In the Makefile I add the header library path with:
EXTRA_CPPFLAGS += -I/usr/include/sys
Running make, results in:
Yet at compile time the complaint is that it is missing, which is impossible!
Expected behavior
make recognizes the path to the header files and compiles without error
Actual behavior
make spits out error saying it can't find
sys/reent.h
, eventhough a few lines above it has the directory included.Verification
Windows Version
MINGW64_NT-10.0-22631
Are you willing to submit a PR?
no
The text was updated successfully, but these errors were encountered: