Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation #16

Closed
wolfv506 opened this issue Oct 28, 2021 · 6 comments
Closed

Windows installation #16

wolfv506 opened this issue Oct 28, 2021 · 6 comments

Comments

@wolfv506
Copy link

Hi,

I followed your guide for the windows installation, but it just won't work. Everything goes fine until I run the command (ichiran/mnt:add-errata) through sbcl. I always get the error: alien function "gai_strerror" is undefined. The same error appears when I directly run (ichiran/test:run-all-tests). Do you have any idea? I'm on Windows 10 64bit and tried sbcl versions 2.1.9, 2.1.6.

thanks in advance

@tshatrov
Copy link
Owner

Can you post the full traceback? I haven't seen such an error, and I've been running this on Windows 10 too.

@wolfv506
Copy link
Author

Sure. I try to document the whole process because I don’t know where the error stems from. I’ve attached a few logfiles from the whole installation process of sbcl as well. I don’t know if its relevant but I build the sbcl.exe with the 2.1.4. x64 binary and the 2.1.6 source code (I also tried to build it with 2.1.9 binary and 2.1.9 source code but ran into build errors).

This time I couldn't reproduce the gai_strerror error, but got another error instead while running the command (ql:quickload :ichiran). If you don't know german "Das System konnte den Pfad nicht finden" means "The System couldn't find the path":


; Loading "lparallel"
ASDF could not load sb-cltl2 because Failed to find the TRUENAME of "C:\\Users\\Wolfi\\quicklisp\\dists\\quicklisp\\software\\lparallel-20160825-git\\.\\lib\\sbcl": Das System kann den angegebenen Pfad nicht finden..
While evaluating the form starting at line 31, column 0
  of #P"C:/Users/Wolfi/quicklisp/dists/quicklisp/software/lparallel-20160825-git/lparallel.asd":

debugger invoked on a LOAD-SYSTEM-DEFINITION-ERROR in thread #<THREAD "main thread" RUNNING {1002300153}>: Error while trying to load definition for system lparallel from pathname C:/Users/Wolfi/quicklisp/dists/quicklisp/software/lparallel-20160825-git/lparallel.asd: Failed to find the TRUENAME of "C:\\Users\\Wolfi\\quicklisp\\dists\\quicklisp\\software\\lparallel-20160825-git\\.\\lib\\sbcl": Das System kann den angegebenen Pfad nicht finden.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [USE-VALUE                    ] Specify a different path.
  1: [RETRY                        ] Retry completing load for #<REQUIRE-SYSTEM "sb-cltl2">.
  2: [ACCEPT                       ] Continue, treating completing load for #<REQUIRE-SYSTEM "sb-cltl2"> as having been successful.
  3: [RETRY                        ] Retry EVAL of current toplevel form.
  4: [CONTINUE                     ] Ignore error and continue loading file "C:\\Users\\Wolfi\\quicklisp\\dists\\quicklisp\\software\\lparallel-20160825-git\\lparallel.asd".
  5: [ABORT                        ] Abort loading file "C:\\Users\\Wolfi\\quicklisp\\dists\\quicklisp\\software\\lparallel-20160825-git\\lparallel.asd".
  6:                                 Retry #<DEFINE-OP > on #<UNDEFINED-SYSTEM "lparallel">.
  7:                                 Continue, treating #<DEFINE-OP > on #<UNDEFINED-SYSTEM "lparallel"> as having been successful.
  8:                                 Retry ASDF operation.
  9: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration.
 10:                                 Retry ASDF operation.
 11:                                 Retry ASDF operation after resetting the configuration.
 12:                                 Give up on "lparallel"
 13:                                 Give up on "ichiran"
 14: [REGISTER-LOCAL-PROJECTS      ] Register local projects and try again.
 15:                                 Exit debugger, returning to top level.

((FLET "H0" :IN PERFORM) #<SB-INT:SIMPLE-FILE-ERROR "Failed to find the ~A of ~S" {1004D8E3F3}>)
   source: (ERROR (QUOTE LOAD-SYSTEM-DEFINITION-ERROR) :NAME (COERCE-NAME S) :PATHNAME PATHNAME :CONDITION CONDITION)
0

ichiran_load.txt
sbcl_buildlog.txt
sbcl_installlog.txt
]

