Re: SIGSEGV trying to bootstrap Scheme48 from VCS

Ivan Shmakov <[email protected]>
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
>>>>> Michael Sperber <[email protected]> writes:

 >> BTW, I'm getting segmentation faults while trying to bootstrap
 >> recent Scheme48 revisions from the Mercurial repository using some
 >> likewise recent Scheme48 versions.

 >> E. g., when trying to bootstrap Scheme48 rev. dc9216ef6864 using
 >> Scheme48 rev. dc9216ef6864, which was in turn built with Scheme48
 >> 1.8:

 >> $ mkdir +build-1 
 >> $ cd +build-1 
 >> $ ../configure --prefix="$HOME" 
 >> ...
 >> $ make \
 >>       ../build/filenames.make \
 >>       i-know-what-i-am-doing \
 >>       c/scheme48.h \
 >>       ../build/initial.image-{32,64}

[...]

 > Could you elaborate on your build setup?  Specifically, how do
 > configure/make fit in the setup?  (I use the batch files in the
 > build/ directory, described in WINDOWS.txt to bootstrap.)

	The configure & make steps are similar to those in autogen.sh:

$ nl -ba autogen.sh 
...
     7	./configure &&
     8	rm -rf autom4te.cache &&
     9	rm -f scheme48.image build/initial.image-32 build/initial.image-64 c/scheme48.h &&
    10	make build/filenames.make &&
    11	make i-know-what-i-am-doing &&
    12	make c/scheme48.h &&
    13	make build/initial.image-32 build/initial.image-64 &&
    14	make distclean
$ 

	The only notable difference is the use of the separate build
	directory (+build-1), and it's what I'm accustomed to do
	whenever possible.

	The use of autogen.sh leads to the same result:

scheme48-4f2030ac3336 $ LC_ALL=C nohup time bash autogen.sh 
nohup: appending output to `nohup.out'
scheme48-4f2030ac3336 $ tail -n 32 nohup.out 
 s48_external_event_uid
 s48_permanent_external_event_uid
#{Unspecific}
cd ./ps-compiler &&					     \
	(echo ',batch';							     \
		echo ',config ,load ../scheme/platform-interfaces.scm';	     \
		echo ',config ,load ../scheme/rts-packages-64.scm';          \
		echo ',config ,load ../scheme/prescheme/interface.scm';	     \
		echo ',config ,load ../scheme/prescheme/package-defs.scm';   \
		echo ',exec ,load load-ps-compiler.scm';		     \
		echo ',exec ,load compile-twospace-gc-64.scm';		     \
		echo ',exit'						     \
	) | scheme48 -h 8000000 &&					     \
		mv ../scheme/vm/scheme48-twospace-heap-64.c ../c
Welcome to Scheme 48 1.9T (made by ivan on Thu Aug 21 01:34:41 NOVST 2008)
Copyright (c) 1993-2008 by Richard Kelsey and Jonathan Rees.
Please report bugs to [email protected].
Get more information at http://www.s48.org/.
Type ,? (comma question-mark) for help.
> will not prompt and will exit on errors


Pre-Scheme compiler version 1.9T
Copyright (c) 1993-2008 by Richard Kelsey.
Please report bugs to [email protected].

/bin/sh: line 10: 15147 Done                    ( echo ',batch'; echo ',config ,load ../scheme/platform-interfaces.scm'; echo ',config ,load ../scheme/rts-packages-64.scm'; echo ',config ,load ../scheme/prescheme/interface.scm'; echo ',config ,load ../scheme/prescheme/package-defs.scm'; echo ',exec ,load load-ps-compiler.scm'; echo ',exec ,load compile-twospace-gc-64.scm'; echo ',exit' )
     15148 Segmentation fault      | scheme48 -h 8000000
make: *** [compile-twospace-gc-64] Error 139
Command exited with non-zero status 2
96.27user 3.38system 1:46.72elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (98major+894375minor)pagefaults 0swaps
scheme48-4f2030ac3336 $
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.