digego / extempore

A cyber-physical programming environment
1.4k stars 127 forks source link

Build error on linux #288

Closed azimut closed 7 years ago

azimut commented 7 years ago

Hi,

I tried to build this today with the instructions provided: git clone https://github.com/digego/extempore && mkdir extempore/cmake-build && cd extempore/cmake-build && cmake .. && make && sudo make install

But I encounter the following error trying to use dynamic library. I might be able to work with the docker image or build mine on it. But wanted to create this just in case is happening someone else. Feel free to close it if it is a know issue. I am using sabayon linux.

$  g++ --version
g++ (Gentoo Hardened 4.9.3 p1.1, pie-0.6.2) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Error when the make hangs and a CTRL+C to abort the installation.

Finished compiling: "libs/external/fft.xtm"

 JIT-compiling IR 
Using llc  /home/sendai/projects/extempore/llvm/bin/llc ...

 Exporting module 
   /tmp/extempore/xtmfft.bc 

 Generating assembly from LLVM bitcode 
   /home/sendai/projects/extempore/llvm/bin/llc -O3 -tailcallopt -relocation-model=pic  -filetype=obj /tmp/extempore/xtmfft.bc -o /tmp/extempore/xtmfft.o 

 Compiling native shared library 
   gcc -O3 -g --shared -fPIC /tmp/extempore/xtmfft.o -o /home/sendai/projects/extempore/libs/aot-cache/xtmfft.so 

 Succesfully compiled 
   /home/sendai/projects/extempore/libs/aot-cache/xtmfft.so 

Successfully wrote AOT-compilation file to /home/sendai/projects/extempore/libs/aot-cache/fft.xtm 

Total compile time: 0.000000 minutes

 Types 
   14 type aliases
   1 named types
   8 generic
   0 specializations

 Closures 
   410 top-level closures
   10 generics
   149 specializations

[100%] Built target aot_fft
Scanning dependencies of target aot_audio_dsp_ext

------------- Extempore -------------- 
Andrew Sorensen (c) 2010-2016
andrew@moso.com.au, @digego

ARCH           : x86_64-unknown-linux-gnu
CPU            : ivybridge
ATTRS          : -sse4a,-avx512bw,+cx16,-tbm,+xsave,-fma4,-avx512vl,-prfchw,-bmi2,-adx,-xsavec,+fsgsbase,+avx,-avx512cd,-avx512pf,-rtm,+popcnt,-fma,-bmi,+aes,+rdrnd,-xsaves,+sse4.1,+sse4.2,-avx2,-avx512er,+sse,-lzcnt,+pclmul,-avx512f,+f16c,+ssse3,+mmx,-pku,+cmov,-xop,-rdseed,-movbe,-hle,+xsaveopt,-sha,+sse2,+sse3,-avx512dq
LLVM           : 3.8.0 MCJIT
---------------------------------------

Starting utility process
Trying to connect to 'localhost' on port 17084
New Client Connection
Successfully connected to remote process

Starting primary process
Trying to connect to 'localhost' on port 17085
New Client Connection
Successfully connected to remote process

Evaluating expression: (impc:aot:compile-xtm-file "libs/external/audio_dsp_ext.xtm")

Started compiling: "libs/external/audio_dsp_ext.xtm"

Loading xtmbase library... done in 0.000000 seconds
Loading xtmmath library... done in 0.000000 seconds
Bad: /home/sendai/projects/extempore/libs/aot-cache/xtmfft.so: undefined symbol: kiss_fftr
Error: could not open  dynamic library

^C

Received interrupt signal (SIGINT), exiting Extempore...
CMakeFiles/Makefile2:529: recipe for target 'CMakeFiles/aot_audio_dsp_ext.dir/all' failed
make[1]: *** [CMakeFiles/aot_audio_dsp_ext.dir/all] Interrupt
Makefile:160: recipe for target 'all' failed
make: *** [all] Interrupt
benswift commented 7 years ago

I must confess I've never tried to build it on Gentoo (or derivatives). A couple of things to try: