brew install files missing/different?

168 views
Skip to first unread message

Circu Virtu

unread,
Aug 8, 2014, 12:27:49 PM8/8/14
to extemp...@googlegroups.com
After running a new brew install on OSX I run into
some errors when trying to build the standardlib (see my last post).
After looking at some files I think the problem is that some
files are missing and/or different from what I get from brew than what is on git.
For example the file libs/instruments_ext.xtm and others are missing.
And even more strange I found just  2 lines of code missing/different in
examples/fmsynth.xtm.
I don't know what maybe went wrong and how to fix it.?
Any idea?
Tnx a lot for help.

--cv

Ben Swift

unread,
Aug 11, 2014, 12:30:17 AM8/11/14
to extemporelang@googlegroups.com List
Hey there

The files in libs (e.g. libs/instruments_ext.xtm) aren’t part of the Extempore source distribution, they’re automatically-generated files in the precompilation process (e.g. with ./compile-stdlib.sh).  You shouldn’t have to edit them by hand, and they should be auto-regenerated for you each time you rebuild the stdlib.

As far as ideas go, I’d say it’s worth giving a reinstall a try.  We’ve made some improvements to the build process recently, but there may be some teething problems as we go from the old to the new process.

Did you get Extempore from brew?  If so, can you remove it (brew rm extempore) and reinstall?

Cheers,
Ben

--
You received this message because you are subscribed to the Google Groups "Extempore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to extemporelan...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Circu Virtu

unread,
Aug 11, 2014, 12:56:27 PM8/11/14
to extemp...@googlegroups.com
Yes I use brew for install.
Same error again as written in this post:

https://groups.google.com/forum/#!topic/extemporelang/rn1dGDTHEj8

Running File: xtmprecomp-command-file.xtm ...


Loading xtmmath library...

Loaded xtmmath library in 14.407982 seconds

sys:load notification math already loaded 

sys:load notification math already loaded 

Error: could not load  kiss_fft.dylib  dynamic library

"Could not load kiss_fft dynamic library"

Ben Swift

unread,
Aug 11, 2014, 7:25:22 PM8/11/14
to extemporelang@googlegroups.com List
The problem is that Extempore can’t find the kiss_fft.dylib shared library, which should have been installed by homebrew.

Extempore seems to be working fine, but you’ll need that dylib if you’re going to use Extempore’s fft library.

Can you tell me if you have a `kiss_fft.dylib` in `/usr/local/lib`

Also, what’t the output from

```
brew info kissfft
brew doctor
```

Cheers,
Ben

Circu Virtu

unread,
Aug 12, 2014, 6:34:58 AM8/12/14
to extemp...@googlegroups.com
Tnx a lot Ben,

