setools: cast increases required alignment of target type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When compiling setools on at least mips64el and sparc64, I get the following error:

mips64el-linux-gnuabi64-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-sign-compare -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibqpol -Ilibqpol/include -I/usr/include/python3.5m -c libqpol/module_compiler.c -o build/temp.linux-mips64-3.5/libqpol/module_compiler.o -Werror -Wextra -Waggregate-return -Wcast-align -Wfloat-equal -Wformat -Wformat=2 -Winit-self -Winline -Wmissing-format-attribute -Wmissing-include-dirs -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wunknown-pragmas -Wwrite-strings -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-qual -Wno-shadow -Wno-unreachable-code -fno-exceptions
libqpol/module_compiler.c: In function ‘declare_symbol’:
libqpol/module_compiler.c:155:19: error: cast increases required alignment of target type [-Werror=cast-align]
    *dest_value = ((level_datum_t *)s)->level->sens;
                   ^
libqpol/module_compiler.c: In function ‘require_symbol’:
libqpol/module_compiler.c:650:19: error: cast increases required alignment of target type [-Werror=cast-align]
    *dest_value = ((level_datum_t *)s)->level->sens;
                   ^
libqpol/module_compiler.c: In function ‘require_bool_tunable’:
libqpol/module_compiler.c:1077:36: error: cast increases required alignment of target type [-Werror=cast-align]
      require_symbol(SYM_BOOLS, id, (hashtab_datum_t *) booldatum,
                                    ^
libqpol/module_compiler.c: In function ‘require_cat’:
libqpol/module_compiler.c:1201:40: error: cast increases required alignment of target type [-Werror=cast-align]
  retval = require_symbol(SYM_CATS, id, (hashtab_datum_t *) cat,
                                        ^
cc1: all warnings being treated as errors
error: command 'mips64el-linux-gnuabi64-gcc' failed with exit status 1

This is fatal only on some architectures, but I guess fixing this could also improve the performances on the others.

Regards,

Laurent Bigonville

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux