LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-08-2010, 11:06 AM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Rep: Reputation: 68
Installing clisp from source


I'm attempting to install clisp from source and I get the following message at the end of running ./configure
Code:
To continue building CLISP, the following commands are recommended
  (cf. unix/INSTALL step 4 ff):
    cd src
    vi config.lisp
# The default stack size on your platform is insufficient
# and must be increased to at least 16384.  You must do either
# 'ulimit -s 16384' (for Bourne shell derivatives, e.g., bash and zsh)
# or 'limit stacksize 16384' (for C shell derivarives, e.g., tcsh)
    make
    make check
I did as it suggests and opened the config.lisp but I am unsure where I add the unlimit command so it will work properly. I tried just dropping it at the top of the file but it did not do anything...

What am I doing wrong?

Thanks,
~Jeff
 
Old 01-08-2010, 02:55 PM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
it seems public cvs does not have such a thing. what's your version? it might be too old

and Patrick builds it like this
./configure --prefix=/usr with-gcc-wall
cd with-gcc-wall
./makemake --with-dynamic-ffi --prefix=/usr > Makefile
make config.lisp
make
#make check
make install DESTDIR=$PKG
source
 
Old 01-08-2010, 03:02 PM   #3
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
I am trying to compile version 2.44 I obtained from here. I'll take a look at that post you linked to and report back later tonight with my results.

Thanks,
~Jeff
 
Old 01-08-2010, 03:08 PM   #4
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
a little mixed the versions: ver 2.47 from slackware 13:
Code:
CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --mandir=/usr/man \
  --docdir=/usr/doc/clisp-$VERSION \
  --with-module=clx/new-clx \
  --with-module=pcre \
  --with-module=rawsock \
  --with-module=wildcard \
  --with-module=zlib \
  --cbc with-gcc-wall \
  --with-dynamic-ffi || exit 1

cd with-gcc-wall
./makemake \
  --with-dynamic-ffi  \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --with-module=clx/new-clx \
  --with-module=pcre \
  --with-module=rawsock \
  --with-module=wildcard \
  --with-module=zlib \
  --srcdir=../src \
  > Makefile
make config.lisp
make init
make allc
make $NUMJOBS lisp.run
make interpreted.mem
make halfcompiled.mem
make lispinit.mem
make manual
make modular
source
 
Old 01-09-2010, 10:45 AM   #5
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
Are those build instructions applicable to a debian based distro? Isn't there a way I can simply adjust my stack size like configure suggestions?...

Thanks,
~Jeff
 
Old 01-09-2010, 11:19 AM   #6
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Jeff91 View Post
Are those build instructions applicable to a debian based distro? Isn't there a way I can simply adjust my stack size like configure suggestions?...

Thanks,
~Jeff
this would be okey for any distro:

configure --cbc with-gcc-wall
cd with-gcc-wall
makemake > Makefile
make config.lisp

now edit config.lisp look for ulimit in it
 
Old 01-09-2010, 11:37 AM   #7
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
Where should I be running those commands from? I tried both the top level of my source directory and in the /src folder located in the source, both yield unknown command for "configure" and ./configure yield "unknown argument" for "--cbc"

~Jeff
 
Old 01-09-2010, 11:47 AM   #8
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Jeff91 View Post
Where should I be running those commands from? I tried both the top level of my source directory and in the /src folder located in the source, both yield unknown command for "configure" and ./configure yield "unknown argument" for "--cbc"

~Jeff
you aer running the shell as root, don't you. you don't need to be root to configure and compile the programs. only you need to be root when you install it.

and intrestingly mine does :/ accept configure --cbc
 
Old 01-09-2010, 12:30 PM   #9
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
No, I am running the packages as my the default user. Not as root.

Ideas?

~Jeff
 
Old 01-09-2010, 12:53 PM   #10
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Jeff91 View Post
No, I am running the packages as my the default user. Not as root.
there's something worğ with ouyr path. it does not includes CWD.
[QUOTE
Ideas?

~Jeff[/QUOTE]

i'll check something, come back to you
 
Old 01-09-2010, 01:14 PM   #11
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
well, clisp 2.47 and 2.48 does indeed has --cbc

Last edited by ozanbaba; 01-09-2010 at 01:18 PM.
 
Old 01-09-2010, 01:49 PM   #12
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
okey

here's the way:

configure with-gcc
cd with-gcc
vim config.lisp # if you want to change the config.
make # build
ulimit -s 16384 # you need it for running clisp
make check # check the build


and abuot ulimit, you shuold run it in shell before running clisp
you can add it to global profile scripts so it become global, but there's
reason why it's not like this. it allows DOS attacks.

Last edited by ozanbaba; 01-09-2010 at 02:05 PM.
 
Old 01-09-2010, 02:16 PM   #13
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by ozanbaba View Post
well, clisp 2.47 and 2.48 does indeed has --cbc
I'm using the clisp package fromhere - only version 2.44

~Jeff
 
Old 01-10-2010, 12:29 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Debian .. examples :

1) Sid : From clisp-2.48 , the patch, line 521
cat -n clisp_2.48-1.diff | grep -A 10 "configure debian/build"
./makemake --with-readline --with-gettext
http://packages.debian.org/sid/clisp

