[GH-ISSUE #2791] Build issues on Fedora #1748

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

Originally created by @reinerh on GitHub (Jun 21, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2791

Since a few weeks there seem to be build issues on fedora, as can be seen on @Fred-Barclay's CI job: https://gitlab.com/Firejail/firejail_ci/-/jobs/236741950

There are a bunch of errors like this:

common.c: In function 'timetrace_start':
common.c:297:1: error: '-mindirect-branch' and '-fcf-protection' are not compatible
  297 | void timetrace_start(void) {
      | ^~~~
common.c: In function 'timetrace_end':
common.c:319:1: error: '-mindirect-branch' and '-fcf-protection' are not compatible
  319 | float timetrace_end(void) {
      | ^~~~~

Compiler is gcc 9.1.

Originally created by @reinerh on GitHub (Jun 21, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2791 Since a few weeks there seem to be build issues on fedora, as can be seen on @Fred-Barclay's CI job: https://gitlab.com/Firejail/firejail_ci/-/jobs/236741950 There are a bunch of errors like this: ``` common.c: In function 'timetrace_start': common.c:297:1: error: '-mindirect-branch' and '-fcf-protection' are not compatible 297 | void timetrace_start(void) { | ^~~~ common.c: In function 'timetrace_end': common.c:319:1: error: '-mindirect-branch' and '-fcf-protection' are not compatible 319 | float timetrace_end(void) { | ^~~~~ ``` Compiler is gcc 9.1.
gitea-mirror 2026-05-05 08:24:58 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@reinerh commented on GitHub (Jun 21, 2019):

I'm not able to reproduce it on Debian with gcc 9.1.
I also don't have -fcf-protection on the command line. It looks like Fedora is adding it to the compiler flags.

<!-- gh-comment-id:504398085 --> @reinerh commented on GitHub (Jun 21, 2019): I'm not able to reproduce it on Debian with gcc 9.1. I also don't have `-fcf-protection` on the command line. It looks like Fedora is adding it to the compiler flags.
Author
Owner

@reinerh commented on GitHub (Jun 21, 2019):

Just noticed it is a duplicate of #2661.

<!-- gh-comment-id:504398572 --> @reinerh commented on GitHub (Jun 21, 2019): Just noticed it is a duplicate of #2661.
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#1748
No description provided.