Conversation
|
@JohanEngelen , ditto here: 1162004 |
|
Error on previous commit: |
|
Result: $ ./build/bin/ldc2 --version | head -n 5
LDC - the LLVM D compiler (1.38.0-git-f7b2474):
based on DMD v2.108.0 and LLVM 17.0.5
built with LDC - the LLVM D compiler (1.38.0-git-f7b2474)
Default target: x86_64-alpine-linux-musl
Host CPU: znver3 |
|
To save you some work, let's get the PR good in upstream, and then here we can cherry-pick from upstream. |
|
Now, aarch64/Linux error > [linux/arm64 4/11] RUN cd ldc && cmake -B build -DCMAKE_INSTALL_PREFIX="/opt" -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++ -DLLVM_IS_SHARED=OFF -DD_COMPILER_FLAGS=-link-defaultlib-shared=false -DBUILD_SHARED_LIBS=BOTH -DBUILD_LTO_LIBS=ON && cmake --build build --parallel && ninja -C build install:
5330.9 /ldc/runtime/druntime/src/core/sys/posix/sys/stat.d(704): Error: undefined identifier `__USE_FILE_OFFSET64`
5331.6 /ldc/runtime/druntime/src/core/sys/posix/sys/stat.d(678): Error: undefined identifier `__USE_FILE_OFFSET64`
5331.6 /ldc/runtime/druntime/src/core/sys/posix/sys/stat.d(693): Error: undefined identifier `__USE_FILE_OFFSET64`
5331.6 /ldc/runtime/druntime/src/core/sys/posix/sys/stat.d(704): Error: undefined identifier `__USE_FILE_OFFSET64` |
This comment was marked as resolved.
This comment was marked as resolved.
|
Maybe done for review. |
|
I'm sorry, I did not realize that removing |
Yes, I am in agreement with your point. I have no idea how to avoid the redundant use of Do you want to revert these latest commits?
Sadly, I don't know of any need for the user to use it. Not unless there's a low-level use case. |
Yes indeed, let's set version(CRuntime_Musl)
{
alias mmap64 = mmap;
}
If the user never uses it (it starts with double-underscore, which means that the user really should never use it, normally), then it is OK that it "lies" a little bit. |
|
Does this PR now fully work with Musl in your testing? |
Yes. My alpine-docker updated #11 0.589 -- LDC version identifier: 1.38.0-git-cb4c49bThis solution is still used by Alpine officially. cc: @Geod24 However, it doesn't seem to solve the another issue: |
References
mmap64error dlang/dmd#16361