Hello,

When attempting to compile Ruby source (trunk) against above mentioned
version, it resulted in a crash for ld.exe.

One of the RubyInstaller co-developers (and also Ruby committer) found
that --out-implib strangely could be the reason.

The thread where this is discussed is here:

https://groups.google.com/d/msg/rubyinstaller/nWadNZEBR9k/hzjWB5V0Ur8J

The version of Windows provided by XP mode is 5.1.2600
(2600.xpsp_sp3_gdr.120504-1619 : Service Pack 3)

The command that triggered the crash was:

gcc -shared  -Wl,--enable-auto-image-base,--enable-auto-import
-Wl,--out-implib=libmsvcrt-ruby200.dll.a msvcrt-ruby200.def
-Wl,--stack,0x00200000,--enable-auto-import   dln.o encoding.o
version.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o
enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o
inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o
process.o random.o range.o rational.o re.o regcomp.o regenc.o
regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o
sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o
variable.o compile.o debug.o iseq.o vm.o vm_dump.o vm_backtrace.o
vm_trace.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o
newline.o langinfo.o fileblocks.o crypt.o lgamma_r.o strlcpy.o
strlcat.o ffs.o setproctitle.o win32/win32.o win32/file.o  prelude.o
dmyext.o msvcrt-ruby200.res.o -lshell32 -lws2_32 -limagehlp -lshlwapi
  -o msvcrt-ruby200.dll

By simply removing "-Wl,--out-implib=libmsvcrt-ruby200.dll.a" crash is gone.

According to Hiroshi, local build of the cross-compiler do not present
such crash.

I was unable to start GDB in XP mode (application failed to initialize
properly, 0xc0150002), which pointed me to install vcredist_x86 so
python was able to load msvcr90.dll (completely off-topic)

I would love to help debug this further, but I'm not sure what other
information I need to provide.

Ruben: please let me know what other details you need so we can figure
out the root issue.

Thank you.
-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to