[pulseaudio-tickets] [Bug 99458] New: Can't build with LLVM/clang because of introduced VLAIS

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 19 10:34:09 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99458

            Bug ID: 99458
           Summary: Can't build with LLVM/clang because of introduced
                    VLAIS
           Product: PulseAudio
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: core
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: tpgxyz at gmail.com
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

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'

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20170119/a603dbad/attachment.html>


More information about the pulseaudio-bugs mailing list