digitalmars.D.bugs - [Issue 6535] New: RDMD outputs broken library files
- d-bugmail puremagic.com (44/44) Aug 20 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6535
- d-bugmail puremagic.com (10/10) Mar 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6535
- d-bugmail puremagic.com (8/8) Mar 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6535
- d-bugmail puremagic.com (12/12) Mar 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6535
- d-bugmail puremagic.com (8/8) Mar 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6535
- d-bugmail puremagic.com (12/12) Mar 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6535
http://d.puremagic.com/issues/show_bug.cgi?id=6535 Summary: RDMD outputs broken library files Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: pastas4 gmail.com When trying to compile a static library with RDMD, the output file is always 72 bytes long, which of course is not valid. Using DMD to compile the library works correctly. To reproduce, I use this basic D file: =============== module lib; import std.stdio; void libraryFunction() { writeln("You have executed the library function!"); } =============== If I try to compile it with RDMD using this syntax: =============== rdmd --build-only -lib lib.d =============== I get a lib.a file that is 72 bytes long. However, if I use the standalone DMD like this: =============== dmd -lib lib.d =============== The resulting file is 43.5 kibibytes of size and valid. If I make RDMD chatty and enable both standard and informational warnings, it shows that a lib.d.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX file is created in the /tmp/.rdmd directory and is of 43.5 kibibytes size. I assume it is the correct file (the size matches exactly) that somehow doesn't get copied to the directory I am building the library in. I am using RDMD build 20110706, DMD64 v2.054, openSUSE 11.4 x86_64. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 20 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6535 Vladimir Panteleev <thecybershadow gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thelastmammoth gmail.com 11:18:38 EET --- *** Issue 8230 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6535 Commit pushed to master at https://github.com/D-Programming-Language/tools https://github.com/D-Programming-Language/tools/commit/0ce81aaa86111f57444e9b43f121f09e6bbf0b01 rdmd: Fix building library files (Issue 6535) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6535 David Nadlinger <code klickverbot.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code klickverbot.at, | |thecybershadow gmail.com PDT --- Vladimir, your fix doesn't seem to have addressed the case where no "-od" is specified, as in the original report. Can you have another look at this? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6535 02:57:53 EET --- I'm fairly certain it does, David. The command: rdmd --build-only -lib lib.d creates a 200KB lib.lib file for me with the patch. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6535 David Nadlinger <code klickverbot.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED PDT --- Vladimir: Oh, it does indeed. What I was seeing is http://d.puremagic.com/issues/show_bug.cgi?id=9684. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 10 2013