For those trying to build on Linux 5.1 please see this PR
https://github.com/darlinghq/darling-newlkm/pull/5
I have just included this patch in the most recent package.
Git Clone URL: | https://aur.archlinux.org/darling-git.git (read-only, click to copy) |
---|---|
Package Base: | darling-git |
Description: | Extra components for Darling that are not part of a typical ("stock") installation |
Upstream URL: | https://www.darlinghq.org |
Keywords: | Darwin Emulator macOS OSX Wine |
Licenses: | GPL3 |
Conflicts: | darling-extra |
Provides: | darling-extra |
Submitter: | UnicornDarkness |
Maintainer: | None |
Last Packager: | facekapow |
Votes: | 41 |
Popularity: | 0.000084 |
First Submitted: | 2013-06-29 15:19 (UTC) |
Last Updated: | 2023-10-15 18:57 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 17 Next › Last »
For those trying to build on Linux 5.1 please see this PR
https://github.com/darlinghq/darling-newlkm/pull/5
I have just included this patch in the most recent package.
When building it requires linux-headers on my system. But I run linux-zen instead. Can I safely ignore this dependency?
@dreieck & @J5lx, I have updated the PKGBUILD placing the git submodules into the sources section. Thanks for the info!
home/simona/.cache/yay/darling-git/src/darling/src/lkm/osfmk/duct/duct_kern_task.c:417:53: error: ‘struct task_struct’ has no member named ‘se’ times->sum_exec_runtime += t->se.sum_exec_runtime; ^~ make[6]: [scripts/Makefile.build:277: /home/simona/.cache/yay/darling-git/src/darling/src/lkm/osfmk/duct/duct_kern_task.o] Error 1 make[5]: [Makefile:1579: module/home/simona/.cache/yay/darling-git/src/darling/src/lkm] Error 2
I cannot build it on the latest Arch Linux:
Building the Linux kernel module
make[4]: Entering directory '/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm'
Running kernel version is 4.20.12-arch1-1-ARCH
rm -f darling-mach.mod.o
make -C /lib/modules/4.20.12-arch1-1-ARCH/build M=/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm modules
make[5]: Entering directory '/usr/lib/modules/4.20.12-arch1-1-ARCH/build'
Running kernel version is 4.20.12-arch1-1-ARCH
Invoked by kernel build system, building for 4.20.12-arch1-1-ARCH
CC [M] /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.o
/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.c: In function ‘pthread_kill_trap’:
/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.c:65:17: error: passing argument 1 of ‘clear_siginfo’ from incompatible pointer type [-Werror=incompatible-pointer-types]
clear_siginfo(&info);
^~~~~
In file included from ./include/linux/syscalls.h:76,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/osfmk/duct/duct.h:73,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.h:22,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.c:20:
./include/linux/signal.h:20:52: note: expected ‘kernel_siginfo_t *’ {aka ‘struct kernel_siginfo *’} but argument is of type ‘struct siginfo *’
static inline void clear_siginfo(kernel_siginfo_t *info)
~~~~~~~~~~~~~~~~~~^~~~
/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.c:74:33: error: passing argument 2 of ‘send_sig_info’ from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = send_sig_info(args.sig, &info, t);
^~~~~
In file included from ./include/linux/ptrace.h:7,
from ./include/uapi/asm-generic/bpf_perf_event.h:4,
from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1,
from ./include/uapi/linux/bpf_perf_event.h:11,
from ./include/linux/perf_event.h:18,
from ./include/linux/trace_events.h:10,
from ./include/trace/syscall.h:7,
from ./include/linux/syscalls.h:85,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/osfmk/duct/duct.h:73,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.h:22,
from /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.c:20:
./include/linux/sched/signal.h:325:31: note: expected ‘struct kernel_siginfo *’ but argument is of type ‘struct siginfo *’
extern int send_sig_info(int, struct kernel_siginfo *, struct task_struct *);
^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:292: /home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm/darling/pthread_kill.o] Error 1
make[5]: *** [Makefile:1562: _module_/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm] Error 2
make[5]: Leaving directory '/usr/lib/modules/4.20.12-arch1-1-ARCH/build'
make[4]: *** [Makefile:292: default] Error 2
make[4]: Leaving directory '/home/yuuta/Softs/AUR/darling-git/src/darling/src/lkm'
make[3]: *** [src/lkm/CMakeFiles/lkm.dir/build.make:58: src/lkm/CMakeFiles/lkm] Error 2
make[2]: *** [CMakeFiles/Makefile2:54218: src/lkm/CMakeFiles/lkm.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:54225: src/lkm/CMakeFiles/lkm.dir/rule] Error 2
make: *** [Makefile:15010: lkm] Error 2
Could you help me to solve that? Thanks.
.. and what for is e.g. perl needed, when I just want to build the kernel module?
The Arch Wiki has instructions on how to handle git submodules: https://wiki.archlinux.org/index.php/VCS_package_guidelines#Git_Submodules
The prepare()
-function invokes a lot of data traffic (via initialisation of git submodules).
For getting sources, the source
-array is the place to go.
Is it possible to make all the downloads via the source
-array? Would be much more convenient, expecially over slow internet connections where downloading via source-array can be managed differently e.g. by specifiying handlers in the makepkg.conf.
Package updated - Added new dependencies libpng, libtiff, glu, cairo, libbsd, python2, and linux-headers
thanks @tgc
I found that in a headless install it now requires OpenGL libraries.
I tried building this pkg on a very fresh Arch install and had to install the following additional dependencies (some probably overlap) to successfully build it: llvm libpng mesa cairo libtiff libbsd python2 linux-headers
Pinned Comments
jamesbrink commented on 2019-07-10 02:27 (UTC)
Please use this package for stable more reliable builds
https://aur.archlinux.org/packages/darling/
This one is identical but locked in on a last known working git ref and I will update as often as I can.
I have also raised an issue about versioning so maybe we can get some kind of tags for future versions and stable working builds
https://github.com/darlinghq/darling/issues/537