digitalmars.D - Use digger on Mac ?
- Johan (15/15) Jul 30 2022 Hi all,
- Petar Kirov [ZombineDev] (7/24) Jul 31 2022 If this issue is not platform specific (it looks like it's not),
- Johan (5/21) Jul 31 2022 It would already help a lot if digger would not build DMD with
- Johan (12/28) Jul 31 2022 I've got it to work with ini settings:
Hi all, I'm trying to use digger to find what commit introduced https://issues.dlang.org/show_bug.cgi?id=23273 . It is introduced somewhere between 2.094 and 2.095. Because I'm on an Apple M1 chip, it looks I can only bootstrap with DMD 2.099 or newer (earlier compilers give an error "ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '../generated/build.o' for architecture x86_64". My problem: 2.099 cannot build 2.094, because it complains about: src/dmd/todt.d(50): Deprecation: module dmd.glue is not accessible here, perhaps add 'static import dmd.glue;' src/dmd/todt.d(50): Error: alias `dmd.todt.toSymbol` conflicts with alias `dmd.todt.toSymbol` at src/dmd/todt.d(49) I'm stuck. Any ideas on how to proceed? -Johan
Jul 30 2022
On Saturday, 30 July 2022 at 22:45:30 UTC, Johan wrote:Hi all, I'm trying to use digger to find what commit introduced https://issues.dlang.org/show_bug.cgi?id=23273 . It is introduced somewhere between 2.094 and 2.095. Because I'm on an Apple M1 chip, it looks I can only bootstrap with DMD 2.099 or newer (earlier compilers give an error "ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '../generated/build.o' for architecture x86_64". My problem: 2.099 cannot build 2.094, because it complains about: src/dmd/todt.d(50): Deprecation: module dmd.glue is not accessible here, perhaps add 'static import dmd.glue;' src/dmd/todt.d(50): Error: alias `dmd.todt.toSymbol` conflicts with alias `dmd.todt.toSymbol` at src/dmd/todt.d(49) I'm stuck. Any ideas on how to proceed? -JohanIf this issue is not platform specific (it looks like it's not), then perhaps the fastest solution would be to spin up an linux/amd64 docker container and use Digger from there. See for example this page on how to use's Docker Buildx's integrated emulation support: https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
Jul 31 2022
On Sunday, 31 July 2022 at 09:40:18 UTC, Petar Kirov [ZombineDev] wrote:On Saturday, 30 July 2022 at 22:45:30 UTC, Johan wrote:It would already help a lot if digger would not build DMD with `-w de`. -JohanHi all, I'm trying to use digger to find what commit introduced https://issues.dlang.org/show_bug.cgi?id=23273 . It is introduced somewhere between 2.094 and 2.095. Because I'm on an Apple M1 chip, it looks I can only bootstrap with DMD 2.099 or newer (earlier compilers give an error "ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '../generated/build.o' for architecture x86_64". My problem: 2.099 cannot build 2.094, because it complains about: src/dmd/todt.d(50): Deprecation: module dmd.glue is not accessible here, perhaps add 'static import dmd.glue;' src/dmd/todt.d(50): Error: alias `dmd.todt.toSymbol` conflicts with alias `dmd.todt.toSymbol` at src/dmd/todt.d(49)
Jul 31 2022
On Saturday, 30 July 2022 at 22:45:30 UTC, Johan wrote:Hi all, I'm trying to use digger to find what commit introduced https://issues.dlang.org/show_bug.cgi?id=23273 . It is introduced somewhere between 2.094 and 2.095. Because I'm on an Apple M1 chip, it looks I can only bootstrap with DMD 2.099 or newer (earlier compilers give an error "ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset file '../generated/build.o' for architecture x86_64". My problem: 2.099 cannot build 2.094, because it complains about: src/dmd/todt.d(50): Deprecation: module dmd.glue is not accessible here, perhaps add 'static import dmd.glue;' src/dmd/todt.d(50): Error: alias `dmd.todt.toSymbol` conflicts with alias `dmd.todt.toSymbol` at src/dmd/todt.d(49) I'm stuck. Any ideas on how to proceed?I've got it to work with ini settings: ``` dmd/f865abf9d1053de30409be97240bc61ed71bf931 +dmd/967c2a70634d07b4c7e2f9b3ecfb0112bb899130 [build] components.enable.druntime = false components.enable.phobos = false ``` and a custom object.d in my test directory. -Johan
Jul 31 2022