www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - assert error from core/sys/posix/sys/stat

reply d007 <d007 gmail.com> writes:
try with `/opt/local/ldc2/bin/ldc2 
--mtriple=arm-alpine-linux-musl`, get this error:


```sh
import/core/sys/posix/sys/stat.d(651): Error: static assert:  
`128u == 104u` is false
```

ldc version `1.33.0-beta1 (DMD v2.103.1, LLVM 15.0.7)`
May 22 2023
parent reply user456 <user456 123.de> writes:
On Monday, 22 May 2023 at 16:35:39 UTC, d007 wrote:
 try with `/opt/local/ldc2/bin/ldc2 
 --mtriple=arm-alpine-linux-musl`, get this error:


 ```sh
 import/core/sys/posix/sys/stat.d(651): Error: static assert:  
 `128u == 104u` is false
 ```

 ldc version `1.33.0-beta1 (DMD v2.103.1, LLVM 15.0.7)`
Report to https://issues.dlang.org/. That's probably a problem with how stat_t type is implemented in musl vs how it is in GNU libc.
May 22 2023
parent d007 <d007 gmail.com> writes:
On Monday, 22 May 2023 at 23:24:38 UTC, user456 wrote:
 On Monday, 22 May 2023 at 16:35:39 UTC, d007 wrote:
 try with `/opt/local/ldc2/bin/ldc2 
 --mtriple=arm-alpine-linux-musl`, get this error:


 ```sh
 import/core/sys/posix/sys/stat.d(651): Error: static assert:  
 `128u == 104u` is false
 ```

 ldc version `1.33.0-beta1 (DMD v2.103.1, LLVM 15.0.7)`
Report to https://issues.dlang.org/. That's probably a problem with how stat_t type is implemented in musl vs how it is in GNU libc.
thanks for the tips, can not use issues.dlang.org. if some one have account please help report this bugs. thanks very much. cross build from host will trigger this.
May 25 2023