public
Last active

Problem with find_library from mkmf.rb.

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
$ bundle exec rake compile --trace
rake/gempackagetask is deprecated. Use rubygems/package_task instead
** Invoke compile (first_time)
** Invoke compile:x86_64-darwin11.4.2 (first_time)
** Invoke compile:nmatrix:x86_64-darwin11.4.2 (first_time)
** Invoke copy:nmatrix:x86_64-darwin11.4.2:2.0.0 (first_time)
** Invoke lib/ (first_time, not_needed)
** Invoke tmp/x86_64-darwin11.4.2/nmatrix/2.0.0/nmatrix.bundle (first_time)
** Invoke tmp/x86_64-darwin11.4.2/nmatrix/2.0.0/Makefile (first_time)
** Invoke tmp/x86_64-darwin11.4.2/nmatrix/2.0.0 (first_time, not_needed)
** Invoke ext/nmatrix/extconf.rb (first_time, not_needed)
** Execute tmp/x86_64-darwin11.4.2/nmatrix/2.0.0/Makefile
cd tmp/x86_64-darwin11.4.2/nmatrix/2.0.0
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -I. ../../../../ext/nmatrix/extconf.rb
checking for clapack_dgetrf()... *** ../../../../ext/nmatrix/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
 
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=../../../../ext/nmatrix
--curdir
--ruby=/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
--with-atlas-dir
--without-atlas-dir
--with-atlas-include
--without-atlas-include=${atlas-dir}/include
--with-atlas-lib
--without-atlas-lib=${atlas-dir}/
--with-lapacklib
--without-lapacklib
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:893:in `%': too many arguments for format string (ArgumentError)
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:893:in `block in checking_for'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:337:in `block (2 levels) in postpone'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:307:in `open'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:337:in `block in postpone'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:307:in `open'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:333:in `postpone'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:891:in `checking_for'
from /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:969:in `find_library'
from ../../../../ext/nmatrix/extconf.rb:124:in `<main>'
rake aborted!
Command failed with status (1): [/Users/carlosagarie/.rvm/rubies/ruby-2.0.0...]
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/file_utils.rb:45:in `call'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/file_utils.rb:45:in `sh'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/file_utils_ext.rb:40:in `sh'
/Users/carlosagarie/.rvm/gems/ruby-2.0.0-p0/gems/rake-compiler-0.8.3/lib/rake/extensiontask.rb:153:in `block (2 levels) in define_compile_tasks'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:206:in `chdir'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/fileutils.rb:206:in `cd'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/file_utils_ext.rb:40:in `chdir'
/Users/carlosagarie/.rvm/gems/ruby-2.0.0-p0/gems/rake-compiler-0.8.3/lib/rake/extensiontask.rb:150:in `block in define_compile_tasks'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:226:in `call'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:226:in `block in execute'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:223:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:223:in `execute'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:187:in `block in invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:185:in `invoke_prerequisites'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:165:in `block in invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:159:in `invoke_with_call_chain'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/task.rb:152:in `invoke'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:143:in `invoke_task'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:101:in `each'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:101:in `block in top_level'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:110:in `run_with_threads'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:95:in `top_level'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:73:in `block in run'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/lib/rake/application.rb:70:in `run'
/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-0.9.6/bin/rake:37:in `<top (required)>'
/Users/carlosagarie/.rvm/gems/ruby-2.0.0-p0/bin/rake:19:in `load'
/Users/carlosagarie/.rvm/gems/ruby-2.0.0-p0/bin/rake:19:in `<main>'
Tasks: TOP => compile => compile:x86_64-darwin11.4.2 => compile:nmatrix:x86_64-darwin11.4.2 => copy:nmatrix:x86_64-darwin11.4.2:2.0.0 => tmp/x86_64-darwin11.4.2/nmatrix/2.0.0/nmatrix.bundle => tmp/x86_64-darwin11.4.2/nmatrix/2.0.0/Makefile
gistfile2.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
def find_library(lib, func, *paths, &b)
func = "main" if !func or func.empty?
lib = with_config(lib+'lib', lib)
paths = paths.collect {|path| path.split(File::PATH_SEPARATOR)}.flatten
checking_for(func.funcall_style, LIBARG%lib) do
libpath = $LIBPATH
libs = append_library($libs, lib)
begin
until r = try_func(func, libs, &b) or paths.empty?
$LIBPATH = libpath | [paths.shift]
end
if r
$libs = libs
libpath = nil
end
ensure
$LIBPATH = libpath if libpath
end
r
end
end
 
 
# checking_for is actually before find_library in mkmf.rb.
 
