Re: A DUB Case Study: Compiling DMD as a Library

2017-12-21 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-12-21 05:12, Venkat wrote: I did a fresh clone of dmd and added that as a dependency. That fixed it. Should've thought of it !! Thankyou. Great that it works :) -- /Jacob Carlborg

Re: A DUB Case Study: Compiling DMD as a Library

2017-12-20 Thread Venkat via Digitalmars-d-learn
I did a fresh clone of dmd and added that as a dependency. That fixed it. Should've thought of it !! Thankyou.

Re: A DUB Case Study: Compiling DMD as a Library

2017-12-20 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-12-20 05:52, Venkat wrote: This is regarding the latest D blog post. Jacob Carlborg is here, so I figured I'd post it. https://dlang.org/blog/2017/08/01/a-dub-case-study-compiling-dmd-as-a-library/#comment-2922 Simply changing the targetType from library to dynamicLibrary breaks

Re: A DUB Case Study: Compiling DMD as a Library

2017-12-19 Thread Venkat via Digitalmars-d-learn
This is regarding the latest D blog post. Jacob Carlborg is here, so I figured I'd post it. https://dlang.org/blog/2017/08/01/a-dub-case-study-compiling-dmd-as-a-library/#comment-2922 Simply changing the targetType from library to dynamicLibrary breaks the code. What is going

Re: Compiling dmd -m64 on windows?

2016-01-29 Thread Tofu Ninja via Digitalmars-d-learn
On Friday, 29 January 2016 at 18:26:15 UTC, Tofu Ninja wrote: For some reason it complains that link.exe is missing. Anyone know what's up? dmd test.d dmd test.d -m64 Can't run '\bin\link.exe', check PATH link.exe is definitely on PATH... where link.exe C:\D\dmd2\windows\bin\link.exe

Re: Compiling dmd -m64 on windows?

2016-01-29 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 29 January 2016 at 18:27:50 UTC, Tofu Ninja wrote: where link.exe C:\D\dmd2\windows\bin\link.exe -m64 needs a different link.exe. It uses the Microsoft linker so you've gotta be sure that one is installed and the path of the VS bin is in there too. The dmd install exe will do

Compiling dmd -m64 on windows?

2016-01-29 Thread Tofu Ninja via Digitalmars-d-learn
For some reason it complains that link.exe is missing. Anyone know what's up? dmd test.d dmd test.d -m64 Can't run '\bin\link.exe', check PATH

Error Compiling DMD

2015-05-11 Thread Manfred Nowak via Digitalmars-d-learn
std.process.ProcessException@std\process.d(560): Failed to spawn new process This is the error-message from the D-script from http://wiki.dlang.org/Building_DMD -manfred

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Meta
It seems that while pointing to the correct link got rid of the linker warning, I still can't compile druntime. On Friday, 14 February 2014 at 02:50:04 UTC, Stanislav Blinov wrote: Are you by chance trying to compile dirty druntime tree? (i.e. you've compiled it before?). If so, make clean

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Stanislav Blinov
On Saturday, 15 February 2014 at 19:24:23 UTC, Meta wrote: It seems that while pointing to the correct link got rid of the linker warning, I still can't compile druntime. On Friday, 14 February 2014 at 02:50:04 UTC, Stanislav Blinov wrote: Are you by chance trying to compile dirty druntime

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Meta
On Saturday, 15 February 2014 at 22:05:00 UTC, Stanislav Blinov wrote: On Saturday, 15 February 2014 at 19:24:23 UTC, Meta wrote: It seems that while pointing to the correct link got rid of the linker warning, I still can't compile druntime. On Friday, 14 February 2014 at 02:50:04 UTC,

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Stanislav Blinov
On Saturday, 15 February 2014 at 23:04:26 UTC, Meta wrote: What about dmd itself? Have you rebuilt it from scratch too? Yes, DMD builds fine, and I tried to build druntime from a fresh DMD compile. That is bizarre. Which git commits are you using for dmd and druntime?

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Meta
On Saturday, 15 February 2014 at 23:37:40 UTC, Stanislav Blinov wrote: On Saturday, 15 February 2014 at 23:04:26 UTC, Meta wrote: What about dmd itself? Have you rebuilt it from scratch too? Yes, DMD builds fine, and I tried to build druntime from a fresh DMD compile. That is bizarre.

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Stanislav Blinov
On Sunday, 16 February 2014 at 01:34:53 UTC, Meta wrote: That is bizarre. Which git commits are you using for dmd and druntime? Whatever's currently in master for both DMD and druntime. win32.mak for druntime uses whatever dmd is in your PATH. My guess is on your machine it's not the same

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Meta
On Sunday, 16 February 2014 at 03:11:00 UTC, Stanislav Blinov wrote: On Sunday, 16 February 2014 at 01:34:53 UTC, Meta wrote: That is bizarre. Which git commits are you using for dmd and druntime? Whatever's currently in master for both DMD and druntime. win32.mak for druntime uses

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-15 Thread Stanislav Blinov
On Sunday, 16 February 2014 at 03:16:20 UTC, Meta wrote: On Sunday, 16 February 2014 at 03:11:00 UTC, Stanislav Blinov wrote: win32.mak for druntime uses whatever dmd is in your PATH. Ah, finally. That was it. Thanks for the tip. Heh. Sorry that took so long. I knew the error looked

Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-13 Thread Meta
I could find on line 4930 was: int TypeAArray::isZeroInit(Loc loc) { return true; } So I'm not really sure what's going on here, though I obviously did something wrong compiling DMD.

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-13 Thread Nick Sabalausky
On 2/13/2014 8:09 PM, Meta wrote: I'm using Windows 7 x64, but compiling 32-bit DMD. DMD compiles fine, but the linker warns about a Warning 9: Unknown Option : LA. After that, when trying to compile Druntime, DMD chokes with this error: Sounds like you're using an outdated OPTLINK. The /LA

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-13 Thread Stanislav Blinov
' on line 4930 in file 'mtype.c'. I looked in the file, but all I could find on line 4930 was: int TypeAArray::isZeroInit(Loc loc) { return true; } So I'm not really sure what's going on here, though I obviously did something wrong compiling DMD. Are you by chance trying to compile dirty druntime

