Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
D Programming Language Support
nocide:
update: 2010-04-10
- some bugfixes (tested on linux/windows)
- now with different auto-detection for D1/D2 (gdc/dmd)
nocide:
update-2: 2010-04-10
- recognized a bug in compilerD.cpp on windows > wxShell does not exist in windows version, replaced with wxExecute
Andrej08:
I get errors when trying to patch with svn6354:
--- Code: ---C:\codeblocks>patch -p0 < d_v8_win.patch
patching file debian/changelog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file debian/changelog.rej
patching file src/plugins/compilergcc/compilerDMD.h
patching file src/plugins/compilergcc/compilerD.h
patching file src/plugins/compilergcc/compilerGDC.h
patching file src/plugins/compilergcc/compilerDMD.cpp
Hunk #1 succeeded at 7 with fuzz 1.
patching file src/plugins/compilergcc/compilerD.cpp
patching file src/plugins/compilergcc/compilergcc.cpp
patching file src/plugins/compilergcc/compilerGDC.cpp
patching file src/plugins/scriptedwizard/resources/common_functions.script
patching file src/plugins/scriptedwizard/resources/d/console/hello.d
patching file src/plugins/scriptedwizard/resources/d/wizard.script
patching file src/plugins/codecompletion/codecompletion.cpp
patching file src/sdk/resources/lexers/lexer_d.xml
patching file src/sdk/resources/lexers/lexer_d.sample
patching file src/CodeBlocks-unix.cbp
Hunk #1 succeeded at 1140 (offset 14 lines).
patching file src/CodeBlocks.cbp
Hunk #1 succeeded at 1279 (offset 53 lines).
--- End code ---
changelog.rej:
--- Code: ---***************
*** 1,4 ****
- codeblocks (8.02svn5933) unstable; urgency=low
* more fixes to debian build system, sources and packages are now
lintian-clean, except for some words guessed as spelling-errors.
--- 1,4 ----
+ codeblocks (8.02svn6198) unstable; urgency=low
* more fixes to debian build system, sources and packages are now
lintian-clean, except for some words guessed as spelling-errors.
--- End code ---
And then I get errors trying to build CB. Build Log:
--- Code: ---||=== Code::Blocks, Compiler ===|
C:\codeblocks\src\plugins\compilergcc\compilerD.cpp|40|error: redefinition of 'wxString CompilerD::GetCmdOutput(wxString, wxString, int) const'|
C:\codeblocks\src\plugins\compilergcc\compilerD.cpp|6|error: 'wxString CompilerD::GetCmdOutput(wxString, wxString, int) const' previously defined here|
C:\codeblocks\src\plugins\compilergcc\compilerD.cpp|59|error: redefinition of 'wxString CompilerD::GetCmdOutput(wxString) const'|
C:\codeblocks\src\plugins\compilergcc\compilerD.cpp|25|error: 'wxString CompilerD::GetCmdOutput(wxString) const' previously defined here|
||=== Build finished: 4 errors, 0 warnings ===|
||=== Build finished: 4 errors, 0 warnings ===|
--- End code ---
Hope this helps..
Edit: Forgot to mention this is on XP-32bit
michaelp:
Also have problems patching. This is with the 10.05 source.
--- Code: ---patching file changelog
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file changelog.rej
patching file compilerDMD.h
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file compilerDMD.h.rej
patching file compilerD.h
patching file compilerGDC.h
Hunk #1 FAILED at 6.
Hunk #2 succeeded at 18 with fuzz 3 (offset -1 lines).
1 out of 2 hunks FAILED -- saving rejects to file compilerGDC.h.rej
patching file compilerDMD.cpp
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 17.
Hunk #3 succeeded at 110 with fuzz 3 (offset -1 lines).
Hunk #4 FAILED at 153.
3 out of 4 hunks FAILED -- saving rejects to file compilerDMD.cpp.rej
patching file compilerD.cpp
patching file compilergcc.cpp
Hunk #1 FAILED at 393.
1 out of 1 hunk FAILED -- saving rejects to file compilergcc.cpp.rej
patching file compilerGDC.cpp
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 83.
Hunk #3 succeeded at 108 with fuzz 3 (offset -1 lines).
Hunk #4 succeeded at 195 with fuzz 3 (offset -2 lines).
Hunk #5 FAILED at 252.
3 out of 5 hunks FAILED -- saving rejects to file compilerGDC.cpp.rej
patching file common_functions.script
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 65.
Hunk #3 FAILED at 115.
Hunk #4 FAILED at 130.
4 out of 4 hunks FAILED -- saving rejects to file common_functions.script.rej
patching file hello.d
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file hello.d.rej
patching file wizard.script
Hunk #1 FAILED at 17.
Hunk #2 FAILED at 28.
2 out of 2 hunks FAILED -- saving rejects to file wizard.script.rej
patching file codecompletion.cpp
Hunk #1 succeeded at 78 with fuzz 3 (offset -1 lines).
Hunk #2 FAILED at 644.
1 out of 2 hunks FAILED -- saving rejects to file codecompletion.cpp.rej
patching file lexer_d.xml
Hunk #1 FAILED at 3.
Hunk #2 FAILED at 68.
2 out of 2 hunks FAILED -- saving rejects to file lexer_d.xml.rej
patching file lexer_d.sample
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 15.
2 out of 2 hunks FAILED -- saving rejects to file lexer_d.sample.rej
patching file CodeBlocks-unix.cbp
Hunk #1 succeeded at 1125 with fuzz 3 (offset -1 lines).
patching file CodeBlocks.cbp
Hunk #1 succeeded at 1225 with fuzz 3 (offset -1 lines).
--- End code ---
Using:
--- Code: ---patch -F 100 < d_v8_unix.patch
--- End code ---
On Ubuntu 10.04. Didn't try to compile it.
If this could work with the latest SVN, or this release, that would be great.
stahta01:
The command I use to create an unified patch on Windows.
This is the result of reading and lots of trial and error.
My SVN is CollabNet Subversion Client and my patch and unix2dos is from GnuWin32
--- Code: ---svn.exe diff --extensions --unified --extensions --ignore-space-change --extensions --ignore-eol-style > my.patch
--- End code ---
The command I use to apply the created patch is
--- Code: ---unix2dos < my.patch > my-CRLF.patch
patch --backup-if-mismatch --unified --strip=0 --ignore-whitespace --forward --input=my-CRLF.patch
--- End code ---
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version