there is no kiss_fft.dylib` in `/usr/local/lib`

$ brew info kissfft

kissfft: stable 1.3.0

http://sourceforge.net/projects/kissfft/

/usr/local/Cellar/kissfft/1.3.0 (6 files, 56K) *

  Built from source

From: https://github.com/benswift-extempore/kissfft/blob/master/../kissfft.rb


$ brew doctor

Please note that these warnings are just used to help the Homebrew maintainers

with debugging if you file an issue. If everything you use Homebrew for is

working fine: please don't worry and just ignore them. Thanks!


Warning: Your Homebrew is outdated.

You haven't updated for at least 24 hours, this is a long time in brewland!

To update Homebrew, run `brew update`.


Warning: Your Homebrew is outdated.

You haven't updated for at least 24 hours, this is a long time in brewland!

To update Homebrew, run `brew update`.

Circu Virtu

unread,
Aug 12, 2014, 6:42:59 AM8/12/14
to extemp...@googlegroups.com
Looks like the library is there, so I added a link and now kissfft stuff compiles.

Next problem is with libsndfile lib.

precomp   sndfile.xtm  has an error, but still runs through.

Error: could not load  libsndfile.dylib  dynamic library

sys:load notification Error loading libsndfile dynamic library 

Looking for llc in  /usr/local/Cellar/extempore-llvm/3.4.1 

compile command:

  /usr/local/Cellar/extempore-llvm/3.4.1/bin/llc -O3 -relocation-model=pic -tailcallopt /tmp/xtmsndfile.bc && clang -O3 -dynamiclib -undefined dynamic_lookup /tmp/xtmsndfile.s -o /tmp/xtmsndfile.dylib

 


Succesfully compiled /tmp/xtmsndfile.dylib


Moved /tmp/xtmsndfile.dylib into libs/ directory.


Successfully wrote precomp file to libs/sndfile.xtm 


Strange !!



but next pre comp audio_dsp_ext.xtm  fails.


sys:load notification audio_dsp already loaded 

Error: could not load  libsndfile.dylib  dynamic library

sys:load notification Error loading libsndfile dynamic library 

SetAlias:  cpxSAMPLE >>> cpxf

SetValue:  cpxSAMPLE_SIZE >>> i64

Compiler Error cannot find  symbol  read_audio_data 




Tried the sam with the fftlib and added a link into /usr/local/lib/

but unfortunately this time that trick doesn't work.

Any idea??

Tnx again for help


-cv

Circu Virtu

unread,
Aug 12, 2014, 9:02:42 AM8/12/14
to extemp...@googlegroups.com
Tried with the new 0.56 but seems to run into the same problem.

Precompiling libs/external/sndfile.xtm

Successfully precompiled libs/external/sndfile.xtm


Precompiling libs/external/audio_dsp_ext.xtm


process stopped here.
I get no more detailed error messages on screen but checked the log file
and there is the still the same error.

Ben Swift

unread,
Aug 13, 2014, 2:27:53 AM8/13/14
to extemporelang@googlegroups.com List
Hey there

Something weird is going on with your homebrew.  It should automatically add the symlink from the homebrew Cellar into /usr/local/lib

That’s the same problem that you’re having with libsndfile now—I suspect that libsndfile is there in /usr/local/Cellar/libsndfile/1.0.25/lib/, but that the symlink to that file (which should be in /usr/local/lib) isn't there.

Can you send me the results of `brew doctor`?  And also `brew link libsndfile`?

Cheers,
Ben

Circu Virtu

unread,
Aug 13, 2014, 5:10:21 AM8/13/14
to extemp...@googlegroups.com
Yes indeed there is something strange going on. Still have no clue and hope you ca help.
As I said I tried already the same trick as with the fftlib.
I found the library but again the link was missing. So I had added the link but got this
error. Checked with 0.57 same problem again.

Here the information you requested.

$ brew doctor

Your system is ready to brew.


$ brew link libsndfile

Warning: Already linked: /usr/local/Cellar/libsndfile/1.0.25

To relink: brew unlink libsndfile && brew link libsndfile

Circu Virtu

unread,
Aug 13, 2014, 5:15:44 AM8/13/14
to extemp...@googlegroups.com
here are the links I had added in /usr/local/lib

libsndfile.a -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.a

libsndfile.dylib -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.dylib


It looks like that extempore finds the lib but for unknown reason cannot load?

Circu Virtu

unread,
Aug 13, 2014, 5:27:20 AM8/13/14
to extemp...@googlegroups.com
I tried brew let brew fix the link with 

$ brew unlink libsndfile && brew link libsndfile

Unlinking /usr/local/Cellar/libsndfile/1.0.25... 3 symlinks removed

Linking /usr/local/Cellar/libsndfile/1.0.25... 27 symlinks created


27 symlinks created ?? Any idea?

but it added only these links in /usr/local/lib

13 Aug 11:16 libsndfile.1.dylib -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.1.dylib

13 Aug 11:16 libsndfile.a -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.a

13 Aug 11:16 libsndfile.dylib -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.dylib


unfortunately still the same error.

Error: could not load  libsndfile.dylib  dynamic library




Circu Virtu

unread,
Aug 13, 2014, 6:16:10 AM8/13/14
to extemp...@googlegroups.com
more problems to follow.
I tried compiling other stuff down the line and
the next thing that will error is:

Error: could not load  libglib-2.0.dylib  dynamic library

sys:load notification Could not load 'glib' dynamic library 


no Glib stuff. Looks like Cellar is messed up. Here my Cellar


assimp extempore lame libvorbis shivavg

autoconf extempore-llvm libogg pcre xz

automake flac libsndfile pkg-config

boost git libsoil portaudio

cmake kissfft libtool rtmidi-c


Any idea who to get the missing stuff or fix Cellar?
Tnx a lot for help. I'm getting lost now.


He

Ben Swift

unread,
Aug 13, 2014, 7:35:08 PM8/13/14
to extemporelang@googlegroups.com List
Yeah, there’s some funkiness going on with your homebrew

Your /usr/local/lib should be chock full of symlinks, all automatically put there by homebrew.  Mine looks like this:

```
*snip*

  lrwxr-xr-x    1 ben   admin    31B Mar 27 13:54 Box2D -> ../Cellar/box2d/2.3.0/lib/Box2D
  lrwxr-xr-x    1 ben   admin    45B Jul 25 12:34 ImageMagick -> ../Cellar/imagemagick/6.8.9-5/lib/ImageMagick
  drwxr-xr-x    3 ben   admin   102B Feb 22  2013 ImageMagick-6.8.3
  lrwxr-xr-x    1 ben   admin    41B Mar 18 16:56 aspell-0.60 -> ../Cellar/aspell/0.60.6.1/lib/aspell-0.60
  lrwxr-xr-x    1 ben   admin    35B May 21 15:27 cairo -> ../Cellar/cairo/1.12.16_1/lib/cairo
  lrwxr-xr-x    1 ben   admin    36B Mar 18 16:57 cloog-isl -> ../Cellar/cloog/0.18.1/lib/cloog-isl
  drwxr-xr-x    4 ben   admin   136B Jul 12 22:46 cmake
  drwxr-xr-x    3 ben   admin   102B Apr 17 10:11 gio
  drwxr-xr-x   39 ben   admin   1.3K Aug 13 13:56 girepository-1.0
  lrwxr-xr-x    1 ben   admin    36B May 13 11:20 glib-2.0 -> ../Cellar/glib/2.40.0_1/lib/glib-2.0

