Lately I tried to compile the source of Jim Ablett's package stockfish-162-ja with the Intel compiler. An executable is generated but it produces no output. If I don't use any optimisation I will get some output.
Where can I get a bugfree stockfish source which will compile?
The glaurung side would be a nice place to get it.
Kind regards
Bernhard
working source for stockfish 1.6.2
Moderators: hgm, Rebel, chrisw
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: working source for stockfish 1.6.2
If the sources post by Jim are buggy the solution is _not_ to post the correct sources on another site but to _fix_ the Jim's one.BBauer wrote:Lately I tried to compile the source of Jim Ablett's package stockfish-162-ja with the Intel compiler. An executable is generated but it produces no output. If I don't use any optimisation I will get some output.
Where can I get a bugfree stockfish source which will compile?
The glaurung side would be a nice place to get it.
Kind regards
Bernhard
Said that, I also add that the sources posted by Jim are the same of all the official 1.6.2 sources you can find out there and that Jim used the same sources to build (with Intel compiler) the binaries.
So the correct question, please forgive my rudeness, should have been: "I have a problem compiling SF with Intel, could you please give me some hint on how to do it properly ?"
In this case should be useful if you could post some info like:
- OS used
- Compiler used: name and version
- Tried build procedure: tell what you did and what you got.
- Testing: tell how you verified SF does not work
Thanks in advance
Marco
-
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: working source for stockfish 1.6.2
Hi Marco,
I disagree.
If the sources post by Jim are buggy the solution is to post the corrected source.
I hoped that Jim's sources are the best, but if his sources are the official 1.6.2 sources this means that the official 1.6.2 sources are buggy.
I have no problem compiling SF with Intel if I do not use any optimisation.
I do not expect you to be able to give me some hint on how to do it properly, but I expect you to be able to correct the source.
- OS used: Ubuntu Version 9.10 (karmic) Kernel Linux 2.6.31-17-generic
- Compiler used: Intel(R) C++ Intel(R) 64 Compiler Professional for applications running
on Intel(R) 64, Version 11.1 Build 20090630 Package
ID: l_cproc_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
- Tried build procedure: make icc
- Testing: ./stockfish
go
and nothing happens.
Please understand that I am making a contribution by telling you that SF is running or not.
Kind regards
Bernhard
I disagree.
If the sources post by Jim are buggy the solution is to post the corrected source.
I hoped that Jim's sources are the best, but if his sources are the official 1.6.2 sources this means that the official 1.6.2 sources are buggy.
I have no problem compiling SF with Intel if I do not use any optimisation.
I do not expect you to be able to give me some hint on how to do it properly, but I expect you to be able to correct the source.
- OS used: Ubuntu Version 9.10 (karmic) Kernel Linux 2.6.31-17-generic
- Compiler used: Intel(R) C++ Intel(R) 64 Compiler Professional for applications running
on Intel(R) 64, Version 11.1 Build 20090630 Package
ID: l_cproc_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
- Tried build procedure: make icc
- Testing: ./stockfish
go
and nothing happens.
Please understand that I am making a contribution by telling you that SF is running or not.
Kind regards
Bernhard
-
- Posts: 613
- Joined: Sun Jan 18, 2009 7:03 am
Re: working source for stockfish 1.6.2
Can you build it with gcc?BBauer wrote: - Tried build procedure: make icc
- Testing: ./stockfish
Bernhard
Joona Kiiski
-
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: working source for stockfish 1.6.2
Yes!
I used
GCCFLAGS = -O3 -march=native -mtune=native
and by starting with ./stockfish
i get the output
Stockfish 1.6.2 64bit. By Tord Romstad, Marco Costalba, Joona Kiiski.
kind regards
Bernhard
I used
GCCFLAGS = -O3 -march=native -mtune=native
and by starting with ./stockfish
i get the output
Stockfish 1.6.2 64bit. By Tord Romstad, Marco Costalba, Joona Kiiski.
kind regards
Bernhard
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: working source for stockfish 1.6.2
Please, could you post the console output of 'make icc' command ?BBauer wrote:
- Tried build procedure: make icc
-
- Posts: 658
- Joined: Wed Mar 08, 2006 8:58 pm
Re: working source for stockfish 1.6.2
Yes, I did
make icc > cosoleoutput
and got on the console:
Makefile:309: .depend: No such file or directory
pawns.cpp(366): remark #2259: non-pointer conversion from "unsigned int" to "uint8_t={unsigned char}" may lose significant bits
kingShelters[c] = shelter;
^
pawns.cpp(195): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->ksStormValue[Us] += KStormOpenFileBonus[f];
^
pawns.cpp(196): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->qsStormValue[Us] += QStormOpenFileBonus[f];
^
pawns.cpp(197): remark #2259: non-pointer conversion from "int" to "uint8_t={unsigned char}" may lose significant bits
pi->halfOpenFiles[Us] |= (1 << f);
^
pawns.cpp(246): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->ksStormValue[Us] += bonus;
^
pawns.cpp(272): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->qsStormValue[Us] += bonus;
^
misc.cpp(217): remark #593: variable "__d0" was set but never used
FD_ZERO(&readfds);
^
misc.cpp(217): remark #593: variable "__d1" was set but never used
FD_ZERO(&readfds);
^
The file contains:
g++ -msse -MM application.cpp bitboard.cpp pawns.cpp material.cpp endgame.cpp evaluate.cpp main.cpp misc.cpp move.cpp movegen.cpp history.cpp movepick.cpp search.cpp piece.cpp position.cpp direction.cpp tt.cpp value.cpp uci.cpp ucioption.cpp mersenne.cpp book.cpp bitbase.cpp san.cpp benchmark.cpp > .depend
make \
CXX='/opt/intel/Compiler/11.1/current/bin/intel64/icpc' \
CXXFLAGS="-O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503" \
all
make[1]: Betrete Verzeichnis '/home/bbauer/64/Stockfish/stockfish-162-ja/src'
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o application.o application.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o bitboard.o bitboard.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o pawns.o pawns.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o material.o material.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o endgame.o endgame.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o evaluate.o evaluate.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o main.o main.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o misc.o misc.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o move.o move.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o movegen.o movegen.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o history.o history.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o movepick.o movepick.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o search.o search.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o piece.o piece.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o position.o position.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o direction.o direction.cpp
Now I do:
./stockfish
go
And nothing happens.
Hope that helps somewhat.
Kind regards
Bernhard
make icc > cosoleoutput
and got on the console:
Makefile:309: .depend: No such file or directory
pawns.cpp(366): remark #2259: non-pointer conversion from "unsigned int" to "uint8_t={unsigned char}" may lose significant bits
kingShelters[c] = shelter;
^
pawns.cpp(195): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->ksStormValue[Us] += KStormOpenFileBonus[f];
^
pawns.cpp(196): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->qsStormValue[Us] += QStormOpenFileBonus[f];
^
pawns.cpp(197): remark #2259: non-pointer conversion from "int" to "uint8_t={unsigned char}" may lose significant bits
pi->halfOpenFiles[Us] |= (1 << f);
^
pawns.cpp(246): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->ksStormValue[Us] += bonus;
^
pawns.cpp(272): remark #2259: non-pointer conversion from "int" to "int16_t={short}" may lose significant bits
pi->qsStormValue[Us] += bonus;
^
misc.cpp(217): remark #593: variable "__d0" was set but never used
FD_ZERO(&readfds);
^
misc.cpp(217): remark #593: variable "__d1" was set but never used
FD_ZERO(&readfds);
^
The file contains:
g++ -msse -MM application.cpp bitboard.cpp pawns.cpp material.cpp endgame.cpp evaluate.cpp main.cpp misc.cpp move.cpp movegen.cpp history.cpp movepick.cpp search.cpp piece.cpp position.cpp direction.cpp tt.cpp value.cpp uci.cpp ucioption.cpp mersenne.cpp book.cpp bitbase.cpp san.cpp benchmark.cpp > .depend
make \
CXX='/opt/intel/Compiler/11.1/current/bin/intel64/icpc' \
CXXFLAGS="-O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503" \
all
make[1]: Betrete Verzeichnis '/home/bbauer/64/Stockfish/stockfish-162-ja/src'
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o application.o application.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o bitboard.o bitboard.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o pawns.o pawns.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o material.o material.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o endgame.o endgame.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o evaluate.o evaluate.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o main.o main.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o misc.o misc.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o move.o move.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o movegen.o movegen.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o history.o history.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o movepick.o movepick.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o search.o search.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o piece.o piece.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o position.o position.cpp
/opt/intel/Compiler/11.1/current/bin/intel64/icpc -O3 -DNDEBUG -g -Wall -fno-exceptions -fno-rtti -wd383,869,981,10187,10188,11505,11503 -c -o direction.o direction.cpp
Now I do:
./stockfish
go
And nothing happens.
Hope that helps somewhat.
Kind regards
Bernhard
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: working source for stockfish 1.6.2
I don't see the linking phase !BBauer wrote:
And nothing happens.
Could you please try with 'make icc-profile' and post the output ?
-
- Posts: 342
- Joined: Tue Jan 19, 2010 2:05 am
Re: working source for stockfish 1.6.2
If a group of folk are working on Stockfish or others, why not put it up on a sourceforge type of site so patches can be managed for the group via svn?BBauer wrote:Hi Marco,
I disagree.
If the sources post by Jim are buggy the solution is to post the corrected source.
I hoped that Jim's sources are the best, but if his sources are the official 1.6.2 sources this means that the official 1.6.2 sources are buggy.
I have no problem compiling SF with Intel if I do not use any optimisation.
I do not expect you to be able to give me some hint on how to do it properly, but I expect you to be able to correct the source.
- OS used: Ubuntu Version 9.10 (karmic) Kernel Linux 2.6.31-17-generic
- Compiler used: Intel(R) C++ Intel(R) 64 Compiler Professional for applications running
on Intel(R) 64, Version 11.1 Build 20090630 Package
ID: l_cproc_p_11.1.046
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
- Tried build procedure: make icc
- Testing: ./stockfish
go
and nothing happens.
Please understand that I am making a contribution by telling you that SF is running or not.
Kind regards
Bernhard
-
- Posts: 2684
- Joined: Sat Jun 14, 2008 9:17 pm
Re: working source for stockfish 1.6.2
The group of folk is of 3 people and we are already organized to work well togheter, thank you.benstoker wrote: If a group of folk are working on Stockfish or others, why not put it up on a sourceforge type of site so patches can be managed for the group via svn?
If you have some patch to send, please post here or send to me in pm.