Hello les linuxiens !
Back to work to try to install the dev branch on a ubuntu 20.04.02 LTS.
so i gitclone (lovely verb isn’t it :-)) GitHub - sonic-pi-net/sonic-pi at dev
Then follow these instructions sonic-pi/BUILD-LINUX.md at dev · sonic-pi-net/sonic-pi · GitHub
and it fails.
i can copy paste the whole output if you want but here is a part
[100%] Linking CXX shared library libsp_midi.so
/usr/bin/c++ -fPIC -std=c++14 -shared -Wl,-soname,libsp_midi.so -o libsp_midi.so CMakeFiles/libsp_midi.dir/src/sp_midi.cpp.o CMakeFiles/libsp_midi.dir/src/midiin.cpp.o CMakeFiles/libsp_midi.dir/src/midiout.cpp.o CMakeFiles/libsp_midi.dir/src/midicommon.cpp.o CMakeFiles/libsp_midi.dir/src/midisendprocessor.cpp.o CMakeFiles/libsp_midi.dir/src/utils.cpp.o -lpthread -lasound -ldl -lrtmidi
[100%] Built target libsp_midi
[ 98%] No install step for 'sp_midi'
[100%] Completed 'sp_midi'
[100%] Built target sp_midi
Compiling native ruby extensions...
Clearing /home/nlb/audio/spi_dev/app/server/ruby/bin/../rb-native/2.7.0
Creating /home/nlb/audio/spi_dev/app/server/ruby/bin/../rb-native/2.7.0
Compiling native extension in /home/nlb/audio/spi_dev/app/server/ruby/vendor/rugged-0.28.4.1/ext/rugged
rugged.c: In function ‘rb_git_minimize_oid’:
rugged.c:292:31: warning: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
292 | rb_iterate(rb_each, rb_enum, &minimize_cb, (VALUE)shrt);
| ^~~~~~~~~~~~
| |
| VALUE (*)(VALUE, git_oid_shorten *) {aka long unsigned int (*)(long unsigned int, struct git_oid_shorten *)}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from rugged.h:16,
from rugged.c:8:
/usr/include/ruby-2.7.0/ruby/ruby.h:1984:40: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, int, const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE, git_oid_shorten *)’ {aka ‘long unsigned int (*)(long unsigned int, struct git_oid_shorten *)’}
1984 | VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE);
| ^~~~~~~~~~~~~~~~~~~~
rugged.c:304:32: warning: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
304 | rb_iterate(rb_each, rb_enum, &minimize_yield, (VALUE)yield_data);
| ^~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE *) {aka long unsigned int (*)(long unsigned int, long unsigned int *)}
In file included from /usr/include/ruby-2.7.0/ruby.h:33,
from rugged.h:16,
from rugged.c:8:
/usr/include/ruby-2.7.0/ruby/ruby.h:1984:40: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, int, const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE, VALUE *)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int *)’}
1984 | VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE);
| ^~~~~~~~~~~~~~~~~~~~
Copying /home/nlb/audio/spi_dev/app/server/ruby/vendor/rugged-0.28.4.1/ext/rugged/rugged.so to /home/nlb/audio/spi_dev/app/server/ruby/bin/../rb-native/2.7.0/
Compiling native extension in /home/nlb/audio/spi_dev/app/server/ruby/vendor/ffi-1.11.3/ext/ffi_c
Function.c: In function ‘callback_prep’:
Function.c:867:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
867 | ffiStatus = ffi_prep_closure(code, &fnInfo->ffi_cif, callback_invoke, closure);
| ^~~~~~~~~
So if you have an idea, you’re welcome !
Cheers