Closed nolanbconaway closed 2 years ago
I think this is a duplicate of #978, but that one's closed.
I managed to get it to compile with the following patch:
File: darling/src/external/lkm/libkern/os/overflow.h
- #if __has_builtin(__builtin_add_overflow) && \
- __has_builtin(__builtin_sub_overflow) && \
- __has_builtin(__builtin_mul_overflow)
+ #if true
I suspect one of the above conditions is failing. I even downloaded the latest Clang tarball and it still fails at the exact same spot.
The brute-force patch seems to work. Then once the LKM is installed, darling shell
seems functional:
Darling [/Volumes/SystemRoot/home/ubuntu/darling/build]$ security list-keychain
"/Library/Keychains/System.keychain"
That did it for me as well! Thanks! Let me know if this should be left open for others!
Please try the solution described here and let me know if it works for you.
Hi, I had this very same issue and I have solved it as described above (editing the file overflow.h
).
Thanks for posting this solution!! @tresf
Closing this as we no longer use a kernel module.
Build Log I can't tell exactly what the relevant error is, but
error: implicit declaration of function ‘os_add_overflow’; did you mean ‘os_add3_overflow’? [-Werror=implicit-function-declaration]
is the last red thing in my terminal.I'll also say that there were countless warnings while running
make
, and not the ssl ones covered by the [docs]https://docs.darlinghq.org/build-instructions.html.I'm very sorry i cannot be more helpful about debuggin this; it's a little out of my zone! Here's hoping it's a known issue with an easy fix that someone can link to.
Here is the build log:
System Information What system are you building with?
Ubuntu 20.04.2 LTS
9393db2c6ed530acaa2a4a933c391f1363fea1e8