Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
November 07, 2016 Separating ddmd | ||||
---|---|---|---|---|
| ||||
Hello! I've tried to separate ddmd frontend from ldc. I just move folder ddmd from ldc project (versions 1.0.0) and folder ddmd from build directory to my test project. Folder ddmd from build I moved because it contains module id. Also as far as I know I need to compile some C++ sources. And this thing is not clear for. I found declaration of class Library but I don't see body of this class. Is it generated by something during ldc compilation? Does somebody know? By the way, does somebody knows where mr. Schott (Hackerpilot)? This is my ldc version LDC - the LLVM D compiler (7bef75): based on DMD v2.070.2 and LLVM 3.5.0 built with DMD64 D Compiler v2.071.2 Default target: x86_64-pc-linux-gnu Host CPU: bdver2 OS: Kubuntu 14.04 Sorry if my english is not clear. |
November 07, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On 07/11/2016 10:08 PM, ANtlord wrote:
> Hello! I've tried to separate ddmd frontend from ldc. I just move folder
> ddmd from ldc project (versions 1.0.0) and folder ddmd from build
> directory to my test project. Folder ddmd from build I moved because it
> contains module id. Also as far as I know I need to compile some C++
> sources. And this thing is not clear for. I found declaration of class
> Library but I don't see body of this class. Is it generated by something
> during ldc compilation? Does somebody know?
>
> By the way, does somebody knows where mr. Schott (Hackerpilot)?
>
> This is my ldc version
> LDC - the LLVM D compiler (7bef75):
> based on DMD v2.070.2 and LLVM 3.5.0
> built with DMD64 D Compiler v2.071.2
> Default target: x86_64-pc-linux-gnu
> Host CPU: bdver2
>
> OS: Kubuntu 14.04
>
> Sorry if my english is not clear.
Why are you copying it from ldc?
The source code you're copying is from dmd. Only it has modifications to it that go beyond the stock frontend capabilities.
|
November 07, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to rikki cattermole | On Monday, 7 November 2016 at 09:11:45 UTC, rikki cattermole wrote:
>
> Why are you copying it from ldc?
> The source code you're copying is from dmd. Only it has modifications to it that go beyond the stock frontend capabilities.
Because source of module ddmd separated to folder in ldc. But know I've figured out that I can get all ddmd related sources by grep module name. But it will not fix my issue, will it?
|
November 08, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Monday, 7 November 2016 at 09:08:28 UTC, ANtlord wrote:
> Hello! I've tried to separate ddmd frontend from ldc. I just move folder ddmd from ldc project (versions 1.0.0) and folder ddmd from build directory to my test project. Folder ddmd from build I moved because it contains module id. Also as far as I know I need to compile some C++ sources. And this thing is not clear for. I found declaration of class Library but I don't see body of this class. Is it generated by something during ldc compilation? Does somebody know?
You should compile with `-d-version=IN_LLVM`. The front-end code still has some backend specific stuff in it that is versioned-out when IN_LLVM is set.
-Johan
|
November 09, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | On Tuesday, 8 November 2016 at 05:23:55 UTC, Johan Engelen wrote: > > You should compile with `-d-version=IN_LLVM`. The front-end code still has some backend specific stuff in it that is versioned-out when IN_LLVM is set. > > -Johan I've added it. Later compiler has shows a lot of warnings and one error. >source/ddmd/dinifile.d(100): Error: need -Jpath switch to import text file SYSCONFDIR.imp I've solved this error by addition the option >-J=/media/storage/develop/dspace/test/source/ddmd/ There is file SYSCONFDIR.imp. Now it shows my only a lot of warnings and doesn't build project. This is output of build http://vpaste.net/k2Y1U Should I fix this warning for successful build or does compiler get another errors but they are not in output? If compiler has errors how can I see them? I added flag '-wi', but it shows this http://vpaste.net/OsjUs. I build project by dub with flag --compiler=ldc2. There is dub.json http://vpaste.net/85VnL Also if it makes sense I've installed ldc to custom directory /media/storage/Apps/ldc |
November 09, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Wednesday, 9 November 2016 at 08:50:25 UTC, ANtlord wrote:
>
> Now it shows my only a lot of warnings and doesn't build project. This is output of build http://vpaste.net/k2Y1U
>
> Should I fix this warning for successful build or does compiler get another errors but they are not in output? If compiler has errors how can I see them? I added flag '-wi', but it shows this http://vpaste.net/OsjUs.
The warnings are harmless and are fixed in master.
I can't help you further with this. I don't know what exactly it is you want to do, but copying LDC's ddmd folder with a lot of LDC-specific modifications does not sound like the right approach. I'd start from DMD's source, and work from there.
|
November 09, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to ANtlord | On Monday, 7 November 2016 at 09:08:28 UTC, ANtlord wrote: > By the way, does somebody knows where mr. Schott (Hackerpilot)? You have to perform a summoning ritual. Start here: https://en.wikipedia.org/wiki/Magic_circle#Techniques |
November 09, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johan Engelen | On Wednesday, 9 November 2016 at 09:07:43 UTC, Johan Engelen wrote: > The warnings are harmless and are fixed in master. > > I can't help you further with this. I don't know what exactly it is you want to do, but copying LDC's ddmd folder with a lot of LDC-specific modifications does not sound like the right approach. I'd start from DMD's source, and work from there. I just want to try separate ddmd. I can try it with DMD instead LDC. I'm on master branch. I've moved all files contain string 'module ddmd', but I get another errors. http://vpaste.net/s813b Can you tell me your commit of DMD, where I've copied ddmd related files to your project and it works? |
November 09, 2016 Re: Separating ddmd | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brian Schott | On Wednesday, 9 November 2016 at 11:15:43 UTC, Brian Schott wrote:
> On Monday, 7 November 2016 at 09:08:28 UTC, ANtlord wrote:
>> By the way, does somebody knows where mr. Schott (Hackerpilot)?
>
> You have to perform a summoning ritual. Start here: https://en.wikipedia.org/wiki/Magic_circle#Techniques
It would be next level =)
I've performed complex issue instead summoning ritual. It related to implicitly identifyied array. I hope we can go on talk about it on github.
|
Copyright © 1999-2021 by the D Language Foundation