It is currently Thu Sep 21, 2017 5:36 pm Advanced search

How to compile bocsimacko bot under Windows?

Share and discuss ideas for your entries here.

How to compile bocsimacko bot under Windows?

Postby Invader » Tue Dec 28, 2010 7:34 pm

I was trying to do this during the last month. With no success :(
Attempting to compile both detarred snapshots from http://quotenil.com/git/?p=planet-wars.git;a=summary
and the code cloned from the repository http://quotenil.com/git/planet-wars.git with msysgit.
With both SBCL port for Windows (oficial version 1.0.37 and non-oficial 1.0.44, supporting multithreading)
and Allegro ACL express v.8.2 (with alisp.exe compiled after its installation).

Here are log files obtained by running make on cloned repository with both SBCL and ACL configs:

sbcllog.txt:

sh bin/run-lisp.sh --load MyBot.lisp --eval "(cl-user::dump \""bocsimacko-`git describe --tags --dirty`"\")"
; loading system definition from /y/planet-wars/planet-wars.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM #:PLANET-WARS> as PLANET-WARS
; loading system definition from /y/planet-wars/planet-wars-util.asd into
; #<PACKAGE "ASDF0">
; registering #<SYSTEM #:PLANET-WARS-UTIL> as PLANET-WARS-UTIL
; loading system definition from /y/planet-wars/src/alexandria/alexandria.asd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM :ALEXANDRIA> as ALEXANDRIA
; loading system definition from /y/planet-wars/src/usocket-0.4.1/usocket.asd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM USOCKET> as USOCKET
; loading system definition from
; C:/Program Files (x86)/Steel Bank Common Lisp/1.0.44.211/sb-bsd-sockets/sb-bsd-sockets.asd
; into #<PACKAGE "ASDF0">
; registering #<SYSTEM SB-BSD-SOCKETS> as SB-BSD-SOCKETS
; loading system definition from
; /y/planet-wars/src/split-sequence/split-sequence.asd into #<PACKAGE "ASDF0">
; registering #<SYSTEM :SPLIT-SEQUENCE> as SPLIT-SEQUENCE
; loading system definition from
; /y/planet-wars/src/parse-number/parse-number.asd into #<PACKAGE "ASDF0">
; registering #<SYSTEM PARSE-NUMBER> as PARSE-NUMBER
WARNING: wait-for-input not (yet!) supported...
STYLE-WARNING: redefining SB-IMPL::HEAP-PARENT in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-LEFT in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-RIGHT in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAPIFY in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-INSERT in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-MAXIMUM in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-EXTRACT in DEFUN
STYLE-WARNING: redefining SB-IMPL::HEAP-EXTRACT-MAXIMUM in DEFUN
STYLE-WARNING: redefining SB-IMPL::%MAKE-PRIORITY-QUEUE in DEFUN
STYLE-WARNING: redefining SB-IMPL::MAKE-PRIORITY-QUEUE in DEFUN
STYLE-WARNING:
redefining PRINT-OBJECT (#<STRUCTURE-CLASS PRIORITY-QUEUE>
#<BUILT-IN-CLASS T>) in DEFMETHOD
STYLE-WARNING: redefining SB-IMPL::PRIORITY-QUEUE-MAXIMUM in DEFUN
STYLE-WARNING: redefining SB-IMPL::PRIORITY-QUEUE-EXTRACT-MAXIMUM in DEFUN
STYLE-WARNING: redefining SB-IMPL::PRIORITY-QUEUE-INSERT in DEFUN
STYLE-WARNING: redefining SB-IMPL::PRIORITY-QUEUE-EMPTY-P in DEFUN
STYLE-WARNING: redefining SB-IMPL::PRIORITY-QUEUE-REMOVE in DEFUN
STYLE-WARNING: redefining SB-IMPL::%MAKE-TIMER in DEFUN
STYLE-WARNING:
redefining PRINT-OBJECT (#<STRUCTURE-CLASS TIMER>
#<BUILT-IN-CLASS T>) in DEFMETHOD
STYLE-WARNING: redefining SB-EXT:MAKE-TIMER in DEFUN
STYLE-WARNING: redefining SB-EXT:TIMER-NAME in DEFUN
STYLE-WARNING: redefining SB-EXT:TIMER-SCHEDULED-P in DEFUN
STYLE-WARNING: redefining SB-IMPL::PEEK-SCHEDULE in DEFUN
STYLE-WARNING: redefining SB-IMPL::TIME-LEFT in DEFUN
STYLE-WARNING: redefining SB-IMPL::DELTA->REAL in DEFUN
STYLE-WARNING: redefining SB-IMPL::MAKE-CANCELLABLE-INTERRUPTOR in DEFUN
STYLE-WARNING: redefining SB-IMPL::%SCHEDULE-TIMER in DEFUN
STYLE-WARNING: redefining SB-EXT:SCHEDULE-TIMER in DEFUN
STYLE-WARNING: redefining SB-EXT:UNSCHEDULE-TIMER in DEFUN
STYLE-WARNING: redefining SB-EXT:LIST-ALL-TIMERS in DEFUN
STYLE-WARNING: redefining SB-IMPL::RESCHEDULE-TIMER in DEFUN
STYLE-WARNING: redefining SB-IMPL::REAL-TIME->SEC-AND-USEC in DEFUN
STYLE-WARNING: redefining SB-IMPL::SET-SYSTEM-TIMER in DEFUN
STYLE-WARNING: redefining SB-IMPL::RUN-TIMER in DEFUN
STYLE-WARNING: redefining SB-IMPL::RUN-EXPIRED-TIMERS in DEFUN
STYLE-WARNING: redefining SB-IMPL::TIMEOUT-CERROR in DEFUN

; compiling file "C:/y/planet-wars/src/player.lisp" (written 27 DEC 2010 07:25:02 PM):
; compiling (IN-PACKAGE :PLANET-WARS)
; compiling (DEFVAR *DEPTH*)
; compiling (DEFVAR *TURN*)
; compiling (DECLAIM (TYPE # ...))
; compiling (DEFVAR *BEST-MOVE-SO-FAR*)
; compiling (DEFUN REGISTER-EVALUATED-MOVE ...)
; compiling (DEFMACRO WITH-BEST-MOVE-ON-TIMEOUT ...)
; compiling (DEFCLASS FUTURE ...)
; compiling (DEFMETHOD PRINT-OBJECT ...)
; compiling (DEFUN FIRST-OWNER ...)
; compiling (DEFUN LAST-OWNER ...)
; compiling (DEFINE-CONDITION FUTURE-IMPOSSIBLE ...)
; compiling (DEFUN COMPUTE-FUTURE* ...)
; compiling (DEFUN COMPUTE-FUTURE ...)
; compiling (DEFUN CUMULATIVE-SURPLUS ...)
; compiling (DEFUN UNCUMULATE-SURPLUS! ...)
; compiling (DEFUN UNCUMULATE-SURPLUS ...)
; compiling (DEFUN SURPLUS ...)
; compiling (DEFCLASS FULL-ATTACK-FUTURE ...)
; compiling (DEFUN COMPUTE-FULL-ATTACK-FUTURE ...)
; compiling (DEFUN ADD-SURPLUS-INTO-ARRIVALS ...)
; compiling (DEFUN COMPUTE-FULL-ATTACK-ARRIVALS ...)
; compiling (DEFUN UPDATE-FULL-ATTACK-ARRIVALS ...)
; compiling (DEFUN MAKE-FULL-ATTACK-ARRIVALS ...)
; compiling (DEFUN SCORE ...)
; compiling (DEFUN EVALUATE/FULL-ATTACK ...)
; compiling (DEFUN EVALUATE-PLANET ...)
; compiling (DEFUN FIRST-NON-NEUTRAL-TURN ...)
; compiling (DEFUN CANDIDATE-MIN-TURNS-TO-ARRIVE ...)
; compiling (DEFUN EVALUATE-NON-NEUTRAL-PLANET ...)
; compiling (DEFUN EVAL* ...)
; compiling (DEFUN COMPUTE-STEP-TARGET ...)
; compiling (DEFUN ARRIVALS-OF-PLAYER ...)
; compiling (DEFUN FIND-FIRST-OWNERSHIP-CHANGE ...)
; compiling (DEFUN FIND-FIRST-POSSIBLE-TAKEOVER-OPPORTUNITY ...)
; compiling (DEFUN MAYBE-TAKE-OVER-AND-DEFEND ...)
; compiling (DEFUN FIND-NEUTRAL-STEAL ...)
; compiling (DEFUN FIND-STEP ...)
; compiling (DEFUN FIND-STEPS ...)
; compiling (DEFUN TAKEABLEP ...)
; compiling (DEFUN GENERATE-CANDIDATE-STEPS ...)
; compiling (DEFUN PLANETS-INVOLVED-IN-MOVE ...)
; compiling (DEFUN VALID-MOVE-P ...)
; compiling (DEFUN GENERATE-MOVES-FROM-STEPS ...)
; compiling (DEFUN SCORE-AND-SORT-MOVES ...)
; compiling (DEFUN GENERATE-AND-SCORE-MOVES ...)
; compiling (DEFUN SAFETY-MARGIN ...)
; compiling (DEFUN SAFETY-MARGIN! ...)
; compiling (DEFUN N-TURNS-TO-BREAK-EVEN ...)
; compiling (DEFUN SAFE-TO-INVEST-P ...)
; compiling (DEFUN HORIZON ...)
; compiling (DEFCLASS BOCSIMACKO ...)System info:
(#P"C:/y/planet-wars/"
(:SPLIT-SEQUENCE :ASDF2 :ASDF :SB-AFTER-XC-CORE :ANSI-CL :COMMON-LISP :SBCL
:SB-DOC :SB-TEST :SB-LDB :SB-PACKAGE-LOCKS :SB-UNICODE :SB-EVAL
:SB-SOURCE-LOCATIONS :IEEE-FLOATING-POINT :X86 :WIN32 :SB-PTHREAD-FUTEX
:SB-THREAD :SB-FOREIGN-THREAD :GENCGC :STACK-GROWS-DOWNWARD-NOT-UPWARD
:C-STACK-IS-CONTROL-STACK :COMPARE-AND-SWAP-VOPS
:UNWIND-TO-FRAME-AND-CALL-VOP :RAW-INSTANCE-INIT-VOPS
:STACK-ALLOCATABLE-CLOSURES :STACK-ALLOCATABLE-VECTORS
:STACK-ALLOCATABLE-LISTS :STACK-ALLOCATABLE-FIXED-OBJECTS :ALIEN-CALLBACKS
:CYCLE-COUNTER :INLINE-CONSTANTS :ALIEN-CALLBACK-CONVENTIONS
:ALIEN-CALLBACK-STDCALL :ALIEN-CALLBACK-CDECL :MEMORY-BARRIER-VOPS
:LINKAGE-TABLE :OS-PROVIDES-DLOPEN :OS-PROVIDES-PUTWC)
"SBCL" "1.0.44.211"
(#P"C:/y/planet-wars/.git/" #P"C:/y/planet-wars/.gitignore"
#P"C:/y/planet-wars/Makefile" #P"C:/y/planet-wars/README"
#P"C:/y/planet-wars/README-LISP" #P"C:/y/planet-wars/bin/"
#P"C:/y/planet-wars/config" #P"C:/y/planet-wars/configure"
#P"C:/y/planet-wars/example_bots/" #P"C:/y/planet-wars/games/"
#P"C:/y/planet-wars/maps/" #P"C:/y/planet-wars/src/"
#P"C:/y/planet-wars/tools/"))
unhandled SB-EXT:PACKAGE-LOCKED-ERROR in thread #<SB-THREAD:THREAD
"initial thread" RUNNING
{23DDADF9}>:
Lock on package SB-UNIX violated when interning *ON-DANGEROUS-SELECT*.
See also:
The SBCL Manual, Node "Package Locks"

0: (SB-DEBUG::MAP-BACKTRACE #<CLOSURE (LAMBDA #) {24BA166D}>)[:EXTERNAL]
1: (SB-DEBUG:BACKTRACE 128 #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDOUT* {2240DD19}>)
2: (SB-DEBUG::DEBUGGER-DISABLED-HOOK
#<SB-EXT:PACKAGE-LOCKED-ERROR {24B8E041}>
#<unavailable argument>)
3: (SB-DEBUG::RUN-HOOK
SB-EXT:*INVOKE-DEBUGGER-HOOK*
#<SB-EXT:PACKAGE-LOCKED-ERROR {24B8E041}>)
4: (INVOKE-DEBUGGER #<SB-EXT:PACKAGE-LOCKED-ERROR {24B8E041}>)
5: (CERROR "Ignore the package lock." SB-EXT:PACKAGE-LOCKED-ERROR)[:EXTERNAL]
6: (SB-EXT:PACKAGE-LOCK-VIOLATION #<PACKAGE "SB-UNIX">)[:EXTERNAL]
7: (SB-IMPL::ASSERT-PACKAGE-UNLOCKED
#<PACKAGE "SB-UNIX">
"interning ~A"
"*ON-DANGEROUS-SELECT*")
8: ((FLET SB-IMPL::THUNK))
9: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]324))
10: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK
#<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK) {28EC55}>
#S(SB-THREAD:MUTEX
:NAME "Package Graph Lock"
:%OWNER #<SB-THREAD:THREAD "initial thread" RUNNING {23DDADF9}>
:STATE 1))
11: (SB-IMPL::CALL-WITH-PACKAGE-GRAPH #<CLOSURE (FLET SB-IMPL::THUNK) {28EC85}>)
12: (SB-INT:INTERN*
"*ON-DANGEROUS-SELECT** "
21
#<PACKAGE "SB-UNIX">)
13: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\s)
14: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
15: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
16: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
17: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
18: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
19: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
20: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
21: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
22: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
23: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
24: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
25: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\()
26: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
27: (SB-IMPL::%READ-PRESERVING-WHITESPACE
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
T
NIL
T)
28: (READ
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
T
NIL
T)
29: (SB-IMPL::BACKQUOTE-MACRO
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
30: (SB-IMPL::READ-MAYBE-NOTHING
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#\`)
31: (SB-IMPL::READ-LIST
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
#<unavailable argument>)
32: (SB-IMPL::%READ-PRESERVING-WHITESPACE
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
NIL
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
T)
33: (SB-IMPL::%READ-PRESERVING-WHITESPACE
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
NIL
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
NIL)
34: (SB-C::READ-FOR-COMPILE-FILE
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\src\\player.lisp"
{2413C799}>
51957)
35: (SB-C::SUB-SUB-COMPILE-FILE #<SB-C::SOURCE-INFO >)
36: ((LAMBDA ()))
37: ((FLET SB-C::WITH-IT))
38: (SB-C::SUB-COMPILE-FILE #<SB-C::SOURCE-INFO >)
39: (COMPILE-FILE #P"C:/y/planet-wars/src/player.lisp")[:EXTERNAL]
40: (ASDF:COMPILE-FILE* #P"C:/y/planet-wars/src/player.lisp")[:EXTERNAL]
41: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE))
#<unavailable argument>
#<unavailable argument>
#<ASDF:COMPILE-OP NIL {24DF81C9}>
#<ASDF:CL-SOURCE-FILE "planet-wars" "src" "player">)
42: ((SB-PCL::EMF ASDF:PERFORM)
#<unavailable argument>
#<unavailable argument>
#<ASDF:COMPILE-OP NIL {24DF81C9}>
#<ASDF:CL-SOURCE-FILE "planet-wars" "src" "player">)
43: ((SB-PCL::FAST-METHOD ASDF::PERFORM-WITH-RESTARTS
(ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE))
#<unavailable argument>
#S(SB-PCL::FAST-METHOD-CALL
:FUNCTION #<FUNCTION #>
:PV NIL
:NEXT-METHOD-CALL NIL
:ARG-INFO (2))
#<ASDF:COMPILE-OP NIL {24DF81C9}>
#<ASDF:CL-SOURCE-FILE "planet-wars" "src" "player">)
44: ((LAMBDA ()))
45: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
46: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]324))
47: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK
#<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK) {28F76D}>
#S(SB-THREAD:MUTEX
:NAME "World Lock"
:%OWNER #<SB-THREAD:THREAD "initial thread" RUNNING {23DDADF9}>
:STATE 1))
48: ((FLET SB-C::WITH-IT))
49: ((SB-PCL::FAST-METHOD ASDF:OPERATE (T T))
#<unavailable argument>
#<unavailable argument>
ASDF:LOAD-OP
:PLANET-WARS)[:EXTERNAL]
50: ((LAMBDA ()))
51: (SB-INT:SIMPLE-EVAL-IN-LEXENV
(LET ((*ERROR-OUTPUT* *STANDARD-OUTPUT*))
(HANDLER-BIND ((ERROR
(LAMBDA (COMMON-LISP-USER::C)
(DECLARE (IGNORE COMMON-LISP-USER::C))
(FORMAT *STANDARD-OUTPUT* "System info:~% ~S~%"
(LIST *DEFAULT-PATHNAME-DEFAULTS* *FEATURES*
(LISP-IMPLEMENTATION-TYPE)
(LISP-IMPLEMENTATION-VERSION)
(DIRECTORY "**"))))))
(LOAD (MERGE-PATHNAMES "setup.lisp" *LOAD-TRUENAME*))
(ASDF:OOS 'ASDF:LOAD-OP :PLANET-WARS)))
#<NULL-LEXENV>)
52: (SB-FASL::LOAD-AS-SOURCE
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\MyBot.lisp" {23DE3971}>
NIL
NIL)
53: ((FLET SB-FASL::LOAD-STREAM)
#<SB-SYS:FD-STREAM for "file C:\\y\\planet-wars\\MyBot.lisp" {23DE3971}>
NIL)
54: (LOAD #P"MyBot.lisp")[:EXTERNAL]
55: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS
((:LOAD . "MyBot.lisp")
(:EVAL . "(cl-user::dump \"bocsimacko-final-1-g3ec4b37-dirty\")")))
56: (SB-IMPL::TOPLEVEL-INIT)
57: ((LABELS SB-IMPL::RESTART-LISP))
58: ("foreign function: #x41B6E7")
59: ("foreign function: #x40E06B")

unhandled condition in --disable-debugger mode, quitting
; compilation aborted after 0:00:01.342
;
; compilation unit aborted
; caught 2 fatal ERROR conditions

Alisplog.txt

; Fast loading C:\acl82express\code\ASDF.fasl
; Autoloading for package "EXCL.OSI":
; Fast loading C:\acl82express\code\OSI.fasl
; Fast loading from bundle code\FILEUTIL.fasl.
;; Autoloading locale from #P"C:\\acl82express\\locales\\en_US"
; Autoloading for LOAD-LOCALEDEF:
; Fast loading from bundle code\locale.fasl.
; Autoloading for package "REGEXP":
; Fast loading from bundle code\REGEXP2-S.fasl.
; Autoloading for REGEXP::MAKE-VM-CLOSURE:
; Fast loading C:\acl82express\code\regexp2.fasl
; Fast loading C:\acl82express\code\YACC.fasl
; Loading C:\y\planet-wars\setup.lisp
; loading system definition from \y\planet-wars\planet-wars.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\planet-wars.asd
; registering #<SYSTEM #:PLANET-WARS @ #x2069feb2> as PLANET-WARS
; loading system definition from \y\planet-wars\planet-wars-util.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\planet-wars-util.asd
; registering #<SYSTEM #:PLANET-WARS-UTIL @ #x206acfa2> as PLANET-WARS-UTIL
; loading system definition from \y\planet-wars\src\alexandria\alexandria.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\src\alexandria\alexandria.asd
; registering #<SYSTEM :ALEXANDRIA @ #x206c4d62> as ALEXANDRIA
; loading system definition from \y\planet-wars\src\usocket-0.4.1\usocket.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\src\usocket-0.4.1\usocket.asd
; registering #<SYSTEM USOCKET @ #x207869ca> as USOCKET
; loading system definition from \y\planet-wars\src\split-sequence\split-sequence.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\src\split-sequence\split-sequence.asd
; registering #<SYSTEM :SPLIT-SEQUENCE @ #x207909ea> as SPLIT-SEQUENCE
; loading system definition from \y\planet-wars\src\parse-number\parse-number.asd into #<The ASDF0 package>
; Loading C:\y\planet-wars\src\parse-number\parse-number.asd
; registering #<SYSTEM PARSE-NUMBER @ #x2079d8ca> as PARSE-NUMBER
; Fast loading C:\y\planet-wars\src\util\package.fasl
; Fast loading C:\y\planet-wars\src\util\util.fasl
; Autoloading for package "TOP-LEVEL.DEBUG":
; Fast loading from bundle code\AUTOZOOM.fasl.
; Fast loading C:\y\planet-wars\src\alexandria\package.fasl
; Fast loading C:\y\planet-wars\src\alexandria\definitions.fasl
; Fast loading C:\y\planet-wars\src\alexandria\binding.fasl
; Fast loading C:\y\planet-wars\src\alexandria\strings.fasl
; Fast loading C:\y\planet-wars\src\alexandria\conditions.fasl
; Fast loading C:\y\planet-wars\src\alexandria\hash-tables.fasl
; Fast loading C:\y\planet-wars\src\alexandria\symbols.fasl
; Fast loading C:\y\planet-wars\src\alexandria\macros.fasl
; Fast loading C:\y\planet-wars\src\alexandria\io.fasl
; Fast loading C:\y\planet-wars\src\alexandria\control-flow.fasl
; Fast loading C:\y\planet-wars\src\alexandria\functions.fasl
; Fast loading C:\y\planet-wars\src\alexandria\lists.fasl
; Fast loading C:\y\planet-wars\src\alexandria\types.fasl
; Fast loading C:\y\planet-wars\src\alexandria\arrays.fasl
; Fast loading C:\y\planet-wars\src\alexandria\sequences.fasl
; Fast loading C:\y\planet-wars\src\alexandria\numbers.fasl
; Fast loading C:\y\planet-wars\src\alexandria\features.fasl
; Fast loading C:\y\planet-wars\src\split-sequence\split-sequence.fasl
; Fast loading C:\y\planet-wars\src\usocket-0.4.1\package.fasl
; Fast loading C:\y\planet-wars\src\usocket-0.4.1\usocket.fasl
; Fast loading C:\y\planet-wars\src\usocket-0.4.1\condition.fasl
; Fast loading C:\y\planet-wars\src\usocket-0.4.1\backend\allegro.fasl
; Fast loading C:\y\planet-wars\src\parse-number\parse-number.fasl
; Fast loading C:\y\planet-wars\src\package.fasl
; Fast loading C:\y\planet-wars\src\model.fasl
; Fast loading C:\y\planet-wars\src\io.fasl
; Fast loading C:\y\planet-wars\src\play.fasl
; Fast loading C:\y\planet-wars\src\player.fasl
; Fast loading C:\y\planet-wars\src\alpha-beta.fasl
Warning: An error occurred
(Attempt to take the value of the unbound variable
`|"BOCSIMACKO-FINAL-1-G3EC4B37-DIRTY"|'.)
during the reading or evaluation of -e
"(cl-user::dump \\\"bocsimacko-final-1-g3ec4b37-dirty\\\")"
International Allegro CL Free Express Edition
8.2 [Windows] (Dec 22, 2010 14:49)
Copyright (C) 1985-2010, Franz Inc., Oakland, CA, USA. All Rights Reserved.

This development copy of Allegro CL is licensed to:
Allegro CL 8.2 Express user

;; Optimization settings: safety 1, space 1, speed 1, debug 2.
;; For a complete description of all compiler switches given the
;; current optimization settings evaluate (EXPLAIN-COMPILER-SETTINGS).
CL-USER(1):

*************************************************************************

I could not decipher those log files myself to decide what was wrong during the compilations
and what needs to be done to make at least one of 2 compilations successfull.

The only successful compilation until now was my compilation of snapshot of "v.0.8", but the
Windows executable "Mybot-" (32M in size!) presents (after adding the extention ".exe" to it) something
very primitive: it just sends 3 ships to a random planet at each turn and never wins :(

If somebody has succeeded in compiling bocsimacko' s bot in Windows (final release, or some of previous releases
excepting "Starter packige" for lisp) I would greatly appreciate the detailed instructions of how to do this.
Invader
Cadet
 
Posts: 3
Joined: Sat Nov 20, 2010 6:24 pm

Re: How to compile bocsimacko bot under Windows?

Postby bocsimacko » Tue Jan 04, 2011 12:45 pm

Apparently I would need to weed out a few unixisms from the sources to make it run on sbcl on windows.

The problem with the windows acl build seems to be minor:

"(cl-user::dump \\\"bocsimacko-final-1-g3ec4b37-dirty\\\")"

Some funny escaping is going on in the Makefile. Just set BIN:

BIN=bocsimacko.exe

and I think it'll be fine.
bocsimacko
Major
 
Posts: 36
Joined: Wed Feb 10, 2010 10:06 pm

Re: How to compile bocsimacko bot under Windows?

Postby Invader » Fri Jan 14, 2011 7:06 pm

Unfortunately, none of easy recipes (replacing of $Bin by a simpler string like "bocsimacko.exe" or deopping variable
$Bin alltogetherm. replacing it by its literal value) does not work.

And I think there is no sense in torturing make file: the bot would fail to compile under Windows until
SBCL itself would not be replaced by a newer version able to translate SB-Unix Lisp code, contained in timer.lisp
into assembler/C code contained in pthread library sitting at the back end. Strangely enough, though sourceforge version
of pthread library for Windows/cygwin is built 4 years ago, it seems nobody had tried to incorporate it into Windows SBCL port yet! I've found in the internet 2 realizations of SBCL for Windows, declared by its authors to be "multithreaded"
and having versions 1.0.43 and 1.0.44 but this are fakes, having nothing in common with posix threads, using at the back end
the ordinary windows threads instead with no translation of SB-Unix package to low level code available.

Well, I am trying now to compile SBCL under Windows/Mingw with HpthreadsGC2 library added to the source
and the SB-Unix feature added during the compilation. Now with no success :( After about 5 minutes of blah-blah the compilation stops telling about some strange C bugs in pthreads.h. As a result there are produced 2 core files
(sbcl.core and sbcl-cold.core) but no sbcl.exe :(

By the way, if one tries to compile the original sbcl git code of v.1.0.45, with no bytes channged at all, compiler at the end tells that SB-Unix package was not compiled (naturally). But SBCL.exe is absent as well, I do not know why :(
Invader
Cadet
 
Posts: 3
Joined: Sat Nov 20, 2010 6:24 pm


Return to Strategy

Who is online

Users browsing this forum: No registered users and 1 guest

cron