Bug #2280
Build fails with "source files duplication" error on Windows
| Status: | Closed | Start date: | 10/27/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | build | |||
| Target version: | Ruby 1.8.8 | |||
| ruby -v: | ruby 1.8.8dev (2009-10-26) [i386-mswin32_90] |
Description
I can't build Ruby from branch ruby_1_8 after commit 25443 (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/mkconfig.rb?r1=22932&r2=25443). When nmake starts compiling extensions I get this:
(...)
compiling Win32API
P:/ruby_1_8/lib/mkmf.rb:1468:in `create_makefile': source files duplication - ["../.././ext/Win32API/Win32API.c", "../.././ext/Win32API/Win32API.c"] (RuntimeError)
from P:/ruby_1_8/ext/Win32API/extconf.rb:5
from ./ext/extmk.rb:162:in `load'
from ./ext/extmk.rb:162:in `extmake'
from ./ext/extmk.rb:455
from ./ext/extmk.rb:451:in `each'
from ./ext/extmk.rb:451
NMAKE : fatal error U1077: '.\miniruby.exe' : return code '0x1'
Stop.
Reverting commit 25443 fixes the problem (patch attached).
Associated revisions
* mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb
on some platforms. [ruby-core:26332]
History
Updated by Romulo Ceccon over 2 years ago
- File mkconfig.diff added
Updated by Nobuyoshi Nakada over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r25503. Romulo, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.