Project

General

Profile

Actions

Backport #1127

closed

error while compiling Win32API under MinGW

Added by luislavena (Luis Lavena) almost 16 years ago. Updated over 13 years ago.


Description

=begin
I've been trying to build both p287 and svn branch using MinGW:

gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
autoconf (GNU Autoconf) 2.61
GNU Make 3.81 (cpmake and csmake)

Subversion information:
Luis@KEORE (D:\Users\Luis\projects\oss\oci\dsl2\sandbox\ruby\1.8.6-svn\build)
$ svn info ..\source
Path: ..\source
URL: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6
Repository Root: http://svn.ruby-lang.org/repos/ruby
Repository UUID: b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Revision: 22102
Node Kind: directory
Schedule: normal
Last Changed Author: shyouhei
Last Changed Rev: 22065
Last Changed Date: 2009-02-04 22:38:22 -0200 (Wed, 04 Feb 2009)

Configure options:
../source/configure --enable-shared --disable-install-doc --with-winsock2 --prefix=/

Last lines of 'make'
Luis@KEORE (D:\Users\Luis\projects\oss\oci\dsl2\sandbox\ruby\1.8.6-svn\build)
$ ......\msys\1.0.11\source\bin\sh.exe -login -c 'make'


 gcc -g -O2   -DRUBY_EXPORT  -L.  -Wl,--stack,0x02000000   main.o dmydln.o libmsvcrt-ruby18-static.a -lshell32 -lws2_32   -o miniruby.exe
 rbconfig.rb updated
 windres --include-dir . --include-dir . --include-dir ../source/win32 msvcrt-ruby18.rc msvcrt-ruby18.res.o
 gcc -shared -s -Wl,--enable-auto-image-base,--enable-auto-import,--export-all -Wl,--out-implib=libmsvcrt-ruby18.dll.a   array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o fileblocks.o crypt.o flock.o win32.o  dmyext.o msvcrt-ruby18.res.o -lshell32 -lws2_32   -o msvcrt-ruby18.dll
 Creating library file: libmsvcrt-ruby18.dll.a
 -e:2: syntax error, unexpected tSTRING_BEG, expecting $end
 compiling Win32API
 make[1]: Entering directory `/d/Users/Luis/projects/oss/oci/dsl2/sandbox/ruby/1.8.6-svn/build/ext/Win32API'
 mkdir -p ../../.ext/i386-mingw32
 make[1]: *** No rule to make target `Win32API.c', needed by `Win32API.o'.  Stop.
 make[1]: Leaving directory `/d/Users/Luis/projects/oss/oci/dsl2/sandbox/ruby/1.8.6-svn/build/ext/Win32API'
 make: *** [all] Error 1
 

Both p287 and svn checkout fail in the same place.

Historically, the only way I could build ruby is using make 2.79, 2.81 always fail.

1.9.1-p0, on the other hand, build successfuly

See attached both configure output and make full output.

Thank you.
=end


Files

configure-output.log (9.82 KB) configure-output.log luislavena (Luis Lavena), 02/07/2009 11:58 AM
make-output.log (6.45 KB) make-output.log luislavena (Luis Lavena), 02/07/2009 11:58 AM
0003-Allow-building-ruby-with-mingw.patch (1.94 KB) 0003-Allow-building-ruby-with-mingw.patch snaury (Alexey Borzenkov), 02/07/2009 04:56 PM
001-mkmf-mingw-compatible.patch (1.53 KB) 001-mkmf-mingw-compatible.patch luislavena (Luis Lavena), 02/08/2009 02:34 AM
0001-Allow-building-ruby-with-mingw.patch (1.91 KB) 0001-Allow-building-ruby-with-mingw.patch snaury (Alexey Borzenkov), 02/08/2009 06:40 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0