Bug 89379 - Systemd 219 does not build with LLVM/clang
Summary: Systemd 219 does not build with LLVM/clang
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL: https://issues.openmandriva.org/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-01 19:06 UTC by Tomasz Paweł Gajc
Modified: 2015-03-02 19:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Tomasz Paweł Gajc 2015-03-01 19:06:23 UTC
Systemd-219 does not build with LLVM/clang due to added VLAIS in systemd code.

Build log can be found here:
https://abf.io/build_lists/2435505


/builddir/build/BUILD/systemd-219/src/shared/macro.h:36:38: note: expanded from macro '_alloc_'
#define _alloc_(...) __attribute__ ((alloc_size(__VA_ARGS__)))
                                     ^
/builddir/build/BUILD/systemd-219/src/libsystemd/sd-daemon/sd-daemon.c:357:25: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
                uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
                        ^
4 warnings and 1 error generated.
make[2]: *** [src/libsystemd/sd-daemon/libsystemd_internal_la-sd-daemon.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

Looks like culprit is here:
http://cgit.freedesktop.org/systemd/systemd/commit/src/libsystemd/sd-daemon/sd-daemon.c?id=a354329f724d6ce913d2ccffb2be8f3327a67faa
Comment 1 Lennart Poettering 2015-03-02 19:58:37 UTC
Fixed in git.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.