Project

General

Profile

Actions

Bug #1332

closed
SD

LTTng-UST requires glibc >= 2.16 to build

Bug #1332: LTTng-UST requires glibc >= 2.16 to build

Added by Sergei Dyshel almost 4 years ago. Updated over 3 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.

MD Updated by Mathieu Desnoyers almost 4 years ago Actions #1

  • 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

SD Updated by Sergei Dyshel almost 4 years ago Actions #2

Works for me!

MD Updated by Mathieu Desnoyers almost 4 years ago Actions #3

  • 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 ".

MJ Updated by Michael Jeanson over 3 years ago Actions #4

  • Target version changed from 41 to 2.13
Actions

Also available in: PDF Atom