This repository has been archived by the owner. It is now read-only.

clisp fails to install #7368

amarshall opened this Issue Sep 1, 2011 · 20 comments


None yet

amarshall commented Sep 1, 2011

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

wbdbm77 commented Sep 3, 2011

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


adamv commented Sep 3, 2011

What do you get if you do brew link libsigsegv ?


amarshall commented Sep 3, 2011

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?


ghost commented Nov 29, 2011

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.

ujh commented Dec 27, 2011

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.

Groxx commented Dec 28, 2011

--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

eallik commented Jan 1, 2012

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.


mistydemeo commented Jan 18, 2012

@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?


jacknagel commented Jan 18, 2012

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


jacknagel commented Jan 20, 2012

Can we close this?

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

libsigsegv is installed, despite the error


mistydemeo commented Jan 20, 2012

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

jacknagel commented Jan 20, 2012

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 commented Jan 20, 2012


@jacknagel jacknagel closed this Jan 20, 2012

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.