[ruby-core:32825] [Ruby 1.9-Feature#3943] enabling builds with llvm-gcc

From: Jon Forums <redmine@...>
Date: 2010-10-16 15:45:59 UTC
List: ruby-core #32825
Issue #3943 has been updated by Jon Forums.


Nakada-san,

Thank you, r29516 allows building trunk on Win7 32-bit using the RubyInstaller recipes and llvm-gcc v2.8.  As a quick build regression test, I successfully built with r29517 on my Arch Linux system (gcc 4.5.1) and MSYS/MinGW/TDM 4.5.1 on my Win7 32-bit system.  I will try your patch on ruby_1_9_2 and report back if there are any errors.

FYI, I noticed the following issues and will track them down and report back if needed.

Jon


## ISSUE 1 ##
...
windres --preprocessor="llvm-cpp -xc" -DRC_INVOKED --include-dir . --include-dir . --include-dir ../../../ruby-trunk/win32 ruby.rc ruby.res.o
llvm-gcc -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -L.  -Wl,--stack,0x00200000,--enable-auto-import   main.o  ruby.res.o -lmsvcrt-ruby191 -lshell32 -lws2_32 -limagehlp   -o ruby.exe
C:\Users\Jon\Documents\RubyDev\rubyinstaller-trunk\sandbox\devkit\mingw\bin/ld.exe: Warning: type of symbol `_main' changed from 32 to 512 in main.o


## ISSUE 2 ##
...
windres --preprocessor="llvm-cpp -xc" -DRC_INVOKED --include-dir . --include-dir . --include-dir ../../../ruby-trunk/win32 rubyw.rc rubyw.res.o
llvm-gcc -mwindows -e _mainCRTStartup -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -L.  -Wl,--stack,0x00200000,--enable-auto-import  \
          main.o  rubyw.res.o -lmsvcrt-ruby191 -lshell32 -lws2_32 -limagehlp   -o rubyw.exe
llvm-gcc.exe: unrecognized option '-e'
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3943

----------------------------------------
http://redmine.ruby-lang.org

In This Thread