[#3006] CVS repository — "Eugene Scripnik" <hoaz@...>

Hello.

21 messages 2004/06/16
[#3008] Re: CVS repository — ts <decoux@...> 2004/06/16

>>>>> "E" == Eugene Scripnik <hoaz@gala.net> writes:

[#3009] Re: CVS repository — Michal Rokos <michal@...> 2004/06/16

Hi!

[#3057] Ruby 1.8.2 to be released. — matz@... (Yukihiro Matsumoto)

Hi,

20 messages 2004/06/23

Re: -L'%s' problem with mingw32

From: Jeff Mitchell <quixoticsycophant@...>
Date: 2004-06-28 02:56:22 UTC
List: ruby-core #3110
--- nobu.nokada@softhome.net wrote:
> Hi,
> 
> At Mon, 28 Jun 2004 04:52:56 +0900,
> Jeff Mitchell wrote in [ruby-core:03107]:
> > The mingw32 compiler (3.3.1) does not accept -L'/lib/path'.
> > Please change to -L"/lib/path" or to what it was in 1.8.1, -L/lib/path.
> 
> I've never seen that trouble, what do you mean by "the mingw32
> compiler"?  Not cygwin's `gcc -mno-cygwin'?

I use cygwin but with a pure mingw32 toolchain from mingw.org.  I do
not use the cygwin compiler with -mno-cygwin.  I configure ruby with
setenv CC /usr/local/mingw/bin/gcc.exe 
setenv LD /usr/local/mingw/bin/ld.exe 
setenv AR '/usr/local/mingw/bin/ar.exe'
setenv AS /usr/local/mingw/bin/as.exe 
setenv RANLIB /usr/local/mingw/bin/ranlib.exe 
setenv CPP /usr/local/mingw/bin/cpp.exe 
setenv CXX /usr/local/mingw/bin/g++.exe 
setenv NM /usr/local/mingw/bin/nm.exe
./configure --prefix=/home/quix/usr/ruby-stable-raw --build=i386-mingw32 --host=i386-mingw32
--target=i386-mingw32

Then I try to make an extension:

mkmf.log failure:
--------------------

have_library: checking for main() in -lf2c... -------------------- no

"/usr/local/mingw/bin/gcc.exe -o conftest -Id:/home/quix/tmp/testfoo/linalg-0.3.2/ext/lapack
-Id:/home/quix/usr/ruby-stable-raw/lib/ruby/1.8/i386-mingw32  -g -O2  conftest.c 
-L'd:/home/quix/usr/ruby-stable-raw/lib'      -lmsvcrt-ruby18-static -lf2c  -lwsock32  "
\usr\local\mingw\bin\..\lib\gcc-lib\mingw32\3.3.1\..\..\..\..\mingw32\bin\ld.exe: cannot find
-lmsvcrt-ruby18-static
checked program was:
/* begin */

/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */

"/usr/local/mingw/bin/gcc.exe -o conftest -Id:/home/quix/tmp/testfoo/linalg-0.3.2/ext/lapack
-Id:/home/quix/usr/ruby-stable-raw/lib/ruby/1.8/i386-mingw32  -g -O2  conftest.c 
-L'd:/home/quix/usr/ruby-stable-raw/lib'      -lmsvcrt-ruby18-static -lf2c  -lwsock32  "
\usr\local\mingw\bin\..\lib\gcc-lib\mingw32\3.3.1\..\..\..\..\mingw32\bin\ld.exe: cannot find
-lmsvcrt-ruby18-static
checked program was:
/* begin */
#define WIN32_LEAN_AND_MEAN 
#include <windows.h>
#include <winsock.h>

/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */

--------------------

mkmf.log with change CONFIG["LIBPATHFLAG"] = ' -L"%s"' in rbconfig.rb:

--------------------

have_library: checking for main() in -lf2c... -------------------- yes

"/usr/local/mingw/bin/gcc.exe -o conftest -Id:/home/quix/tmp/testfoo/linalg-0.3.2/ext/lapack
-Id:/home/quix/usr/ruby-stable-raw/lib/ruby/1.8/i386-mingw32  -g -O2  conftest.c 
-L"d:/home/quix/usr/ruby-stable-raw/lib"      -lmsvcrt-ruby18-static -lf2c  -lwsock32  "
checked program was:
/* begin */

/*top*/
int main() { return 0; }
int t() { main(); return 0; }
/* end */

--------------------




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

In This Thread

Prev Next