*snip*
```

Since `brew doctor` says that everything’s fine, then I’d say the next step is probably to try and blow homebrew away (delete everything) and re-install it.  Is that a possibility for you?

Other than that, the folks over on the homebrew mailing list may have some ideas as to what’s going wrong.

Cheers,
Ben

Circu Virtu

unread,
Aug 14, 2014, 1:14:59 PM8/14/14
to extemp...@googlegroups.com
Looks like it,s best to clean and reinstall brew. Is there a clean way to do this.
Just delete the Cellar dir and anything below or are there other things I have to take care if.
Tnx.
-cv

Ben Swift

unread,
Aug 14, 2014, 7:57:04 PM8/14/14
to extemporelang@googlegroups.com List
Hey cv

The homebrew FAQ has some instructions. Also, this gist might be helpful.

Cheers,
Ben

Circu Virtu

unread,
Aug 15, 2014, 12:09:39 PM8/15/14
to extemp...@googlegroups.com
Done :).  Runs nicely. Tnx again so much for help. Now actually time for some music :) :)

Fabia Bertram

unread,
Aug 23, 2014, 5:50:45 AM8/23/14
to extemp...@googlegroups.com
Hey all,

sorry but I run into a problem. I tried upgrading extempore from 0.53 on OS X and something went awry.

I hope anyone has advice?

This is my cellar btw:

assimp cmake libogg libvorbis
autoconf extempore-llvm libsndfile pcre
automake flac ibsoil portaudio
boost kissfft libtool rtmidi-c

so, although i do have this extempore-llvm, i seem to not have extempore in general.

I did everything i was supposed to via 

as this did not work, i removed home-brew in general and reapplied it, and then installed extempore via

brew install --with-stdlib extempore

i don't know what to do anymore :(((((

pretty please, can anyone help me? Thanks in advance

Fabia
_______________________________


Duncan Moran

unread,
Aug 23, 2014, 6:31:06 AM8/23/14
to extemp...@googlegroups.com


On Saturday, 23 August 2014 10:50:45 UTC+1, Fabia Fabuleuse wrote:
Hey all,

sorry but I run into a problem. I tried upgrading extempore from 0.53 on OS X and something went awry.

....
 
 
i don't know what to do anymore :(((((

pretty please, can anyone help me? Thanks in advance

Fabia



If you do not live in the OS X Terminal all day I can recommend Cakebrew...


which will manage your Cellar.  


Click the Update Homebrew button to fetch all the latest versions (formulas).  

Anything that needs updating is listed as Outdated.  

It lists any required dependencies which you can find by searching in All Formulae.   

Run the Doctor to resolve any problems. 


HTH
Duncan  

Fabia Bertram

unread,
Aug 23, 2014, 6:53:37 AM8/23/14
to extemp...@googlegroups.com
thank you so much!

it was pretty much kind of a cakewalk now :D
fabia



Michele Pasin

unread,
Jan 26, 2015, 4:24:09 PM1/26/15
to extemp...@googlegroups.com

Hi, 

I've just ran into similar installation problems [1] and fixed it by removing brew (`rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup`) and then reinstalling it together with Extempore and all of its dependencies. 

Works like a charm :-) 

A small comment: I was trying to follow the docs at http://benswift.me/2012/10/10/extempore-emacs-cheat-sheet/ .... but they seem to omit the fact that you must add this line:

(setq user-extempore-directory "/path/to/extempore/")

to your emacs init file if you want extempore to work. Maybe just adding a link from that doc page to https://github.com/digego/extempore/blob/master/extras/.emacs could be a good idea!

Thanks, m 


Ben Swift

unread,
Jan 26, 2015, 5:22:42 PM1/26/15
to extemp...@googlegroups.com
Hi Michele

Yep, I should add that to the post. Thanks for the tip.

Cheers,
Ben

Michele Pasin writes:

> Hi,
>
> I've just ran into similar installation problems [1] and fixed it by
> removing brew (`rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup`)
> and then reinstalling it together with Extempore and all of its
> dependencies.
>
> Works like a charm :-)
>
> A small comment: I was trying to follow the docs at
> http://benswift.me/2012/10/10/extempore-emacs-cheat-sheet/ .... but they
> seem to omit the fact that you must add this line:
>
> (setq user-extempore-directory "/path/to/extempore/")
>
> to your emacs init file if you want extempore to work. Maybe just adding a
> link from that doc page
> to https://github.com/digego/extempore/blob/master/extras/.emacs could be a
> good idea!
>
> Thanks, m
>
>
> [1] https://github.com/digego/extempore/issues/176
>
> On Friday, 15 August 2014 17:09:39 UTC+1, Circu Virtu wrote:
>>
>> Done :). Runs nicely. Tnx again so much for help. Now actually time for
>> some music :) :)
>>
>> Am Freitag, 15. August 2014 01:57:04 UTC+2 schrieb Ben:
>>>
>>> Hey cv
>>>
>>> The homebrew FAQ
>>> <https://github.com/Homebrew/homebrew/wiki/FAQ#how-do-i-uninstall-homebrew> has
>>> some instructions. Also, this gist might be helpful
>>> <https://gist.github.com/mxcl/1173223#comment-1266188>.
Reply all
Reply to author
Forward
0 new messages