Chess2u
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Chess2uLog in

descriptionSomething goes wrong in opt.cpp EmptySomething goes wrong in opt.cpp

more_horiz
Hi

I tried compile this on ubuntu 14.10 + gcc 5.2.1 / gcc 4.9.3

opt.cpp breaks this engine :-/

---------------------------------------

CHESS@ubussd:/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO$ make build ARCH=x86-64
make ARCH=x86-64 COMP=gcc config-sanity
make[1]: Entering directory '/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO'

Config:
debug: 'no'
optimize: 'yes'
arch: 'x86_64'
bits: '64'
prefetch: 'yes'
bsfq: 'yes'
popcnt: 'no'
sse: 'yes'
pext: 'no'

Flags:
CXX: g++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto
LDFLAGS:  -Wl,--no-as-needed -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto

Testing config sanity. If this fails, try 'make help' ...

make[1]: Leaving directory '/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO'
make ARCH=x86-64 COMP=gcc all
make[1]: Entering directory '/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO'
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o benchmark.o benchmark.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o bitbase.o bitbase.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o bitboard.o bitboard.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o book.o book.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o endgame.o endgame.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o evaluate.o evaluate.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o main.o main.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o material.o material.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o misc.o misc.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o movegen.o movegen.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o movepick.o movepick.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -std=c++11  -pedantic -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto   -c -o opt.o opt.cpp
opt.cpp: In function ‘void CREATE_MEM(void**, int, uint64_t)’:
opt.cpp:49:60: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
  printf("info string LargePages FAILED %llu Mb\n",size>>20);
                                                           ^
opt.cpp:29:52: error: ‘_aligned_malloc’ was not declared in this scope
#define MEMALIGN(a, b, c) a = _aligned_malloc (c, b)
                                                   ^
opt.cpp:50:3: note: in expansion of macro ‘MEMALIGN’
  MEMALIGN((*A),align,size);
  ^
opt.cpp:56:56: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
  printf("info string LargePages OK %llu Mb\n",size>>20);
                                                       ^
opt.cpp:57:3: error: ‘cout’ is not a member of ‘std’
  std::cout<<"info string HUGELTB "<<(size>>20)<<std::endl;
  ^
opt.cpp: In function ‘void CREATE_MEM2(void**, uint64_t)’:
opt.cpp:69:53: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
  printf("info string %llu Mb LargePages\n",size>>20);
                                                    ^
opt.cpp: In function ‘void FREE_MEM(void*)’:
opt.cpp:30:41: error: ‘_aligned_free’ was not declared in this scope
#define ALIGNED_FREE(x) _aligned_free (x)
                                        ^
opt.cpp:79:3: note: in expansion of macro ‘ALIGNED_FREE’
  ALIGNED_FREE(A);
  ^
opt.cpp: In function ‘void SETUP_PRIVILEGES()’:
opt.cpp:87:6: error: redefinition of ‘void SETUP_PRIVILEGES()’
void SETUP_PRIVILEGES(){}
     ^
opt.cpp:40:6: note: ‘void SETUP_PRIVILEGES()’ previously defined here
void SETUP_PRIVILEGES(){}
     ^
<builtin>: recipe for target 'opt.o' failed
make[1]: *** [opt.o] Error 1
make[1]: Leaving directory '/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO'
Makefile:405: recipe for target 'build' failed
make: *** [build] Error 2
CHESS@ubussd:/chess/Arena/Engines/SugaR/SugaR-Chess-PrO/srcPrO$

---------------------------------------

descriptionSomething goes wrong in opt.cpp Emptysorrry...

more_horiz
I try to reply this post:

Sugar: new UCI engine based on Stockfish



Permissions in this forum:
You cannot reply to topics in this forum