Project

General

Profile

Actions

Bug #1332

closed

LTTng-UST requires glibc >= 2.16 to build

Added by Sergei Dyshel almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
11/25/2021
Due date:
% Done:

0%

Estimated time:

Description

There is "static_assert" macro used in the code, which is only supported in glibc's "assert.h" header starting from version 2.16.
According to this page https://gcc.gnu.org/wiki/C11Status.

Please state this requirement in README or use more portable "_Static_assert" macro.

Actions #1

Updated by Mathieu Desnoyers almost 3 years ago

  • Status changed from New to Feedback

Can you try the following patch and let us know if it fixes your issue ?

https://review.lttng.org/c/lttng-ust/+/6837 Fix: static_assert unavailable with glibc < 2.16

Actions #2

Updated by Sergei Dyshel almost 3 years ago

Works for me!

Actions #3

Updated by Mathieu Desnoyers almost 3 years ago

  • Status changed from Feedback to Resolved

Fixed by:

commit 89350fda665 ("Fix: static_assert unavailable with glibc < 2.16")

Note that the commit incorrectly states " Fixes: #1331 " when it should in fact state " Fixes: #1332 ".

Actions #4

Updated by Michael Jeanson over 2 years ago

  • Target version changed from 41 to 2.13
Actions

Also available in: Atom PDF