I've downloaded dhex_0.69.tar.gz from http://www.dettus.net/dhex/ and unpacked it. The Readme says simply to run make.
When I try to build it in MSYS2 shell on Windows 10, compilation and linking proceed without any problems, I get an .exe, which works fine:
user#PC MSYS /d/src/dhex_0.69
$ make
gcc buffers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc configfile.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc correlation.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc gpl.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc hexcalc.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc input.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc machine_type.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc main.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc markers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc menu.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc output.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc search.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc ui.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses -o dhex buffers.o configfile.o correlation.o gpl.o hexcalc.o input.o machine_type.o main.o markers.o menu.o output.o search.o ui.o -lncurses
However, this .exe will then depend on msys-ncursesw6.dll and msys-2.0.dll when ran outside of the MSYS shell (so, when ran in Command Prompt cmd.exe, which does raise an error - or in Power Shell, which does not raise an error; the program simply exits there).
So, I wanted to try and build it in MINGW64. Compilation completes, but with warning - and linking fails due to undefined reference to '_impure_ptr':
user#PC MINGW64 /d/src/dhex_0.69
$ make
gcc buffers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc configfile.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc correlation.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
correlation.c: In function 'find_longestmatch':
correlation.c:41:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:41:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
correlation.c: In function 'find_bestmatch':
correlation.c:129:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:129:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
correlation.c: In function 'find_mindiff':
correlation.c:210:28: warning: unknown conversion type character 'l' in format [-Wformat=]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^
correlation.c:210:23: warning: too many arguments for format [-Wformat-extra-args]
else fprintf(stderr,"%16lli\r",((tInt64)buf1->bufsize-pos1));
^~~~~~~~~~
gcc gpl.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc hexcalc.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc input.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
input.c: In function 'decinput':
input.c:116:27: warning: unknown conversion type character 'l' in format [-Wformat=]
snprintf(tmpbuf,21,"%20lli",newval);
^
input.c:116:22: warning: too many arguments for format [-Wformat-extra-args]
snprintf(tmpbuf,21,"%20lli",newval);
^~~~~~~~
gcc machine_type.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc main.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
main.c: In function 'main':
main.c:765:36: warning: unknown conversion type character 'l' in format [-Wformat=]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
^
main.c:765:60: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'tInt64' {aka 'long long int'} [-Wformat=]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
~^ ~~~~~~~~~~~~~~~~~~~~~~~
%I64d
main.c:765:33: warning: too many arguments for format [-Wformat-extra-args]
if (gosearch1) fprintf(stderr,"%lli occurances found in %s\n",search1.occurancesfound,buf1->filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:766:36: warning: unknown conversion type character 'l' in format [-Wformat=]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
^
main.c:766:60: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'tInt64' {aka 'long long int'} [-Wformat=]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
~^ ~~~~~~~~~~~~~~~~~~~~~~~
%I64d
main.c:766:33: warning: too many arguments for format [-Wformat-extra-args]
if (gosearch2) fprintf(stderr,"%lli occurances found in %s\n",search2.occurancesfound,buf2->filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc markers.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
markers.c: In function 'writemarkerfile':
markers.c:94:21: warning: unknown conversion type character 'l' in format [-Wformat=]
fprintf(f,"%c%016llX\n",markers->relative[i],markers->cursorpos[i]);
^
markers.c:94:13: warning: too many arguments for format [-Wformat-extra-args]
fprintf(f,"%c%016llX\n",markers->relative[i],markers->cursorpos[i]);
^~~~~~~~~~~~~
markers.c: In function 'gotomask':
markers.c:170:25: warning: unknown conversion type character 'l' in format [-Wformat=]
snprintf(buf,17,"%c%llx",markers->relative[i],markers->cursorpos[i]);
^
markers.c:170:20: warning: too many arguments for format [-Wformat-extra-args]
snprintf(buf,17,"%c%llx",markers->relative[i],markers->cursorpos[i]);
^~~~~~~~
gcc menu.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc output.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc search.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
search.c: In function 'searchfor':
search.c:128:52: warning: unknown conversion type character 'l' in format [-Wformat=]
if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos+buf->baseaddr); else done=1;
^
search.c:128:46: warning: too many arguments for format [-Wformat-extra-args]
if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos+buf->baseaddr); else done=1;
^~~~~~~~~~~
gcc ui.c -c -I. -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses -O3 -Wall
gcc -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses -o dhex buffers.o configfile.o correlation.o gpl.o hexcalc.o input.o machine_type.o main.o markers.o menu.o output.o search.o ui.o -lncurses
correlation.o:correlation.c:(.rdata$.refptr._impure_ptr[.refptr._impure_ptr]+0x0): undefined reference to `_impure_ptr'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:27: dhex] Error 1
Would anyone know what I need to do, in order to have dhex compiled under MINGW64 (so it does not depend on MSYS dlls anymore)?
I downloaded the package in question and figured out how to compile it with the MinGW-w64 64-bit toolchain provided by MSYS2.
First of all, install the relevant development tools and libraries:
pacman -S base-devel mingw-w64-x86_64-{ncurses,toolchain}
Next, you need to edit the Makefile that comes with the package. The LDFLAGS, CPPFLAGS, and CFLAGS values must be modified to the following:
LDFLAGS=
CPPFLAGS= -I$(MINGW_PREFIX)/include/ncurses
CFLAGS= -D__USE_MINGW_ANSI_STDIO=1 -O3 -Wall
Some explanation: It is very bad that the Makefile has hardcoded paths in LDFLAGS and CPPFLAGS, because if you were to use those paths then you would be using files from another toolchain (the msys-2.0.dll-based one). So we need to get to get rid of those. Also, to get rid of all the warnings about printf formatting, we must supply the -D__USE_MINGW_ANSI_STDIO argument.
Then, just run make.
I run cygwin-64 bits on Windows 7. I have installed Ruby2.3 64 bit and Ruby DevKit.
I try to install Compass using ruby gems. I get this:
$gem install compass
Building native extensions. This could take a while...
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
This is the verbose version:
$ gem install compass --verbose
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=compass
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
GET https://api.rubygems.org/api/v1/dependencies?gems=chunky_png,compass-core,compass-import-once,rb-fsevent,rb-inotify,sass
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=ffi,multi_json
200 OK
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/COPYING
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/LICENSE
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/README.md
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/Rakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/AbstractMemory.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ArrayType.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Buffer.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Call.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/ClosurePool.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DataConverter.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/DynamicLibrary.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/Function.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/FunctionInfo.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LastError.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/LongDouble.h
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c/MappedType.h
...
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/struct_layout_builder.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/const_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/generator_task.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/struct_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/tools/types_generator.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/types.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/union.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/variadic.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/lib/ffi/version.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/libtest/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/LICENSE.SPECS
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/async_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/bool_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/buffer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_param_type.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/custom_type_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/dup_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/enum_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/errno_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/ffi_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/Benchmark.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BoolTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/BufferTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ClosureTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/EnumTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/FunctionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GNUmakefile
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/GlobalVariable.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/LastErrorTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/NumberTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/PointerTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/ReferenceTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StringTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/StructTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/UnionTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/VariadicTest.c
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/fixtures/classes.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/io_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/library_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/long_double.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/managed_struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/memorypointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/number_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/platform_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/attach_function_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/memory_pointer_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/rbx/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/spec_helper.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/string_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/strptr_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_by_ref_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_callback_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_initialize_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_packed_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/struct_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/typedef_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/union_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/ffi/variadic_spec.rb
C:/cygwin64/home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/spec/spec.opts
Building native extensions. This could take a while...
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
/usr/bin/ruby.exe -r ./siteconf20160419-7812-1d7ip8w.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" clean
rm -f
rm -f ffi_c.so *.o *.bak mkmf.log .*.time
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR="
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o AbstractMemory.o -c AbstractMemory.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ArrayType.o -c ArrayType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Buffer.o -c Buffer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Call.o -c Call.c
In file included from Call.c:62:0:
Call.c: In function ‘do_blocking_call’:
Thread.h:78:39: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
^
Call.c:368:5: note: in expansion of macro ‘rbffi_thread_blocking_region’
rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ClosurePool.o -c ClosurePool.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DataConverter.o -c DataConverter.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o DynamicLibrary.o -c DynamicLibrary.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o ffi.o -c ffi.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Function.o -c Function.c
Function.c: In function ‘async_cb_event’:
Function.c:563:9: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
rb_thread_call_without_gvl(async_cb_wait, &w, async_cb_stop, &w);
^
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o FunctionInfo.o -c FunctionInfo.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LastError.o -c LastError.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o LongDouble.o -c LongDouble.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MappedType.o -c MappedType.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MemoryPointer.o -c MemoryPointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o MethodHandle.o -c MethodHandle.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Platform.o -c Platform.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Pointer.o -c Pointer.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Struct.o -c Struct.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByReference.o -c StructByReference.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructByValue.o -c StructByValue.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o StructLayout.o -c StructLayout.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Thread.o -c Thread.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Type.o -c Type.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Types.o -c Types.c
gcc -I. -I/usr/include/ruby-2.2.0 -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -DRUBY_EXTCONF_H=\"extconf.h\" -ggdb -O2 -pipe -Wimplicit-function-declaration -o Variadic.o -c Variadic.c
rm -f ffi_c.so
gcc -shared -o ffi_c.so AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DataConverter.o DynamicLibrary.o ffi.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByReference.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o -L. -L/usr/lib -L. -fstack-protector -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import -lruby220 -lffi -lffi -lpthread -lgmp -ldl -lcrypt
current directory: /home/vsxxame/.gem/ruby/gems/gems/ffi-1.9.10/ext/ffi_c
make "DESTDIR=" install
/usr/bin/mkdir -p . ./.gem.20160419-7812-9fvqix
exit > .RUBYARCHDIR.time
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20160419-7812-9fvqix
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/cygwin64/home/vsxxame/.gem/ruby/gems/extensions/x86_64-cygwin/ffi-1.9.10/mkmf.log
Successfully installed ffi-1.9.10
ERROR: Error installing compass:
rb-inotify requires ffi (>= 0.5.0)
I get the same if I try to install rb-inotify. Other gems are installed ok, . Any hints?
I have Ubuntu Precise and can't find in the software repo any lapack or blas. When I run
sudo gem install gsl
I get an error output. I have gsl 1.15. The output is as follows
Building native extensions. This could take a while...
ERROR: Error installing gsl:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking gsl version... 1.15
checking gsl cflags... -I/usr/include
checking for main() in -lcblas... no
checking gsl libs... -L/usr/lib -lgsl -lgslcblas -lm
checking for round()... no
checking for rngextra/rngextra.h... no
checking for qrngextra/qrngextra.h... no
checking for ool/ool_version.h... no
checking for tensor/tensor.h... no
checking for jacobi.h... no
checking for gsl/gsl_cqp.h... no
checking for gsl/gsl_multimin_fsdf.h... no
checking for gsl_poly_solve_quartic() in -lgsl... no
checking for gsl_eigen_francis() in -lgsl... yes
checking for ndlinear/gsl_multifit_ndlinear.h... no
checking for alf/alf.h... no
checking rb-gsl version...1.14.7
checking ruby version... 1.8.7
checking for graph... yes
NOTE: Gem.searcher is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.searcher called from extconf.rb:245.
NOTE: Gem::GemPathSearcher#initialize is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#initialize called from /usr/lib/ruby/vendor_ruby/1.8/rubygems.rb:951.
NOTE: Gem::GemPathSearcher#find is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::GemPathSearcher#find called from extconf.rb:245.
checking for narray.h... yes
checking for tamu_anova/tamu_anova.h... no
checking for main() in -ltamuanova... no
creating Makefile
make
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_zeta.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram3d.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix.c
In file included from matrix.c:31:0:
matrix_source.c: In function ‘rb_gsl_matrix_to_s’:
matrix_source.c:878:11: warning: variable ‘min’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c siman.c
siman.c: In function ‘rb_gsl_siman_solver_solve’:
siman.c:572:38: warning: variable ‘ppp’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c deriv.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sort.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_dilog.c
sf_dilog.c: In function ‘rb_gsl_sf_complex_dilog_e’:
sf_dilog.c:29:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const_additional.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c nmf_wrap.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_airy.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c bspline.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c matrix_double.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_mathieu.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c const.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c dht.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c root.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c signal.c
signal.c: In function ‘rb_gsl_fft_conv_corr’:
signal.c:108:28: warning: variable ‘stride3’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c ool.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c gsl.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c fft.c
fft.c: In function ‘rb_fft_complex_trans’:
fft.c:466:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform’:
fft.c:500:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_gsl_fft_complex_transform2’:
fft.c:520:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_real_trans’:
fft.c:669:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
fft.c: In function ‘rb_fft_halfcomplex_trans’:
fft.c:733:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c stats.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c rng.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c randist.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c oper_complex_source.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multiset.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_lambert.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c histogram_oper.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c alf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c array.c
array.c: In function ‘cvector_set_from_narray’:
array.c:260:7: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_coulomb.c
sf_coulomb.c: In function ‘rb_gsl_sf_hydrogenicR_e’:
sf_coulomb.c:38:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FG_array’:
sf_coulomb.c:90:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_wave_FGp_array’:
sf_coulomb.c:115:16: warning: variable ‘stride’ set but not used [-Wunused-but-set-variable]
sf_coulomb.c: In function ‘rb_gsl_sf_coulomb_CL_array’:
sf_coulomb.c:168:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_debye.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c multimin_fsdf.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c sf_elementary.c
sf_elementary.c: In function ‘rb_gsl_sf_multiply_e’:
sf_elementary.c:19:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
sf_elementary.c: In function ‘rb_gsl_sf_multiply_err_e’:
sf_elementary.c:31:7: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c poly2.c
gcc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DHAVE_NARRAY_H -I/var/lib/gems/1.8/gems/narray-0.6.0.4/. -I/usr/local/lib/site_ruby/1.8/x86_64-linux -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -Wall -I../include -I/usr/include -c blas1.c
Does anyone have a suggestion what I am missing or how I can install ruby-gsl and make it work?
This guy had a similar issue: Problems installing gsl gem
It would seem, from the top answer, that gsl 1.15 is not compatible with ruby-gsl, and that reverting to version 1.14 is necessary? You mention that you use gsl 1.15 in your post, so perhaps that is your issue?
My GNU scientific library (http://www.gnu.org/software/gsl/) installed in the path: /home/myname/gsl-1.6
My mlRho 1.7-stat prog (http://guanine.evolbio.mpg.de/mlRho/mlRho_1.7.tgz) which uses GNU scientific library-installed in:/home/myname/MlRho_1.7
my operating system: Fedora 16
original make file in mlRho
cd /home/myname/MlRho_1.7/
vim make
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/opt/local/include/ -L/opt/local/lib/
I have changed path in mlRho
CC=gcc
CFLAGS= -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 \
-I/home/myname/gsl-1.6 -L/home/myname/gsl-1.6
after making changes, I tried running make, it gives error
make
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/home/myname/gsl-1.6/include/ -L/home/myname/gsl-1.6/lib/ -c -o mlRho.o mlRho.c
In file included from mlRho.c:16:0:
mlComp.h:7:30: fatal error: gsl/gsl_sf_gamma.h: No such file or directory
compilation terminated.
make: *** [mlRho.o] Error 1
when i do make test- it gives me error below
make test
make[1]: Entering directory `/home/myname/MlRho_1.7/TestMlPi'
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o testMlPi.o testMlPi.c
testMlPi.c: In function ‘main’:
testMlPi.c:62:67: warning: variable ‘sderr’ set but not used [-Wunused-but-set-variable]
testMlPi.c:62:60: warning: variable ‘sdhet’ set but not used [-Wunused-but-set-variable]
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o interface.o interface.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o eprintf.o eprintf.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -c -o ranNum.o ranNum.c
gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/ -o testMlPi testMlPi.o interface.o eprintf.o ranNum.o -lm
make[1]: Leaving directory `/home/myname/MlRho_1.7/TestMlPi'
Output from testMlPi:
pi: 5.00e-05 epsilon: 4.90e-04 -log(L): 1.40e+05
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
Output from mlRho:
make: ./mlRho: Command not found
make: *** [testPi] Error 127
It somehow GNU library not linking to mlRho programme. How to fix it?
When I try to install mysql2 on Ubuntu with ree-1.8.7-2011.03 I get:
# gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ree-1.8.7-2011.03/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... no
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile
make
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-
2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c client.c
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c mysql2_ext.c
./client.h:16: warning: ‘rb_thread_blocking_region’ defined but not used
gcc -I. -I/opt/local/include -I. -I/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_FILE_OFFSET_BITS=64 -I/usr/include -fPIC -g -static-libgcc -fno-omit-frame-pointer -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -fPIC -g -O2 -Wall -funroll-loops -c result.c
gcc -shared -o mysql2.so client.o mysql2_ext.o result.o -L. -L/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -Wl,-R/usr/local/rvm/rubies/ree-1.8.7-2011.03/lib -L. -rdynamic -Wl,- export-dynamic -Wl,-rpath,/usr/lib -L/usr/lib -lmysqlclient_r -lpthread -lm -lrt -ldl -L/opt/local/lib -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [mysql2.so] Error 1
I am not sure what the error is. Any idea of the cause?