[GH-ISSUE #2044] 0.9.54 does not ARM cross-compile anymore (seccomp) [yocto] #1383

Closed
opened 2026-05-05 08:00:40 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @FabianKnapp on GitHub (Jul 16, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2044

I tried to compile 0.9.54 with the poky (yocto) ARM cross-compile toolchain. However, I got the following error:

| src/fseccomp/fseccomp: 1: src/fseccomp/fseccomp: Syntax error: word unexpected (expecting ")")
| Makefile:44: recipe for target 'filters' failed
| make: *** [filters] Error 2

0.9.38 worked without problems. I have no clue how to patch this error. Any ideas?

Originally created by @FabianKnapp on GitHub (Jul 16, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2044 I tried to compile 0.9.54 with the poky (yocto) ARM cross-compile toolchain. However, I got the following error: ``` | src/fseccomp/fseccomp: 1: src/fseccomp/fseccomp: Syntax error: word unexpected (expecting ")") | Makefile:44: recipe for target 'filters' failed | make: *** [filters] Error 2 ``` 0.9.38 worked without problems. I have no clue how to patch this error. Any ideas?
Author
Owner

@reinerh commented on GitHub (Jul 16, 2018):

The reason is that the fseccomp binary is compiled for arm, but during build you run fseccomp on a different architecture.
To workaround it, you could skip running fseccomp on build time and generate the seccomp filters on the target at install time.

<!-- gh-comment-id:405225029 --> @reinerh commented on GitHub (Jul 16, 2018): The reason is that the fseccomp binary is compiled for arm, but during build you run fseccomp on a different architecture. To workaround it, you could skip running fseccomp on build time and generate the seccomp filters on the target at install time.
Author
Owner

@FabianKnapp commented on GitHub (Jul 16, 2018):

Ah, thanky you very much for the help!
It is now working.

Patches and Yocto recipe:

firejail_0.9.54-yocto.tar.gz

<!-- gh-comment-id:405369768 --> @FabianKnapp commented on GitHub (Jul 16, 2018): Ah, thanky you very much for the help! It is now working. Patches and Yocto recipe: [firejail_0.9.54-yocto.tar.gz](https://github.com/netblue30/firejail/files/2199210/firejail_0.9.54-yocto.tar.gz)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1383
No description provided.