Comments (10)
I suppose, you forgot the -pthread option.
from k2.
-pthread not needed for msys2 mingw... in this case we used Windows threads, otherwise POSIX
but with -pthread binary crashed too with -flto:
$ g++ -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-7.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --enable-libstdcxx-filesystem-ts=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 7.3.0 (Rev1, Built by MSYS2 project)
P.S. а варнинги не красивые с кастами и перекрытием(зетемнением в стеке) аргументов...
from k2.
Hello!
Could you also add the '-g' option, compile, run and send me a crash dump?
P.S. Yes, there are many ugly things in the code. I'm a hobbyist developer so thank you for pointing them out.
from k2.
I've got it about hobby... But where i can get a dump(core-dump)?
dew@asus MINGW64 ~/k2
$ cat Makefile.FLTO
all:
g++ -g main.cpp engine.cpp eval.cpp hash.cpp movegen.cpp chess.cpp Timer.cpp -std=c++0x -O3 -DNDEBUG=1 -pthread -o ./bin/Release/k2
dew@asus MINGW64 ~/k2
$ make -f Makefile.FLTO
g++ -g main.cpp engine.cpp eval.cpp hash.cpp movegen.cpp chess.cpp Timer.cpp -std=c++0x -O3 -DNDEBUG=1 -pthread -o ./bin/Release/k2
dew@asus MINGW64 ~/k2
$ ./k2.exe
uci
Segmentation fault
from k2.
sorry about previous post
from k2.
dew@asus MINGW64 ~/k2
$ cat Makefile.FLTO
all:
g++ -g -flto -static main.cpp engine.cpp eval.cpp hash.cpp movegen.cpp chess.cpp Timer.cpp -std=c++0x -O3 -DNDEBUG=1 -pthread -o ./bin/Release/k2
dew@asus MINGW64 ~/k2
$ make -f Makefile.FLTO
g++ -g -flto -static main.cpp engine.cpp eval.cpp hash.cpp movegen.cpp chess.cpp Timer.cpp -std=c++0x -O3 -DNDEBUG=1 -pthread -o ./bin/Release/k2
dew@asus MINGW64 ~/k2
$ bin/Release/k2.exe
uci
Segmentation fault
dew@asus MINGW64 ~/k2
There is a problem with -static + -flto options
from k2.
from k2.
from k2.
crush dumps above from %LOCALAPPDATA%\CrashDumps
from k2.
Can't reproduce the issue
from k2.
Related Issues (9)
- Problem using python-chess HOT 23
- nothing show during chess engine analysis (uci when test xboard return error) using python-chess on google colab HOT 1
- Engine crash in specific position HOT 2
- Randomness doesn't work
- Bug with mixed time control
- Engine hangup in specific position HOT 1
- UCI stop command does not work during infinite analysis HOT 1
- Go searchmoves 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 k2.