Bugs: Browse | Submit New | Admin

[#27941] Error building alglib 1.0.1 (Windows XP, ruby 1.8.6p398MinGW, devkit 3.4.5)

Date:
2010-03-07 07:19
Priority:
3
Submitted By:
Miguel Ruiz (rbenit68)
Assigned To:
Claudio Bustos Navarrete (clbustos)
Category:
None
State:
Open
Summary:
Error building alglib 1.0.1 (Windows XP, ruby 1.8.6p398MinGW, devkit 3.4.5)

Detailed description
You can see next, ruby version, gem install alglib, and output of the 
building process:

c:\Ruby\lib\ruby\gems\1.8\gems\alglib-1.0.1\ext\alglib>ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]

c:\Ruby\lib\ruby\gems\1.8\gems\alglib-1.0.1\ext\alglib>gem install alglib
Building native extensions.  This could take a while...
ERROR:  Error installing alglib:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
creating Makefile

make
g++ -I. -I/C/Ruby/lib/ruby/1.8/i386-mingw32 -I/C/Ruby/lib/ruby/1.8/i386-
mingw32
-Ialglib  -g -O2  -DEBUG    -c alglib/airyf.cpp
g++ -I. -I/C/Ruby/lib/ruby/1.8/i386-mingw32 -I/C/Ruby/lib/ruby/1.8/i386-
mingw32
-Ialglib  -g -O2  -DEBUG    -c alglib/alglib.cpp
g++ -I. -I/C/Ruby/lib/ruby/1.8/i386-mingw32 -I/C/Ruby/lib/ruby/1.8/i386-
mingw32
-Ialglib  -g -O2  -DEBUG    -c alglib/alglib_util.cpp
In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:45,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/ostream:310:49: macro "write" requires 3 arguments, but only 2 given
In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/ostream:545,
                 from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:45,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/bits/ostream.tcc:359:44: macro "write" requires 3 arguments, but only 
2 give
n
In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/ostream:545,
                 from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:45,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/bits/ostream.tcc:360: error: invalid function declaration
In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:46,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/istream:446:42: macro "read" requires 3 arguments, but only 2 given
In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/istream:771,
                 from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:46,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/bits/istream.tcc:708:40: macro "read" requires 3 arguments, but only 2 
given

In file included from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/istream:771,
                 from 
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../.
./../../include/c++/3.4.5/iostream:46,
                 from alglib/alglib_util.cpp:2:
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c
++/3.
4.5/bits/istream.tcc:709: error: invalid function declaration
alglib/alglib_util.cpp: In function `VALUE real1d_to_array
(ap::real_1d_array*)':

alglib/alglib_util.cpp:6: error: `uint' was not declared in this scope
alglib/alglib_util.cpp:6: error: expected `;' before "i"
alglib/alglib_util.cpp:6: error: `i' was not declared in this scope
make: *** [alglib_util.o] Error 1


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/alglib-
1.0.1 f
or inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/alglib-
1.0.1/ext/gem_make.out

c:\Ruby\lib\ruby\gems\1.8\gems\alglib-1.0.1\ext\alglib>

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-03-22 13:57
Sender: Claudio Bustos Navarrete

Try to delete line 2 on  ext/alglib/alglib_util.cpp .

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2010-03-22 13:58clbustos
assigned_tonone2010-03-22 13:49clbustos