Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forkfd: clone() not available on Linux/ia64 #160

Open
pinotree opened this issue Oct 2, 2022 · 0 comments
Open

forkfd: clone() not available on Linux/ia64 #160

pinotree opened this issue Oct 2, 2022 · 0 comments

Comments

@pinotree
Copy link

pinotree commented Oct 2, 2022

PR #94 introduces the usage of clone() in the Linux implementation of forkfd; that syscall is not available on the ia64 architecture, and Qt 6.4.0 (which includes the forkfd implementation from this repository) fails to build on ia64 because of that:

/usr/bin/ld: src/corelib/CMakeFiles/Core.dir/io/forkfd_qt.cpp.o: in function `system_vforkfd(int, int*, int (*)(void*), void*, int*)':
./obj-ia64-linux-gnu/./src/corelib/io/../../3rdparty/forkfd/forkfd_linux.c:171: undefined reference to `clone'
collect2: error: ld returned 1 exit status

https://buildd.debian.org/status/fetch.php?pkg=qt6-base&arch=ia64&ver=6.4.0%2Bdfsg-1&stamp=1664653669&raw=0

The different implementation available on ia64 (i.e. clone() vs clone2()) is also explained in the clone(2) man page: https://man7.org/linux/man-pages/man2/clone.2.html#NOTES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant