Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


clisp fails to install #7368

amarshall opened this Issue · 20 comments

See libsigsegv is installed, and was installed immediately prior to clisp with --use-gcc.


I had a problem installing clisp too. The issue, specifically, seemed to be in readline though. That was where the error occurred.


What do you get if you do brew link libsigsegv ?


It's already linked. Curiously though, homebrew throws an error saying "another version is already linked" when in fact the linked version is the only version installed; perhaps that's another small issue?


I was referred to this issue when I got an error at
=> ulimit -s 16384 && make

But with a brew update and brew install clisp --use-gcc, it install fine.


For me it failed on the ulimit call, too (on 10.6.8). I had to remove the ulimit call from the formula and it installed just fine.


--use-gcc solved it for me as well, on 10.7.2

For cause-hunters, here are the last couple lines:

/usr/bin/llvm-gcc -m64 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -O3 -w -pipe -march=core2 -msse4.1 -L/Users/groxx/bin/brew/Cellar/readline/6.2.2/lib -L/Users/groxx/bin/brew/Cellar/libiconv/1.14/lib -L/Users/groxx/bin/brew/lib  genclisph.o -o genclisph
(echo '#ifndef _CLISP_H' ; echo '#define _CLISP_H' ; echo; echo '/* config.h */' ; grep '^#' config.h ) > clisp.h
(echo; echo '/* 'intparam.h' */' ; grep '^#' intparam.h ) >> clisp.h
(echo; echo '/* 'floatparam.h' */' ; grep '^#' floatparam.h ) >> clisp.h
(echo; echo '/* genclisph */' ; ./genclisph clisp-test.c ; echo ; echo '#endif /* _CLISP_H */') >> clisp.h
writing test file clisp-test.c
stdbool.h: No such file or directory
/usr/bin/llvm-gcc -m64 -I/Users/groxx/bin/brew/Cellar/readline/6.2.2/include -I/Users/groxx/bin/brew/Cellar/libiconv/1.14/include -isystem /Users/groxx/bin/brew/include -I/Users/groxx/bin/brew/include  -I/private/tmp/homebrew-clisp-2.49-rSH8/clisp-2.49/src/gllib -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O -falign-functions=4 -DUNIX_BINARY_DISTRIB -DENABLE_UNICODE -DDYNAMIC_MODULES -DNO_GETTEXT -I. -O3 -w -pipe -march=core2 -msse4.1 -L/Users/groxx/bin/brew/Cellar/readline/6.2.2/lib -L/Users/groxx/bin/brew/Cellar/libiconv/1.14/lib -L/Users/groxx/bin/brew/lib  -DUSE_CLISP_H=1 -DCOMPILE_STANDALONE clisp-test.c -o clisp-test-clisp
clisp-test.c: In function ‘main’:
clisp-test.c:18: error: expected declaration or statement at end of input
make: *** [clisp.h] Error 1
==> Exit Status: 2

--use-gcc worked for me as well - on 10.7.2
Looks like my output is the same as Groxx


Even when using --use-gcc, llvm-ggc is still used and the same expected declaration or statement ... error is reported.


had the same issue

Error: Failed executing: ulimit -s 16384 && make 

fixed it with the --use-gcc flag


as a note to others, --use-gcc used for me as well, but on a fresh lion with XCode install I had to install gcc using the OSX GCC installer, after which everything worked.


@patrickkettner (and others):

A more convenient way to get just GCC installed, if you're using Xcode 4.2+, would be to install the apple-gcc42 formula from Homebrew-alt.


@mistydemeo Ah, wonderful stuff.

Would an addition to the current formula saying that the gcc version is the only reported working one on 10.7 be inappropriate?


Just added a patch from MacPorts in 32d8ed4 that should hopefully re-enable LLVM builds (under some circumstances).


Can we close this?


It is still failing for me, without --use-gcc

libsigsegv is installed, despite the error


Try brew link libsigsegv.


It is depended on by clisp, so it was already installed by homebrew, and thus already linked.

➜  ~  brew link libsigsegv
Linking /usr/local/Cellar/libsigsegv/2.10... 
Error: Cannot link libsigsegv
Another version is already linked: /usr/local/Cellar/libsigsegv/2.10

Try brew unlink libsigsegv first, an old bug often prevented deps from being linked properly.


That did it. Other than that issue, it works great on 10.7 for me



@jacknagel jacknagel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.