-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Building on latest msys2 chain on windows #2465
Comments
possibility 1From
maybe its the compiler version Need to contact @estebanzimanyi or @mbakli They wrote this code |
I installed g++-12 and got some other warnings that I just fixed on #2472 |
The fix we proposed a few years ago was based on the solution used in PostGIS which also uses the function |
The error message is indicating that there is no declaration available for UNBLOCKED_SIGNAL_QUEUE, which is used in the cpp_common/interruption.h header file. This could be due to a missing include file, a missing definition or macro, or an incorrect configuration. The error message suggests using the -fpermissive flag with G++ to allow the code to compile, but this is not a recommended solution as it could introduce other issues. One possible solution is to check if the necessary header files and macros are included in the source code and that the code is correctly configured. It may also be necessary to update the version of the compiler or any relevant dependencies. Another option is to seek help from the community or the developers of the software to resolve the issue. |
Okay I'm still getting errors but in a different place. I should note this is against develop branch. Now I get:
|
Nope same problem with main. I'll try @estebanzimanyi suggestion later. |
Add the following line at the beginning of your C++ code to include the sys/stat.h header file: |
On winnie (PostGIS Build bot), main branch is broken: https://winnie.postgis.net/job/pgRouting_PGVersionEDB/9941/console
But the develop branch at least compiles. I have to check why the tests aren't running on that. But unfortunately my new chain setup gcc 12.1 msys2, mingw64 (using cmake -G 'Unix Makefiles'
So I think the stats issue is no longer an issue (at least not in develop) |
Okay I think I see the issue now, it's still compiling but got passed that step. the issue is with the interrupt.h. Since WIN32 is defined, it's falling into the the else branch which mucks up everything. changing #ifndef true fixes the compile issue
Note that main is broken in both my current setup (winnie) and my new setup. So develop is a clear winner. |
Rolled back to original interrupts file |
@cvvergara I was writing up instructions on how to build on windows with msys2 and mingw64 and ran into a stumbling block
Here are the instructions
all goes smoothly until the build step, which errors in
The text was updated successfully, but these errors were encountered: