[Gauche-devel] separate build directory fails again
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
From: Jens T. <ka...@ka...> - 2015-10-28 21:40:49
|
Hi, didn't inspect the details yet, but the script below fails again while building with separate build directory: make[2]: Entering directory '/home/karme/b/build/ext/util' ../../src/gosh -ftest ../../../Gauche/src/precomp -e -P -o util--match ../../../Gauche/libsrc/util/match.scm Makefile:25: recipe for target 'util--match.c' failed make[2]: *** [util--match.c] Segmentation fault make[2]: Leaving directory '/home/karme/b/build/ext/util' Makefile:37: recipe for target 'util' failed make[1]: *** [util] Error 2 make[1]: Leaving directory '/home/karme/b/build/ext' Makefile:38: recipe for target 'all' failed make: *** [all] Error 1 Core was generated by `../../src/gosh -ftest ../../../Gauche/src/precomp -e -P -o util--match ../../..'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f7f0450ccce in Scm_Assq (obj=obj@entry=0x1cc9c80, alist=0x0) at ../../Gauche/src/list.c:507 507 if (!SCM_LISTP(alist)) Scm_Error("assq: list required, but got %S", alist); [Current thread is 1 (Thread 0x7f7f04bb7740 (LWP 14850))] (gdb) i s #0 0x00007f7f0450ccce in Scm_Assq (obj=obj@entry=0x1cc9c80, alist=0x0) at ../../Gauche/src/list.c:507 #1 0x00007f7f0450d843 in Scm_PairAttrSet (pair=pair@entry=0x1dc2d40, key=key@entry=0x1cc9c80, value=value@entry=0x1d33ce0) at ../../Gauche/src/list.c:743 #2 0x00007f7f045936de in liblistpair_attribute_setX (SCM_FP=<optimized out>, SCM_ARGCNT=<optimized out>, data_=<optimized out>) at ../../Gauche/src/liblist.scm:736 #3 0x00007f7f044ee3d3 in run_loop () at ../../Gauche/src/./vmcall.c:187 #4 0x00007f7f044f5344 in user_eval_inner (program=<optimized out>, codevec=codevec@entry=0x7ffec82469d0) at ../../Gauche/src/vm.c:1472 #5 0x00007f7f044f6d8f in apply_rec (vm=<optimized out>, vm=<optimized out>, nargs=2, proc=0x1d68460) at ../../Gauche/src/vm.c:1565 #6 Scm_ApplyRec2 (proc=0x1d68460, arg0=arg0@entry=0x1d33ce0, arg1=arg1@entry=0xb) at ../../Gauche/src/vm.c:1605 #7 0x00007f7f044f7372 in Scm_Compile (program=program@entry=0x1d33ce0, env=env@entry=0xb) at ../../Gauche/src/compaux.c:64 #8 0x00007f7f044e0eb3 in Scm_VMEval (expr=0x1d33ce0, e=0xb) at ../../Gauche/src/vm.c:1371 #9 0x00007f7f0457eac0 in libevaleval (SCM_FP=<optimized out>, SCM_ARGCNT=<optimized out>, data_=<optimized out>) at ../../Gauche/src/libeval.scm:3875 #10 0x00007f7f044ee3d3 in run_loop () at ../../Gauche/src/./vmcall.c:187 #11 0x00007f7f044f5344 in user_eval_inner (program=<optimized out>, codevec=codevec@entry=0x7ffec8246d40) at ../../Gauche/src/vm.c:1472 #12 0x00007f7f044f617b in apply_rec (vm=0x1c21c00, vm=0x1c21c00, nargs=<optimized out>, proc=0x1cc5cd0) at ../../Gauche/src/vm.c:1565 #13 Scm_ApplyRec (proc=0x1cc5cd0, args=0x20b) at ../../Gauche/src/vm.c:1585 #14 0x00007f7f04542427 in Scm_Load (cpath=<optimized out>, flags=flags@entry=4, packet=packet@entry=0x7ffec8246e70) at ../../Gauche/src/load.c:222 #15 0x0000000000402e96 in execute_script (scriptfile=<optimized out>, args=0x1d2d7e0) at ../../Gauche/src/main.c:489 #16 0x00000000004020ba in main (ac=<optimized out>, av=<optimized out>) at ../../Gauche/src/main.c:649 $ git branch -v * master 5c47d4c gauche.generator - Changed gtake optional arg spec for srfi-121 #!/bin/bash -xe function official-gauche() { cat <<EOF | gpg --import -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.12 (GNU/Linux) mQMuBFOww/8RCACuM6UI4kxXzfTMgIFBWWOD9qJuKJFTxGhMhttNoEnVKI8khjfr 5CsdAaATC8jyKbPUE8jK5NWPC382mEDVk3SzO3F7ADefb0IFiRVOK2sTlao16Mq7 wFJK2XE6HyM/LTwvytCC2zxLMz2bvcRIKzPW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YT VV9WLZMcIqmWf6+OHMDYaXxh9xTYy9+eszEhSdRAmifCSK66+0JGBmCP8Y3Okxkk 5sbTZNTj3IvfmSArPIw1iGEEGBEIAAkFAlOww/8CGwwACgkQAp6xJP3cXw+JwAEA mXGOQHfNHX9/nWGaw8BnhDU/ARgJ5tMM3MJP/moc2/UBAMtTto09n2jCRU3hZUZp LXspL/qdwD+d4D8nm1IuOYZ8 =N3ni -----END PGP PUBLIC KEY BLOCK----- EOF sudo apt-get -y install build-essential git autoconf gauche wget 'http://prdownloads.sourceforge.net/gauche/Gauche-0.9.4.tgz' wget 'http://prdownloads.sourceforge.net/gauche/Gauche-0.9.4.tgz.asc' gpg --verify Gauche-0.9.4.tgz.asc Gauche-0.9.4.tgz tar xzvf Gauche-0.9.4.tgz pushd Gauche-0.9.4 ./configure && make -j $(nproc) && make check sudo apt-get -y purge gauche sudo apt-get -y autoremove sudo make install popd } function prepare-build() { mkdir a pushd a git clone https://github.com/shirok/Gauche.git pushd Gauche ./DIST gen popd popd mkdir b pushd b cp -af ../a/Gauche . chmod -R -w Gauche mkdir build popd } official-gauche prepare-build pushd a/Gauche ./configure && make -j $(nproc) && make check popd pushd b/build ../Gauche/configure && make -j $(nproc) && make check popd |