2) Etch clisp-2.44
http://packages.debian.org/etch/clisp
.....
 
Old 01-10-2010, 04:40 PM   #15
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Bloomington, IL
Distribution: Bodhi
Posts: 379

Original Poster
Rep: Reputation: 68
I've got it compiling however it fails out with an error message after running make:
Code:
In file included from arilev1.d:270,
                 from lisparit.d:28:
ariarm.d:1837:42: warning: "/*" within comment
In file included from lisparit.d:28:
arilev0.d: In function 'divu_3232_3232_':
arilev0.d:826: warning: statement with no effect
In file included from lisparit.d:37:
intdiv.d: In function 'I_I_divide_I_I':
intdiv.d:330: warning: statement with no effect
In file included from lisparit.d:40:
intsqrt.d: In function 'UL_sqrt_UW':
intsqrt.d:33: warning: statement with no effect
intsqrt.d:47: warning: statement with no effect
intsqrt.d: In function 'UDS_sqrt_':
intsqrt.d:237: warning: statement with no effect
intsqrt.d:299: warning: statement with no effect
intsqrt.d: In function 'I_rootp':
intsqrt.d:514: warning: statement with no effect
gcc  -g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -DNO_SIGSEGV -I. -c i18n.c
gcc  -g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -DNO_SIGSEGV -I. -c unixaux.c
echo '/* generated from Makefile */' > cflags.h.new
echo '#define CC "gcc"' >> cflags.h.new
echo '#define CFLAGS "-g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -DNO_SIGSEGV -I."' >> cflags.h.new
echo '#define CPP "gcc -E"' >> cflags.h.new
echo '#define CPPLAGS ""' >> cflags.h.new
echo '#define CLFLAGS "-x none"' >> cflags.h.new
echo '#define LIBS "-lreadline -lncurses -ldl   "' >> cflags.h.new
echo '#define X_LIBS ""' >> cflags.h.new
if cmp cflags.h.new cflags.h > /dev/null 2>&1; then rm -f cflags.h.new; else mv cflags.h.new cflags.h; fi
touch cflags.h.stamp
gcc  -g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -DNO_SIGSEGV -I. -c built.c
gcc -E ariarm.c | grep -v '^#' > ariarm.s
gcc  -g -O2 -Igllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -O2 -DUNICODE -DNO_SIGSEGV -I. -x assembler -c ariarm.s
ariarm.s: Assembler messages:
ariarm.s:1: Warning: ignoring attempt to redefine built-in register 'a1'
ariarm.s:2: Warning: ignoring attempt to redefine built-in register 'a2'
ariarm.s:3: Warning: ignoring attempt to redefine built-in register 'a3'
ariarm.s:4: Warning: ignoring attempt to redefine built-in register 'a4'
ariarm.s:5: Warning: ignoring attempt to redefine built-in register 'v1'
ariarm.s:6: Warning: ignoring attempt to redefine built-in register 'v2'
ariarm.s:7: Warning: ignoring attempt to redefine built-in register 'v3'
ariarm.s:8: Warning: ignoring attempt to redefine built-in register 'v4'
ariarm.s:9: Warning: ignoring attempt to redefine built-in register 'v5'
ariarm.s:10: Warning: ignoring attempt to redefine built-in register 'v6'
ariarm.s:12: Warning: ignoring attempt to redefine built-in register 'sl'
ariarm.s:13: Warning: ignoring attempt to redefine built-in register 'fp'
ariarm.s:14: Warning: ignoring attempt to redefine built-in register 'ip'
ariarm.s:15: Warning: ignoring attempt to redefine built-in register 'sp'
ariarm.s:16: Warning: ignoring attempt to redefine built-in register 'lr'
ariarm.s:17: Warning: ignoring attempt to redefine built-in register 'pc'
ariarm.s:152: Warning: s suffix on comparison instruction is deprecated
ariarm.s:1027: Warning: s suffix on comparison instruction is deprecated
ariarm.s:1032: Warning: s suffix on comparison instruction is deprecated
ariarm.s:1343: Error: bad instruction `replaced by multiplication of a small x=a1 and a big y=ip:*/'
make: *** [ariarm.o] Error 1
I downloaded the source and applied the .diff provided.

Suggestions?
~Jeff
 
  


Reply

Tags
clisp



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying out CLISP. zaxonus Programming 2 08-06-2008 12:17 AM
clisp and libsigsegv trainee Slackware 0 12-24-2005 10:52 AM
A Clisp probelm keyboard Programming 7 12-01-2005 06:15 AM
SML and Clisp turtorial Haraldsh Linux - General 0 01-19-2005 11:08 AM
where do I learn AI with CLISP/LISP ? pepo Programming 4 01-25-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:55 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