Comments (9)
Can you give me the complete process of how to build and compile a drmingw program?
If you want to build DrMingw yourself, you can follow the steps in the GitHub Action:
- https://github.com/jrfonseca/drmingw/blob/master/.github/workflows/build.yml#L31
- https://github.com/jrfonseca/drmingw/blob/master/ci/build.ps1
from drmingw.
The libwinpthread-1.dll
dependency is unintentional. DrMingw should either not depend on it (ie, use Win32 threads as opposed to Posix threads) or statically link libwinpthread-1.dll
.
It happened between 0.9.7 and 0.9.8, likely due to the new MinGW compiler toolchain from d9a82b4.
I'll need to figure a solution, and add logic to prevent this from silently happening again.
from drmingw.
Going through git history, I'm starting to recollect: 3450a15 should have ensured winpthreads are statically linked...
from drmingw.
Also worth noting that, when compiling with the llvm-mingw toolchain, it uses libc++ instead of libstdc++. The winpthread library is available in the toolchain, but libc++ does not actually use winpthreads.
from drmingw.
If you would like to to stick to GCC, mingw-builds still provides toolchains without posix threads: https://github.com/niXman/mingw-builds-binaries/releases
from drmingw.
Thanks @alvinhochun
I'm building with LLVM/Clang for Arm, but still building with GCC for x86.
The odd thing here is that when I build locally libwinpthread-1.dll
is statically linked. I need to dig further..
from drmingw.
After a few experiments, I've narrowed down the issue. It only happens on Release builds (only used for producing the binaries), and never on the Debug builds (used for continuous testing and integration.) Why, I haven't yet figured out. I need to reproduce locally first.
from drmingw.
Fixed in https://github.com/jrfonseca/drmingw/releases/tag/0.9.9
from drmingw.
Can you give me the complete process of how to build and compile a drmingw program?
I used mingw to compile it and found that it reports errors:
CMake Error at CMakeLists.txt:66 (message):
Win32 threads required.
Including what compiler should be used, for now I'm porting it inside my own project first, because the project with mingw64 can't generate pdb symbol files. I think it would also be helpful to analyze the problem if I can print out the stack of the crash at that time
from drmingw.
Related Issues (20)
- Faulting location incorrect if executable uses ASLR. HOT 3
- Have it handle stack corruption HOT 3
- No source code is showing for projects built with MSYS2 HOT 4
- Reason for erroring out with posix threads? HOT 2
- Can exchndl be made to catch RaiseFailFastException? HOT 4
- catchsegv not resolving gnu_debuglink correctly HOT 8
- catchsegv clobbers Unicode arguments
- Feature request: Support ARM64 HOT 23
- Feature request: Allow opt-in to use system provided zlib HOT 1
- ExcHndl.dll can't print the crash call stack under Windows 7 HOT 20
- Dumping register values on x86_64 HOT 1
- Write minidump from exchndl.dll
- Support minidump locations/filenames containing unicode (wide char) characters HOT 4
- Release 0.9.8: Naming of link libraries different between 32 and 64 bit HOT 3
- What is the minimal OS to run the official drmingw release? HOT 2
- Save the result automatically HOT 3
- Is it possible to update drmingw to the latest version in the msys2 package? HOT 2
- better sample code in the home page HOT 1
- exchndl problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drmingw.