<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Can't build with LLVM/clang because of introduced VLAIS"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99458">99458</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Can't build with LLVM/clang because of introduced VLAIS
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tpgxyz@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Hi,
looks like VLAIS has been introduced into pulseaudio-10.0.
Here is the log:
libtool: compile: /usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../src
-I../src/modules -I../src/modules
-DPA_ALSA_PATHS_DIR=\"/usr/share/pulseaudio/alsa-mixer/paths\"
-DPA_ALSA_PROFILE_SETS_DIR=\"/usr/share/pulseaudio/alsa-mixer/profile-sets\"
-DPA_SRCDIR=\"/builddir/build/BUILD/pulseaudio-10.0/src\"
-DPA_BUILDDIR=\"/builddir/build/BUILD/pulseaudio-10.0/src\"
-DPULSE_LOCALEDIR=\"/usr/share/locale\" -DFASTPATH -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 -std=gnu11 -pthread -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/dbus-1.0
-I/usr/lib64/dbus-1.0/include -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=4 -fPIC -flto -Wall -W -Wextra -Wno-long-long
-Wno-overlength-strings -Wundef -Wformat=2 -Wsign-compare -Wformat-security
-Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition
-Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal
-Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
-Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align
-Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common
-fdiagnostics-show-option -fdiagnostics-color=auto -c pulsecore/iochannel.c
-fPIC -DPIC -o pulsecore/.libs/libpulsecommon_10.0_la-iochannel.o
make[3]: Leaving directory '/builddir/build/BUILD/pulseaudio-10.0/src'
pulsecore/iochannel.c:324:9: warning: cast from 'unsigned char *' to 'struct
ucred *' increases required alignment from 1 to 4 [-Wcast-align]
u = (struct ucred*) CMSG_DATA(&cmsg.hdr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pulsecore/iochannel.c:358:17: error: fields must have a constant size:
'variable length array in structure' extension will never be supported
uint8_t data[CMSG_SPACE(sizeof(int) * nfd)];
^
pulsecore/iochannel.c:377:15: warning: cast from 'unsigned char *' to 'int *'
increases required alignment from 1 to 4 [-Wcast-align]
msgdata = (int*) CMSG_DATA(&cmsg.hdr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
pulsecore/iochannel.c:450:35: warning: cast from 'unsigned char *' to 'int *'
increases required alignment from 1 to 4 [-Wcast-align]
pa_close(((int*) CMSG_DATA(cmh))[i]);
^~~~~~~~~~~~~~~~~~~~~
3 warnings and 1 error generated.
make[3]: *** [Makefile:7816: pulsecore/libpulsecommon_10.0_la-iochannel.lo]
Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Entering directory '/builddir/build/BUILD/pulseaudio-10.0/src'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>