@wolfv506
Copy link
Author

wolfv506 commented Oct 29, 2021

Ok..I just reinstalled quicklisp, this time there was no problem with ichiran:load but the gai strerror error came again when add-errata:

* (ichiran/mnt:add-errata)

debugger invoked on a SB-KERNEL::UNDEFINED-ALIEN-FUNCTION-ERROR @20000A61 in thread
#<THREAD "main thread" RUNNING {10022D05D3}>:
  The alien function "gai_strerror" is undefined.

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RECONNECT] Try again.
  1: [ABORT    ] Exit debugger, returning to top level.

("undefined function")
0]

ichiran_load_withouterror.txt

@tshatrov
Copy link
Owner

tshatrov commented Oct 29, 2021

I don't see any tracebacks, can you invoke backtrace while in debugger? That way I'll know where in the code this error happens.

Also I see you built SBCL without --fancy flag, so maybe it's lacking some feature that's needed for this to work. You can also try the official binaries (the latest version 2.1.10 is available for Windows)

@wolfv506
Copy link
Author

Here's the backtrace:

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1005720003}>
0: ("undefined function")
1: ((SB-KERNEL::CONDITION-REPORT SB-BSD-SOCKETS:NAME-SERVICE-ERROR) #<SB-BSD-SOCKETS:HOST-NOT-FOUND-ERROR {1007BD9223}> #<SB-IMPL::STRING-OUTPUT-STREAM {5FEEA3}>)
2: ((LABELS SB-IMPL::HANDLE-IT :IN SB-KERNEL:OUTPUT-OBJECT) #<SB-IMPL::STRING-OUTPUT-STREAM {5FEEA3}>)
3: (SB-INT:STRINGIFY-OBJECT #<SB-BSD-SOCKETS:HOST-NOT-FOUND-ERROR {1007BD9223}>)
4: (PRINC-TO-STRING #<SB-BSD-SOCKETS:HOST-NOT-FOUND-ERROR {1007BD9223}>)
5: (CL-POSTGRES::WRAP-SOCKET-ERROR #<SB-BSD-SOCKETS:HOST-NOT-FOUND-ERROR {1007BD9223}>)
6: ((FLET CL-POSTGRES::ADD-RESTART :IN CL-POSTGRES::INITIATE-CONNECTION) #<SB-BSD-SOCKETS:HOST-NOT-FOUND-ERROR {1007BD9223}>)
7: (CL-POSTGRES::INITIATE-CONNECTION #<CL-POSTGRES:DATABASE-CONNECTION {1007BD88D3}> 0)
8: (CL-POSTGRES:OPEN-DATABASE "jmdict" "postgres" "123" "5432" 5432 :NO "postgres" "" NIL)
9: (ICHIRAN/MAINTENANCE:ADD-ERRATA NIL)
10: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ICHIRAN/MAINTENANCE:ADD-ERRATA) #<NULL-LEXENV>)
11: (EVAL (ICHIRAN/MAINTENANCE:ADD-ERRATA))
12: (INTERACTIVE-EVAL (ICHIRAN/MAINTENANCE:ADD-ERRATA) :EVAL NIL)
13: (SB-IMPL::REPL-FUN NIL)
14: ((LAMBDA NIL :IN SB-IMPL::TOPLEVEL-REPL))
15: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<FUNCTION (LAMBDA NIL :IN SB-IMPL::TOPLEVEL-REPL) {10040EC25B}>)
16: (SB-IMPL::TOPLEVEL-REPL NIL)
17: (SB-IMPL::TOPLEVEL-INIT)
18: ((FLET SB-UNIX::BODY :IN SB-IMPL::START-LISP))
19: ((FLET "WITHOUT-INTERRUPTS-BODY-1" :IN SB-IMPL::START-LISP))
20: (SB-IMPL::START-LISP)
21: ("foreign function: #x14002C7B3")
22: ("foreign function: #x14000438E")

The issue seems to be related to the database connection. I just checked the settings.lisp file and the connection parameters are definitely correct...

@wolfv506
Copy link
Author

Update: I found my mistake...I used the portnumber instead of keeping "localhost" in the settings...now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants