Use digger on Mac ?

Petar Petar
Sun Jul 31 09:40:18 UTC 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?
>
> -Johan

If 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/


More information about the Digitalmars-d mailing list