[Ecls-list] Total 3 problems on windows. "mk:load-system" "ASDF" "ECL_THREADS=1"

birulevo.net linkfly at birulevo.net
Wed May 30 19:44:00 UTC 2007


Hello, All!.

Total 3 problems.

I am success building ecl with MSVC8.

 (defun foo (x) (+ x 1))
 (compile 'foo)
 (foo 3)

 This work.

 1)Problem 1.   "mk:load-system"
 Try load trivial system:
 ;----------------
    ;exp.system
    (mk:defsystem exp
    :components
    ((:file "lisp")))
 ;--------------------------
    ;lisp.lisp
    (print "sdfsdfsdf") 
 ;---------------------------

 after (require 'defsystem) and (mk:load-system 'exp)
 too error: "ecl.exe - incorrect image" in occur
       dialog window :((
 but (compile-file "lisp.lisp") and (load "lisp.fas") work.

 

 2)Problem 2.  "ASDF"
 Try load trivial system:
 ;----------------
    ;exp.asd
(defsystem exp
    :components
    ((:file "lisp"))) 
 ;--------------------------
    ;lisp.lisp
    (print "sdfsdfsdf") 
 ;---------------------------

 after (require 'asdf) and (asdf:oos 'asdf:load-op 'exp) all ok!
 But when i am (asdf:oos 'asdf:load-op 'cffi) appear next dialog error:
     "ecl.exe - Entry point not found"
     "Entry point in procedure number_compare not found in library DLL
     ecl.dll."
How fixing this?
Add to Problem 3:
Log:
;------------------------------------------------------------------------
> (asdf:oos 'asdf:load-op 'cffi)
; loading system definition from cffi.asd into #<ASDF37 package>
;;; Loading "F:/Programming/Lisp/ecl-libs/cffi_0.9.2/cffi.asd"
; registering #<SYSTEM CFFI 14033832> as CFFI
;;; Loading #P"F:/Programming/Lisp/ecl_0.9i/cmp.fas"
;;; Loading #P"F:/Programming/Lisp/ecl_0.9i/sysfun.lsp"
;;; Loading "F:/Programming/Lisp/ecl-libs/cffi_0.9.2/src/utils.fas"
LOAD: Could not load file "F:/Programming/Lisp/ecl-libs/cffi_0.9.2/src/utils.fas
" (Error: "=х эрщфхэр єърчрээр  яЁюЎхфєЁр.
")
Broken at EVAL.Available restarts:
1. (RETRY) Retry performing #<ASDF:LOAD-OP NIL 16355288> on #<ASDF:CL-SOURCE-FIL
E "utils" 14100472>.
2. (ACCEPT) Continue, treating #<ASDF:LOAD-OP NIL 16355288> on #<ASDF:CL-SOURCE-
FILE "utils" 14100472> as having been successful.
Broken at ASDF:OPERATE.
>>
;------------------------------------------------------------------------
     



3)Problem 3. "ECL_THREADS=1"
 My target building "TBNL" with ECL. My guess what for this need in
 threads support.
 I am try building ECL with command "name ECL_THREADS=1" and (toward
 the end) geted this log:
;-----------------------------------------------------------------------------
F:\Programming\Lisp\ecl_0.9i\ecl_th\msvc>nmake ECL_THREADS=1

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

cmp asdf sockets clx rt defsystem
(cons :wants-defsystem (cons :wants-rt (cons :wants-clx (cons :wants-sockets (co
ns :wants-asdf (cons :wants-cmp (cons :wants-dlopen *features*)))))))
        cd c
        "E:\Microsoft Visual Studio 8\VC\bin\nmake.exe" "ECL_THREADS = 1" "ECL_C
FLAGS = -MD -EHsc -DGC_DLL -nologo -DECL_THREADS -DGC_BUILD"

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd ..
        cl /Feecl_min.exe cinit.obj c\all_symbols.obj eclmin.lib -MD /link /node
faultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /nodefaultlib:libd eclg
c.lib eclgmp.lib user32.lib ws2_32.lib shell32.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.

Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:ecl_min.exe
/nodefaultlib:libcmt
/nodefaultlib:libcmtd
/nodefaultlib:libc
/nodefaultlib:libd
eclgc.lib
eclgmp.lib
user32.lib
ws2_32.lib
shell32.lib
cinit.obj
c\all_symbols.obj
eclmin.lib
   Creating library ecl_min.lib and object ecl_min.exp
eclmin.lib(threads_win32.obj) : error LNK2019: unresolved external symbol _GC_Cr
eateThread at 24 referenced in function _mp_process_enable
eclgc.lib(misc.obj) : error LNK2019: unresolved external symbol _GC_thr_init ref
erenced in function _GC_init_inner
eclgc.lib(os_dep.obj) : error LNK2019: unresolved external symbol _GC_push_all_s
tacks referenced in function _GC_default_push_other_roots
eclgc.lib(mark_rts.obj) : error LNK2019: unresolved external symbol _GC_push_thr
ead_structures referenced in function _GC_push_gc_structures
eclgc.lib(alloc.obj) : error LNK2019: unresolved external symbol _GC_start_world
 referenced in function _GC_stopped_mark
eclgc.lib(alloc.obj) : error LNK2019: unresolved external symbol _GC_stop_world
referenced in function _GC_stopped_mark
eclgc.lib(dyn_load.obj) : error LNK2019: unresolved external symbol _GC_get_next
_stack referenced in function _GC_cond_add_roots
ecl_min.exe : fatal error LNK1120: 7 unresolved externals
NMAKE : fatal error U1077: '"E:\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : retu
rn code '0x2'
Stop. 
;-----------------------------------------------------------------------------

How building ECL with thread support?

P.S. I am try finding in ecl mailing list archives, but he was not
working:( (sometimes not work)



-- 
With respect,
  LinkFly                         mailto:linkfly at birulevo.net
















  

---------- Конец пересылаемого письма ----------
-- 
С уважением,
 birulevo.net                          mailto:linkfly at birulevo.net





More information about the ecl-devel mailing list