Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1140146 - k3d uses legacy syscall not supported on AArch64
Summary: k3d uses legacy syscall not supported on AArch64
Alias: None
Product: Fedora
Classification: Fedora
Component: k3d
Version: rawhide
Hardware: aarch64
OS: Unspecified
Target Milestone: ---
Assignee: Ralf Corsepius
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: ARM64, F-ExcludeArch-aarch64
TreeView+ depends on / blocked
Reported: 2014-09-10 11:20 UTC by Marcin Juszkiewicz
Modified: 2014-09-23 04:22 UTC (History)
1 user (show)

Fixed In Version: k3d-
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-09-11 10:28:00 UTC
Type: Bug

Attachments (Terms of Use)
patch + spec changeset (2.22 KB, text/plain)
2014-09-10 11:20 UTC, Marcin Juszkiewicz
no flags Details

Description Marcin Juszkiewicz 2014-09-10 11:20:16 UTC
Created attachment 936107 [details]
patch + spec changeset

Description of problem:

k3d uses inotify_init legacy syscall which is not supported on AArch64

Version-Release number of selected component (if applicable):

How reproducible:


Steps to Reproduce:
1. build on aarch64

Actual results:

In file included from /builddir/build/BUILD/k3d-source-
/builddir/build/BUILD/k3d-source- fatal error: sys/inotify-syscalls.h: No such file or directory
 #include <sys/inotify-syscalls.h>
compilation terminated.

Expected results:


Additional info: is failed build

Comment 1 Ralf Corsepius 2014-09-11 06:04:12 UTC
I am not sure what to do with this BZ and have some question on it.

1. AFAIS, none of the architectures fedora currently supports seems to provide a sys/inotify-syscalls.h header (Not even EPEL5).

Therefore I think, I could completely remove this #include <sys/inotfiy-syscall.h>, because backward compatibility not much of importance to Fedora.

Debian, however seems to carry a newer version of k3d than Fedora, whose origins are unknown to me. Could be a debian specific fork. 

They apply this patch, which is similar to what I wrote above:

diff -Naur k3d-source- k3d-
--- k3d-source-    2010-07-03 04:27:55.000000000 +0200
+++ k3d-   2013-07-22 00:29:39.000000000 +0200
@@ -27,15 +27,8 @@
 #include <deque>
 #include <map>
-// Please ensure that the following headers take the right place
-#include <sys/syscall.h>
 #include <sys/inotify.h>
-// Use this if syscalls not defined
-#ifndef __NR_inotify_init
-#include <sys/inotify-syscalls.h>
-#endif // __NR_inotify_init
 /// Event struct size
 #define INOTIFY_EVENT_SIZE (sizeof(struct inotify_event))

2. aarch64 currently is not on the set of archs Fedora supports. 
Is it a secondary arch? How to (test-) build for them, say in koji, bodhi?

Comment 2 Marcin Juszkiewicz 2014-09-11 06:47:03 UTC
1. Debian patch is even better than mine.

2. AArch64 is secondary arch. You can do scratch builds against fc21 and rawhide using "arm-koji" command. We have service with several builders available.

Comment 3 Ralf Corsepius 2014-09-11 10:28:00 UTC
Debian patch applied to rawhide.

Arm scatch build did not fail:

I going to push this to f21, also.

Comment 4 Fedora Update System 2014-09-11 13:36:42 UTC
k3d- has been submitted as an update for Fedora 21.

Comment 5 Fedora Update System 2014-09-23 04:22:27 UTC
k3d- has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.