 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Yoshiki Tsunesada
RE: trouble compiling on Snow Leopard? [ reply ] 2009-09-16 02:22
|
This is a bug in the source, and the compiler adopted in Snow Leopard is enough smart to find it.
matrix_source: line 2152, at switch - case 0
FUNCTION(gsl_matrix,memcpy(mnew, m));
This should be
FUNCTION(gsl_matrix,memcpy)(mnew, m);
This has been fixed and the source is available at the SVN repository.
|
By: S D
trouble compiling on Snow Leopard? [ reply ] 2009-09-08 20:37
|
compiling (via macports, but error message returned is the same as if I do it from the downloaded tarball.) Any suggestions?
ayerie:~ simon$ sudo port install rb-gsl +narray
---> Computing dependencies for rb-gsl
---> Building rb-gsl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-gsl/work/rb-gsl-1.10.3" && /opt/local/bin/ruby -rvendor-specific setup.rb setup " returned error 1
Command output: ---> ext
make
/usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-gsl/work/rb-gsl-1.10.3/ext -DHAVE_ROUND -DHAVE_NARRAY_H -I/opt/local/lib/ruby/site_ruby/1.8/i686-darwin10 -I/opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin10 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -Wall -I../include -I/opt/local/include -c matrix.c
In file included from matrix.c:31:
matrix_source.c:1853:40: error: macro "memcpy" requires 3 arguments, but only 2 given
In file included from matrix.c:31:
matrix_source.c: In function 'rb_gsl_matrix_rot90':
matrix_source.c:1853: warning: statement with no effect
In file included from matrix.c:37:
matrix_source.c:1853:40: error: macro "memcpy" requires 3 arguments, but only 2 given
In file included from matrix.c:37:
matrix_source.c: In function 'rb_gsl_matrix_int_rot90':
matrix_source.c:1853: warning: statement with no effect
make: *** [matrix.o] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
from setup.rb:664:in `make'
from setup.rb:1258:in `setup_dir_ext'
from setup.rb:1532:in `__send__'
from setup.rb:1532:in `traverse'
from setup.rb:1549:in `dive_into'
from setup.rb:1530:in `traverse'
from setup.rb:1524:in `exec_task_traverse'
from setup.rb:1519:in `each'
from setup.rb:1519:in `exec_task_traverse'
from setup.rb:1246:in `exec_setup'
from setup.rb:996:in `exec_setup'
from setup.rb:826:in `__send__'
from setup.rb:826:in `invoke'
from setup.rb:773:in `invoke'
from setup.rb:1578
Error: Status 1 encountered during processing.
|
|
 |