ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New chess engine: Texel
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: General Topics Flat
View previous topic :: View next topic  
Author Message
Louis Zulli



Joined: 08 Jan 2007
Posts: 2145
Location: PA USA

PostPost subject: Re: New chess engine: Texel    Posted: Sun Mar 25, 2012 10:10 am Reply to topic Reply with quote

petero2 wrote:
Thanks for the info. I don't know what is wrong with the directory permissions. If it is the same user that created the directory and that tries to write to it I think rwx------ should be ok.


It is very strange.

My modified Makefile:

Code:
LZsMacPro-OSX6: ~/Downloads/texel101] more Makefile
SRC     = bitBoard.cpp book.cpp computerPlayer.cpp enginecontrol.cpp evaluate.cpp \
          game.cpp history.cpp humanPlayer.cpp killerTable.cpp kpkTable.cpp \
          krkpTable.cpp move.cpp moveGen.cpp parameters.cpp piece.cpp position.cpp \
          random.cpp search.cpp texel.cpp textio.cpp transpositionTable.cpp \
          treeLogger.cpp tuigame.cpp uciprotocol.cpp util.cpp
OBJS32  = $(patsubst %.cpp,obj32/%.o,$(SRC))
OBJS64  = $(patsubst %.cpp,obj64/%.o,$(SRC))

CXX = g++-mp-4.7

CXXFLAGS        = -O3 -Wall -std=c++0x -pthread
LDFLAGS         = -pthread

all     : texel64

dist    : texel.zip

texel.zip: FORCE texel32 texel64
        (VER=$$(echo -e 'uci\nquit' | ./texel32 | grep 'id name' | awk '{print $$4}' | tr -d .) ; \
         rm -f texel$${VER}.zip ; \
         zip -r texel$${VER}.zip Makefile src texel{32,64}{,.exe})

$(OBJS32) : obj32/%.o : src/%.cpp
        -mkdir -p obj32
        $(CXX) $(CXXFLAGS) -m32 -c -o $@ $<

texel32  : $(OBJS32) Makefile
        $(CXX) $(LDFLAGS) -m32 -o $@ $(OBJS32)


$(OBJS64) : obj64/%.o : src/%.cpp
        -mkdir -p obj64
        $(CXX) $(CXXFLAGS) -m64 -c -o $@ $<

texel64  : $(OBJS64) Makefile
        $(CXX) $(LDFLAGS) -m64 -o $@ $(OBJS64)


clean   :
        rm -rf $(OBJS) *~ obj32 obj64

.PHONY  : clean dist FORCE
LZsMacPro-OSX6: ~/Downloads/texel101]


The error:

Code:
LZsMacPro-OSX6: ~/Downloads/texel101] make
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/bitBoard.o src/bitBoard.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/book.o src/book.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/computerPlayer.o src/computerPlayer.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/enginecontrol.o src/enginecontrol.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/evaluate.o src/evaluate.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/game.o src/game.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/history.o src/history.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/humanPlayer.o src/humanPlayer.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/killerTable.o src/killerTable.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/kpkTable.o src/kpkTable.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/krkpTable.o src/krkpTable.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/move.o src/move.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/moveGen.o src/moveGen.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/parameters.o src/parameters.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/piece.o src/piece.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/position.o src/position.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/random.o src/random.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/search.o src/search.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/texel.o src/texel.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/textio.o src/textio.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/transpositionTable.o src/transpositionTable.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/treeLogger.o src/treeLogger.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/tuigame.o src/tuigame.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/uciprotocol.o src/uciprotocol.cpp
mkdir -p obj64
g++-mp-4.7 -O3 -Wall -std=c++0x -pthread -m64 -c -o obj64/util.o src/util.cpp
g++-mp-4.7 -pthread -m64 -o texel64 obj64/bitBoard.o obj64/book.o obj64/computerPlayer.o obj64/enginecontrol.o obj64/evaluate.o obj64/game.o obj64/history.o obj64/humanPlayer.o obj64/killerTable.o obj64/kpkTable.o obj64/krkpTable.o obj64/move.o obj64/moveGen.o obj64/parameters.o obj64/piece.o obj64/position.o obj64/random.o obj64/search.o obj64/texel.o obj64/textio.o obj64/transpositionTable.o obj64/treeLogger.o obj64/tuigame.o obj64/uciprotocol.o obj64/util.o
ld: can't write output file: texel64 for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [texel64] Error 1
LZsMacPro-OSX6: ~/Downloads/texel101]


The same command, invoked directly, works:

