Opened 16 years ago

Closed 15 years ago

#15157 closed defect (worksforme)

sbcl fails strangely during build

Reported by: fusion@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: lisp Cc: waqar@…
Port: sbcl

Description

I'm having a kind of a strange issue with building SBCL. I used to have it installed, ran into some issue and started manually installing it. Thought I'd take a second look and see if I could figure it out.

Anyway, I uninstalled it. Now I have tried installing it. This happens:

--->  Fetching sbcl
--->  Verifying checksum(s) for sbcl
--->  Extracting sbcl
--->  Applying patches to sbcl
--->  Configuring sbcl
--->  Building sbcl with target all

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

(no restarts: If you didn't do this on purpose, please report it as a bug.)

(SB-IMPL::ENSURE-TRAILING-SLASH "")
0] 

Yup, it basically brings up a Lisp interactive prompt. I have no clue what it wants from me here so I type (quit)

Error: Target org.macports.build returned: shell command "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/src/runtime/sbcl --core /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null" " returned error 2
Command output: //guessing default target CPU architecture from host architecture
//setting up CPU-architecture-dependent information
sbcl_arch="x86"
//setting up symlink src/compiler/target
//setting up symlink src/assembly/target
//setting up symlink src/compiler/assembly
//setting up OS-dependent information
//finishing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_sbcl/work/sbcl-1.0.15/local-target-features.lisp-expr
/in canonicalize-whitespace-1
/$*=./customize-target-features.lisp ./local-target-features.lisp-expr ./contrib/sb-bsd-sockets/foo.c ./contrib/sb-posix/foo.c ./src/runtime/runtime.c ./src/runtime/target-arch-os.h ./src/runtime/target-arch.h ./src/runtime/target-lispregs.h ./src/runtime/target-os.h
/$scratchfilename=/tmp/canonicalize-whitespace-1.51681.tmp
//entering make-host-1.sh
//building cross-compiler, and doing first genesis
This is SBCL 0.9.16, 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.

debugger invoked on a TYPE-ERROR: The value -1 is not of type (MOD 536870911).

real	1m19.308s
user	0m0.008s
sys	0m0.018s
//entering make-target-1.sh
//building runtime system and symbol table file
GNUmakefile:31: genesis/Makefile.features: No such file or directory
make: *** No rule to make target `genesis/Makefile.features'.  Stop.

Error: Status 1 encountered during processing.

If I try a second time to install it I get this instead:

--->  Building sbcl with target all
Error: Target org.macports.build returned: shell command "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/src/runtime/sbcl --core /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null" " returned error 127
Command output: sh: make.sh: No such file or directory

Error: Status 1 encountered during processing.

Not really sure what to tell you about it. SBCL has kind of a wacky build system (but a bit better than CMUCL's).

-- Daniel Lyons

Change History (5)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to gwright@…

Assigning to maintainer.

comment:2 Changed 16 years ago by yaseppochi (Stephen J. Turnbull)

Mac OS X 10.4.11, security patches etc current, iBook G4.
sbcl port 1.0.17_0

I'm seeing something that may be related. First, the sbcl build hung after finishing genesis-1 (I think, I didn't think to check with ps to see if it was still running, etc). After killing the port process, I just tried executing "port upgrade sbcl" again, which got me to the "no such file, make.sh" error.

Doing "port clean sbcl; port upgrade sbcl" then gave me this at the tail of the output:

; SYS:SRC;PCL;EARLY-LOW.FASL.NEWEST written
; compilation finished in 0:00:00
; compiling file "/opt/local/var/macports/build/_Users_steve_Software_MacPorts_dports_lang_sbcl/work/sbcl-1.0.17/src/pcl/macros.lisp" (written 14 MAR 2008 12:03:06 PM):
; compiling (IN-PACKAGE "SB-PCL")
; compiling (/SHOW "starting pcl/macros.lisp")
; compiling (DECLAIM (DECLARATION %METHOD-NAME ...))
; compiling (/SHOW "done with DECLAIM DECLARATION")
; compiling (DEFUN GET-DECLARATION ...)
; compiling (/SHOW "pcl/macros.lisp 85")
; compiling (DEFMACRO DOPLIST ...)
; compiling (/SHOW "pcl/macros.lisp 101")
; compiling (DEFMACRO DOLIST-CAREFULLY ...)fatal error encountered in SBCL pid 9307:
unexpect forwarding pointer in scavenge: 0x12cc4d10, start=0x12cc4d04, n=

Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> Really quit? [y] ldb> unknown command: ``(quit)''
ldb> unknown command: ``y''
ldb> Really quit? [y] 

Warning: the following items did not execute (for sbcl): org.macports.archive org.macports.build org.macports.destroot
DEBUG: invalid command name "ui_prefix"
    while executing
"ui_prefix $priority"
    invoked from within
"set prefix [ui_prefix $priority]"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1

So that error is a bit different but the process symptoms are the same.

comment:3 Changed 15 years ago by blb@…

Cc: waqar@… added
Keywords: sbcl removed
Port: sbcl added

Is this still reproducible, sbcl has seen several version updates since?

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:5 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

no reply in 4 months, closing

Note: See TracTickets for help on using tickets.