def checking_for(m, fmt = nil)
f = caller[0][/in `([^<].*)'$/, 1] and f << ": " #` for vim #'
m = "checking #{/\Acheck/ =~ f ? '' : 'for '}#{m}... "
message "%s", m
a = r = nil
Logging::postpone do
r = yield
# I commented this line.
a = (fmt ? "#{fmt % r}" : r ? "yes" : "no") << "\n"
"#{f}#{m}-------------------- #{a}\n"
end
# And this one.
message(a)
Logging::message "--------------------\n\n"
r
end
mkmf.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
Exception `ArgumentError' at /Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/mkmf.rb:893 - too many arguments for format string
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(void) {return 0;}
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:57: error: 'clapack_dgetrf' undeclared (first use in this function)
conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { void ((*volatile p)()); p = (void ((*)()))clapack_dgetrf; return 0; }
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:1: warning: implicit declaration of function 'clapack_dgetrf' [-Wimplicit-function-declaration]
Undefined symbols for architecture x86_64:
"_clapack_dgetrf", referenced from:
_t in cc223liq.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { clapack_dgetrf(); return 0; }
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:57: error: 'clapack_dgetrf' undeclared (first use in this function)
conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { void ((*volatile p)()); p = (void ((*)()))clapack_dgetrf; return 0; }
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:1: warning: implicit declaration of function 'clapack_dgetrf' [-Wimplicit-function-declaration]
Undefined symbols for architecture x86_64:
"_clapack_dgetrf", referenced from:
_t in ccqRowHO.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { clapack_dgetrf(); return 0; }
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/atlas/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:57: error: 'clapack_dgetrf' undeclared (first use in this function)
conftest.c:6:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c:6:32: warning: variable 'p' set but not used [-Wunused-but-set-variable]
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { void ((*volatile p)()); p = (void ((*)()))clapack_dgetrf; return 0; }
/* end */
 
"/usr/bin/gcc -o conftest -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/x86_64-darwin11.4.2 -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/backward -I/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0 -I../../../../ext/nmatrix -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -Wall -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -pipe conftest.c -L. -L/Users/carlosagarie/.rvm/rubies/ruby-2.0.0-p0/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/atlas/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby-static -llapack -lpthread -ldl -lobjc "
conftest.c: In function 't':
conftest.c:6:1: warning: implicit declaration of function 'clapack_dgetrf' [-Wimplicit-function-declaration]
Undefined symbols for architecture x86_64:
"_ATL_dger", referenced from:
_ATL_dgetf2 in liblapack.a(ATL_dgetf2.o)
"_cblas_dgemm", referenced from:
_ATL_dgetrfC in liblapack.a(ATL_dgetrfC.o)
_ATL_dgetrfR in liblapack.a(ATL_dgetrfR.o)
"_cblas_dscal", referenced from:
_ATL_dgetrfC in liblapack.a(ATL_dgetrfC.o)
_ATL_dgetrfR in liblapack.a(ATL_dgetrfR.o)
_ATL_dgetf2 in liblapack.a(ATL_dgetf2.o)
"_cblas_dswap", referenced from:
_ATL_dgetf2 in liblapack.a(ATL_dgetf2.o)
"_cblas_dtrsm", referenced from:
_ATL_dgetrfC in liblapack.a(ATL_dgetrfC.o)
_ATL_dgetrfR in liblapack.a(ATL_dgetrfR.o)
"_cblas_idamax", referenced from:
_ATL_dgetrfC in liblapack.a(ATL_dgetrfC.o)
_ATL_dgetrfR in liblapack.a(ATL_dgetrfR.o)
_ATL_dgetf2 in liblapack.a(ATL_dgetf2.o)
"_cblas_xerbla", referenced from:
_clapack_dgetrf in liblapack.a(clapack_dgetrf.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main(void) {return 0;}
5: extern int t(void);
6: int t(void) { clapack_dgetrf(); return 0; }
/* end */

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.