-
Notifications
You must be signed in to change notification settings - Fork 44
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
WinLibs and compilations that fail with MapViewEx error #97
Comments
...I found the old reference I was referring to: |
I'm still trying to understand the exact issue. If you are disabling it, then you're really switching off an security feature intended to make sure an application isn't just starting code from a location that should contain data. DEP is also a feature you can disable in the OS. Have you tried if that makes a difference? Is the original issue still present in MinGW-w64 10.0.0 (see latest winlibs release)? |
I am switching it off both: ASLR and DEP (switches -n -d of the tool). And yes, I am aware of the consequences this may have. |
I did not try the "totally latest" version you were referring to. This one is new to me (as it is just from 3 days ago!). I'll give t a try though... |
...and I forgot it affects both: 32 and 64-bit compilers of gcc-10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2 to be precise. |
The version from a few days ago is built with the new MinGW-w64 10.0.0, so if there are patches in there it may be fixed now. |
Just a side-note: I cannot use the bundle you were referring to easily as it does not ship with LLVM (and ccache) for which the first I would like to use to compile C::B plugins; and the latter I use on misc. other projects. The bundled items were one of the main reasons why I was using WinLibs in the first place... :-) Being curious: Is there a reason not to bundle these items? |
The bundled version of GCC+LLVM/CLang uses LLVM/CLang built with GCC's standard libraries. A question for you: Do you have any instructions to build Code::Blocks from source (I already have all the prerequisites) using command line build tools (not Code::Blocks itself)? |
Thanks for the clarification. I can understand this.
Depends on the platform:
For what purpose? Maybe I can help? |
I would just like to have a native Windows 64-bit Code::Blocks, as there is no official download like that. Maybe some people might even be interested in a Code::Blocks that comes with the winlibs compiler? |
Well there is: I am the one of the developers/releaser of Code::Blocks. And as TDM is no longer an option (which was standard up to now) WinLibs may really be a good alternative. But I won't promise anything here, as currently we are using MinGW 8.1.0 just fine, too. |
Hi, brechtsanders, I'm also a C::B dev, and first, thanks for supply your great compiler suit. I use clangd for code completion plugin(see this C::B forum thread: [url=https://forums.codeblocks.org/index.php?topic=24357.0]Code completion using LSP and clangd[/url]) I mainly use the GCC supplied by msys2 projects, and if you look at its packages, there are two kinds of llvm/clang.
I mainly use the second one, and the second one use the same libraries and headers as the gcc under the mingw64 sub folder. I'm not sure how you build the llvm/clang, I just guess there is a way to share the headers files between gcc and clang. |
Another issue I'm concern is that msys2 project will drop the Windows 7 support soon, I'm not sure what is your plan, does winlibs will drop the Win7 support soon? Thanks. |
Hi there, remember me? :-) We once discussed about the MapViewEx errors that happen when compiling (large) projects like C::B with more recent WinLibs compiler versions.
I think I found the reason and a working solution here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101183
Esp. this hint:
Having patched the compiler framework using the tool actually really works! And it works with all compilers that failed so far (at least for me).
So what I did is patching these files (which are in different folders depending on the version and flavour of your compiler):
cc1.exe, cc1obj.exe, cc1objplus.exe, cc1plus.exe, f951.exe
...with this tool from 2010 (!):
https://blog.didierstevens.com/2010/10/17/setdllcharacteristics/
...just thought this might be of interest for you, too.
The text was updated successfully, but these errors were encountered: