You are not logged in.

#1 2017-10-24 13:16:05

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

sbcl

trying to fix the maxima-opens-debugger problem, I scheduled sbcl for a rebuild with the result, that the build of sbcl now fails with the same error:

fatal error encountered in SBCL pid 475(tid 0xf7cb9700):
unexpected return from initial thread in main()


Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb>

The problem is, that sbcl is needed in order to build sbcl. I put the official i686 sbcl-package into build-support and built sbcl from there with the same result.

Offline

#2 2017-10-24 13:52:42

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

older versions of sbcl do not work, too. I tested with:
1.3.20-1, 1.3.19-1, 1.3.17-1, 1.2.8-1

Offline

#3 2017-10-24 15:18:24

tyzoid
Administrator
From: Ann Arbor, MI
Registered: 2017-06-17
Posts: 89

Re: sbcl

from http://www.sbcl.org/getting.html:

Compiling SBCL from Source
SBCL can be compiled from source code using another ANSI-compliant Common Lisp implementation. As of SBCL 0.8.13, the following compilers are known to work:

  • SBCL itself

  • CMU Common Lisp, tested with 18e and 19a

  • OpenMCL 0.14.1

  • CLISP 2.33.2

Alternatively, they offer a binary download directly for i686, which should work to do the rebuild.

Offline

#4 2017-10-27 07:42:13

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

I'll try to rewrite the PKGBUILD to bootstrap with the binary sbcl package from their site.

Offline

#5 2017-10-27 08:01:14

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

hmm, bootstrapping works on x86_64, but not on i686 :-/

Offline

#6 2017-10-27 08:08:08

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

ah, no, actually, on x86_64 it throws some error, but a different one:

x86-64-arch.c:141:44: error: dereferencing pointer to incomplete type 'os_context_t {aka struct ucontext}'
     return (os_context_register_t*)&context->uc_mcontext.gregs[17];
                                            ^~
x86-64-arch.c:155:1: warning: control reaches end of non-void function [-Wreturn-type]
 }

instead of

//Starting build: Fri Oct 27 10:05:25 CEST 2017
//Options: --prefix='/usr' --xc-host='sbcl'
This is SBCL 1.2.7, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
fatal error encountered in SBCL pid 547(tid 4157417216):
unexpected return from initial thread in main()


Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

The same errors happen with the original PKGBUILD which uses the arch-package for boot strapping.

Offline

#7 2017-10-27 08:09:57

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

for the sake of completeness: my modifications

Offline

#8 2017-10-27 08:36:21

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

I opened an upstream bug for the x86_64 error, but I guess, this won't solve our issue :-(

Offline

#9 2017-10-30 13:48:54

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 288

Re: sbcl

Compiling the git HEAD with clisp completes stage 1 and fails at stage 2 with

//entering make-target-2.sh
//doing warm init - compilation phase
This is SBCL 1.4.0.239-c092dcfe9, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
fatal error encountered in SBCL pid 914(tid 0xf7cb9700):
unexpected return from initial thread in main()


Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

I guess, this is the stage when sbcl is compiled with the sbcl compiled in stage 1 ...

Offline

Board footer

Powered by FluxBB