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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
01-08-2010, 11:06 AM
#1
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Rep:
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
01-08-2010, 02:55 PM
#2
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
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
01-08-2010, 03:02 PM
#3
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
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
01-08-2010, 03:08 PM
#4
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
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
01-09-2010, 10:45 AM
#5
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
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
01-09-2010, 11:19 AM
#6
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
Quote:
Originally Posted by
Jeff91
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
01-09-2010, 11:37 AM
#7
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
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
01-09-2010, 11:47 AM
#8
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
Quote:
Originally Posted by
Jeff91
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
01-09-2010, 12:30 PM
#9
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
No, I am running the packages as my the default user. Not as root.
Ideas?
~Jeff
01-09-2010, 12:53 PM
#10
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
Quote:
Originally Posted by
Jeff91
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
01-09-2010, 01:14 PM
#11
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
well, clisp 2.47 and 2.48 does indeed has --cbc
Last edited by ozanbaba; 01-09-2010 at 01:18 PM .
01-09-2010, 01:49 PM
#12
Member
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 13.37
Posts: 665
Rep:
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 .
01-09-2010, 02:16 PM
#13
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
Quote:
Originally Posted by
ozanbaba
well, clisp 2.47 and 2.48 does indeed has --cbc
I'm using the clisp package from
here - only version 2.44
~Jeff
01-10-2010, 12:29 PM
#14
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,290
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
.....
01-10-2010, 04:40 PM
#15
Bodhi Developer
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 291
Original Poster
Rep:
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
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 11:30 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News