Code:
LZsMacPro-OSX6: ~/Downloads/texel101] g++-mp-4.7 -pthread -m64 -o texel64 obj64/bitBoard.o obj64/book.o obj64/computerPlayer.o obj64/enginecontrol.o obj64/evaluate.o obj64/game.o obj64/history.o obj64/humanPlayer.o obj64/killerTable.o obj64/kpkTable.o obj64/krkpTable.o obj64/move.o obj64/moveGen.o obj64/parameters.o obj64/piece.o obj64/position.o obj64/random.o obj64/search.o obj64/texel.o obj64/textio.o obj64/transpositionTable.o obj64/treeLogger.o obj64/tuigame.o obj64/uciprotocol.o obj64/util.o
LZsMacPro-OSX6: ~/Downloads/texel101]
LZsMacPro-OSX6: ~/Downloads/texel101] ls
Makefile    obj64       src         texel32     texel32.exe texel64     texel64.exe
LZsMacPro-OSX6: ~/Downloads/texel101]
Back to top
View user's profile Send private message
Display posts from previous:   
Subject Author Date/Time
New chess engine: Texel Peter Österlund Sat Mar 24, 2012 1:43 pm
      Re: New chess engine: Texel Martin Sedlak Sat Mar 24, 2012 1:59 pm
            Re: New chess engine: Texel Peter Österlund Sat Mar 24, 2012 2:10 pm
                  Re: New chess engine: Texel Martin Sedlak Sat Mar 24, 2012 2:27 pm
                        Re: New chess engine: Texel Adam Hair Sat Mar 24, 2012 5:36 pm
                              Re: New chess engine: Texel Don Dailey Sat Mar 24, 2012 8:00 pm
                        Re: New chess engine: Texel Don Dailey Sat Mar 24, 2012 7:58 pm
                              Re: New chess engine: Texel Adam Hair Sat Mar 24, 2012 10:31 pm
      Re: New chess engine: Texel Louis Zulli Sat Mar 24, 2012 2:28 pm
            Re: New chess engine: Texel Peter Österlund Sat Mar 24, 2012 4:09 pm
                  Re: New chess engine: Texel Louis Zulli Sat Mar 24, 2012 5:39 pm
                  Re: New chess engine: Texel Louis Zulli Sat Mar 24, 2012 10:36 pm
                        Re: New chess engine: Texel Peter Österlund Sun Mar 25, 2012 8:58 am
                              Re: New chess engine: Texel Louis Zulli Sun Mar 25, 2012 10:10 am
                                    Re: New chess engine: Texel Bill Henry Sun Mar 25, 2012 5:30 pm
      Re: New chess engine: Texel Graham Banks Sat Mar 24, 2012 2:45 pm
      Re: New chess engine: Texel Adam Hair Sat Mar 24, 2012 5:40 pm
      Re: New chess engine: Texel Marco Costalba Sat Mar 24, 2012 6:09 pm
            Re: New chess engine: Texel Peter Österlund Sun Mar 25, 2012 9:00 am
      Re: New chess engine: Texel Graham Banks Sat Mar 24, 2012 6:37 pm
            Re: New chess engine: Texel Graham Banks Sat Mar 24, 2012 7:03 pm
                  Re: New chess engine: Texel Patrick Buchmann Sat Mar 24, 2012 7:15 pm
                        Re: New chess engine: Texel Thomas Lagershausen Sat Mar 24, 2012 7:45 pm
      Re: New chess engine: Texel Adam Hair Sun Mar 25, 2012 12:08 am
            Re: New chess engine: Texel Tony Mokonen Sun Mar 25, 2012 2:46 am
                  Re: New chess engine: Texel Peter Österlund Sun Mar 25, 2012 9:05 am
      Re: New chess engine: Texel fernando Sun Mar 25, 2012 1:41 am
            Re: New chess engine: Texel Jim Ablett Sun Mar 25, 2012 7:24 pm
                  Re: New chess engine: Texel Peter Österlund Sun Mar 25, 2012 7:57 pm
                        Re: New chess engine: Texel Jim Ablett Sun Mar 25, 2012 8:18 pm
                        Re: New chess engine: Texel George Speight Mon Mar 26, 2012 12:04 am
                              Re: New chess engine: Texel Graham Banks Mon Mar 26, 2012 8:11 am
                                    Re: New chess engine: Texel Mike Scheidl Mon Mar 26, 2012 11:03 am
                              Re: New chess engine: Texel Peter Österlund Mon Mar 26, 2012 4:04 pm
                                    Re: New chess engine: Texel Martin Sedlak Mon Mar 26, 2012 10:26 pm
                                          Re: New chess engine: Texel George Speight Thu Mar 29, 2012 4:08 am
                  Re: New chess engine: Texel Adam Hair Sun Mar 25, 2012 9:47 pm
                  Re: New chess engine: Texel George Speight Mon Mar 26, 2012 7:36 am
      Re: New chess engine: Texel E Diaz Sun Mar 25, 2012 9:13 am
      Re: New chess engine: Texel E Diaz Mon Mar 26, 2012 9:51 am
      Re: New chess engine: Texel Thorsten Czub Tue Mar 27, 2012 9:28 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: General Topics

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads