Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

clisp fails to install #7368

Closed
amarshall opened this Issue · 20 comments
@amarshall

See https://gist.github.com/1186761. libsigsegv is installed, and was installed immediately prior to clisp with --use-gcc.

@wbdbm77

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

@adamv
Owner

What do you get if you do brew link libsigsegv ?

@amarshall

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

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

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

--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
http://github.com/mxcl/homebrew/blob/master/Library/Formula/clisp.rb#L38
@andrewtimberlake

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

@eallik

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

@kevzettler

had the same issue

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

fixed it with the --use-gcc flag

@patrickkettner

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
Owner

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

@patrickkettner

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

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

@jacknagel
Owner

Can we close this?

@patrickkettner

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

https://gist.github.com/1645357

libsigsegv is installed, despite the error

@mistydemeo
Owner

Try brew link libsigsegv.

@patrickkettner

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
Owner

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

@patrickkettner

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

@jacknagel
Owner

Great!

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