digitalmars.D - Separating ddmd
- ANtlord (17/17) Nov 07 2016 Hello! I've tried to separate ddmd frontend from ldc. I just move
- rikki cattermole (4/20) Nov 07 2016 Why are you copying it from ldc?
- ANtlord (5/9) Nov 07 2016 Because source of module ddmd separated to folder in ldc. But
- Johan Engelen (5/13) Nov 07 2016 You should compile with `-d-version=IN_LLVM`. The front-end code
- ANtlord (15/22) Nov 09 2016 I've added it. Later compiler has shows a lot of warnings and one
- Johan Engelen (6/12) Nov 09 2016 The warnings are harmless and are fixed in master.
- ANtlord (8/13) Nov 09 2016 I just want to try separate ddmd. I can try it with DMD instead
- Brian Schott (3/4) Nov 09 2016 You have to perform a summoning ritual. Start here:
- ANtlord (5/9) Nov 09 2016 It would be next level =)
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.
Nov 07 2016
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.
Nov 07 2016
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?
Nov 07 2016
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
Nov 07 2016
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. -JohanI'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.impI'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
Nov 09 2016
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.
Nov 09 2016
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?
Nov 09 2016
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
Nov 09 2016
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: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.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
Nov 09 2016