Re: Trouble Compiling DMD, Druntime, Phobos on Windows

2014-02-13 Thread Meta
On Friday, 14 February 2014 at 01:58:13 UTC, Nick Sabalausky wrote: On 2/13/2014 8:09 PM, Meta wrote: I'm using Windows 7 x64, but compiling 32-bit DMD. DMD compiles fine, but the linker warns about a Warning 9: Unknown Option : LA. After that, when trying to compile Druntime, DMD chokes with

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-12 Thread Nick Sabalausky
On Sun, 11 Aug 2013 22:11:26 +0200 Jacob Carlborg d...@me.com wrote: On 2013-08-11 03:57, Nick Sabalausky wrote: I'm familiar with building DMD/Phobos on linux32/64 (and I assume freebsd is much the same, aside from having to install GNU make), but I know OSX is different in that the

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-12 Thread Jacob Carlborg
On 2013-08-12 09:33, Nick Sabalausky wrote: Thanks, I was indeed able to compile DMD/phobos on the system (after a lng and surprisingly non-trivial download and install process for xcode/gcc). Oh, really? I guess I forgot to mention that you need to install the command line tools as

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-12 Thread Nick Sabalausky
On Mon, 12 Aug 2013 10:33:24 +0200 Jacob Carlborg d...@me.com wrote: On 2013-08-12 09:33, Nick Sabalausky wrote: Thanks, I was indeed able to compile DMD/phobos on the system (after a lng and surprisingly non-trivial download and install process for xcode/gcc). Oh, really? I guess

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-12 Thread Nick Sabalausky
On Mon, 12 Aug 2013 12:11:13 -0400 Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: I see. In that case, the tools's posix.mak needs to be fixed, ideally by generating the executables into a subdirectory instead of tools's root. I'll put together a pull req.

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-12 Thread Jacob Carlborg
On 2013-08-12 18:11, Nick Sabalausky wrote: Actually, what really took the most time by far was just downloading xcode - that sucker's like 1 or 2 gigs! You can actually just download and install the command line tools. But I'm not sure if the DMD makefile is setup to handle that. I have

Re: Compiling DMD/Phobos on OSX (vs linux)

2013-08-11 Thread Jacob Carlborg
On 2013-08-11 03:57, Nick Sabalausky wrote: I'm familiar with building DMD/Phobos on linux32/64 (and I assume freebsd is much the same, aside from having to install GNU make), but I know OSX is different in that the 32/64-bits bins are combined. I don't have access to a modern OSX machine ATM,

Compiling DMD/Phobos on OSX (vs linux)

2013-08-10 Thread Nick Sabalausky
I'm familiar with building DMD/Phobos on linux32/64 (and I assume freebsd is much the same, aside from having to install GNU make), but I know OSX is different in that the 32/64-bits bins are combined. I don't have access to a modern OSX machine ATM, but I might have a little bit of time with one

Re: Compiling DMD on MAC OS X

2012-02-29 Thread Joshua Niehus
On Monday, 20 February 2012 at 11:18:34 UTC, Tyro[a.c.edwards] wrote: ... and I doubt you want me to put all of what dmd -v spits out for this little script. Thanks, Andrew Hi Andrew, I ran into this problem as well and here is how I fixed/hacked it: OSX Lion, and soon to be Mountain

Re: Compiling DMD on MAC OS X

2012-02-20 Thread Tyro[a.c.edwards]
On Sunday, 19 February 2012 at 11:39:15 UTC, kraybourne wrote: On 2/19/12 09:20 , Tyro[a.c.edwards] wrote: Hi all, I've just installed DMD 2.058 and attempted to compile a little script but was greeted with the following error: gcc: Invalid argument I used the .dmg installer from

Compiling DMD on MAC OS X

2012-02-19 Thread Tyro[a.c.edwards]
Hi all, I've just installed DMD 2.058 and attempted to compile a little script but was greeted with the following error: gcc: Invalid argument I used the .dmg installer from http://www.dlang.org/download.html and issued the command: dmd average Is there something I'm missing? Thanks,

Re: Compiling DMD on MAC OS X

2012-02-19 Thread kraybourne
On 2/19/12 09:20 , Tyro[a.c.edwards] wrote: Hi all, I've just installed DMD 2.058 and attempted to compile a little script but was greeted with the following error: gcc: Invalid argument I used the .dmg installer from http://www.dlang.org/download.html and issued the command: dmd average Is

Re: Compiling DMD

2011-04-08 Thread Simon
On 08/04/2011 05:37, Nick Sabalausky wrote: Is the makefile supposed to work out-of-the-box, or is it expected that it be edited first? Because when I do make -f win32.mak form the src dir I just get Error: '\dm\bin\dmc' not found. Same (exact same) result if I do make -f win32.mak

Compiling DMD

2011-04-07 Thread Nick Sabalausky
Is the makefile supposed to work out-of-the-box, or is it expected that it be edited first? Because when I do make -f win32.mak form the src dir I just get Error: '\dm\bin\dmc' not found. Same (exact same) result if I do make -f win32.mak D=path_to_parent_of_dm. I know I can just hack the