LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2021, 03:27 PM   #1
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware64-current
Posts: 85

Rep: Reputation: Disabled
can't make scsh: Segmentation fault


I get segfault error when make scsh. I've installed multilib and upgraded to current, but still error.
Code:
./build/build-usual-image . "./scheme" 'scsh.image' './scshvm' \
        './build/initial.image'
./build/build-usual-image: line 34: 20138 Segmentation fault      ./$vm -o ./$vm -i $initial batch <<EOF
,load $srcdir/scheme/env/init-defpackage.scm
((*structure-ref filenames 'set-translation!)
 "=scheme48/" "$srcdir/scheme/")
,load =scheme48/more-interfaces.scm =scheme48/sort/interfaces.scm
,load =scheme48/link-packages.scm
,load =scheme48/more-packages.scm
(ensure-loaded command-processor)
(ensure-loaded usual-commands)
,go ((*structure-ref command 'command-processor)
     (structure-package usual-commands)
     (list "batch"))
(ensure-loaded usual-features)
,structure more-structures more-structures-interface
,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
,keep maps source files
,translate =scheme48/ $lib/
,build ((*structure-ref package-commands-internal
                        'new-command-processor)
        "(made by $USER on $date)"
        usual-commands
        built-in-structures more-structures) $image
EOF

make: *** [Makefile:317: scsh.image] Error 139
The number after "line 34:" gets incremented by 4 for each new attempt. Had no segfaults with anything else.
 
Old 02-03-2021, 02:48 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Unusual.

A Segfault is normally taken fairly seriously, but it was obviouslyin a child process because it exited gracefully enough.

Have you checksummed the archive? re-exploded it? The usual suspects…
 
Old 02-06-2021, 04:42 AM   #3
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware64-current
Posts: 85

Original Poster
Rep: Reputation: Disabled
http://ftp.scsh.net/pub/scsh/0.6/scsh-0.6.7.tar.gz Used this link, I don't think it's a bad archive, I remember I tried install it before with same result.
 
Old 02-06-2021, 08:41 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Please report bugs to scsh-users@scsh.net, and include the version number in your message.
I would do that.

Edit: After looking at dates I'd say it is probably badly outdated and will not build with up to date toolchain.

Last edited by Emerson; 02-06-2021 at 08:43 AM.
 
Old 02-09-2021, 08:12 PM   #5
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 316

Rep: Reputation: Disabled
Any luck?

Wikipedia's scsh entry has a terse teaser suggesting the latest scsh from their git repo built with scheme48 1.9.2 (latest release of that) installed will work in a 64 bit environment. I tried it myself with slackware 14.2 64 bit and it seems okay with light usage. I can't be bothered with multilib, so, sorry, not trying your case exactly.
 
Old 02-12-2021, 02:57 AM   #6
Bad Blue Bull
Member
 
Registered: Jul 2017
Distribution: Slackware64-current
Posts: 85

Original Poster
Rep: Reputation: Disabled
same
Quote:
nr@Slackware:~/tmp/scsh-0.6.7% make
./build/build-usual-image . "./scheme" 'scsh.image' './scshvm' \
'./build/initial.image'
./build/build-usual-image: line 34: 7224 Segmentation fault ./$vm -o ./$vm -i $initial batch <<EOF
,load $srcdir/scheme/env/init-defpackage.scm
((*structure-ref filenames 'set-translation!)
"=scheme48/" "$srcdir/scheme/")
,load =scheme48/more-interfaces.scm =scheme48/sort/interfaces.scm
,load =scheme48/link-packages.scm
,load =scheme48/more-packages.scm
(ensure-loaded command-processor)
(ensure-loaded usual-commands)
,go ((*structure-ref command 'command-processor)
(structure-package usual-commands)
(list "batch"))
(ensure-loaded usual-features)
,structure more-structures more-structures-interface
,in debuginfo (read-debug-info "$srcdir/build/initial.debug")
,keep maps source files
,translate =scheme48/ $lib/
,build ((*structure-ref package-commands-internal
'new-command-processor)
"(made by $USER on $date)"
usual-commands
built-in-structures more-structures) $image
EOF

make: *** [Makefile:317: scsh.image] Error 139
 
Old 02-12-2021, 10:52 PM   #7
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 316

Rep: Reputation: Disabled
My source directory doesn't have a script named build-usual-image...

Code:
20075r1:scsh$ scsh
Welcome to scsh 0.7
Type ,? for help.
> (begin (run (git log -1 --oneline))
        (display "build subdir...") (newline)
        (run (ls build))
        (display "arch in config.log...") (newline)
        (run (grep arch)  
                (< config.log))
        (display "latest scheme48 installed...") (newline)
         (run (scheme48)))
1144324 (HEAD -> master, origin/master, origin/HEAD) Revert "Add missing use of DESTDIR in Makefile.in (thanks to Santiago Pelufo)."
build subdir...
build-image.sh  test.sh
arch in config.log...
/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
Configured with: ../gcc-5.5.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --with-antlr-jar=/tmp/slackware64-14.2/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
latest scheme48 installed...
Welcome to Scheme 48 1.9.2 (made by root on 2021-02-06)
See http://s48.org/ for more information.
Please report bugs to scheme-48-bugs@s48.org.
Get more information at http://www.s48.org/.
Type ,? (comma question-mark) for help.
> 
Exit Scheme 48 (y/n)? y
1
> 
Exit Scheme 48 (y/n)? y
20076r1:scsh$
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ch. 8.3: Segmentation fault after make mrproper lfs_novice Linux From Scratch 6 04-08-2016 09:53 AM
Chapter 6.7 LFS version 7.7, Segmentation fault on make mrproper vicz Linux From Scratch 3 07-27-2015 02:26 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
./autogen.sh and make segmentation fault Seiken Slackware 4 11-20-2005 12:50 PM
Segmentation fault, I can't execute many programs finrold Linux - Software 3 11-20-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration