Many warnings on make menuconfig

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Many warnings on make menuconfig

Postby adminwset » Mon Jul 11, 2016 1:30 am

Hey guys,
I saw i get amazing many warnings on make menuconfig - maybe we check what is wrong?

root@taken:/usr/src/linux# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/mconf.o
scripts/kconfig/mconf.c: In function ‘set_config_filename’:
scripts/kconfig/mconf.c:304:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (size >= sizeof(menu_backtitle))
^
scripts/kconfig/mconf.c:309:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (size >= sizeof(filename))
^
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
In file included from scripts/kconfig/lxdialog/checklist.c:24:0:
scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
scripts/kconfig/lxdialog/dialog.h:63:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define MAX(x,y) (x > y ? x : y)
^
scripts/kconfig/lxdialog/checklist.c:182:13: note: in expansion of macro ‘MAX’
check_x = MAX(check_x, strlen(item_str()) + 4);
^
scripts/kconfig/lxdialog/dialog.h:63:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
#define MAX(x,y) (x > y ? x : y)
^
scripts/kconfig/lxdialog/checklist.c:182:13: note: in expansion of macro ‘MAX’
check_x = MAX(check_x, strlen(item_str()) + 4);
^
HOSTCC scripts/kconfig/lxdialog/util.o
scripts/kconfig/lxdialog/util.c: In function ‘dialog_clear’:
scripts/kconfig/lxdialog/util.c:294:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (skip < strlen(pos->text)) {
^
In file included from scripts/kconfig/lxdialog/util.c:24:0:
scripts/kconfig/lxdialog/util.c: In function ‘print_title’:
scripts/kconfig/lxdialog/dialog.h:62:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/util.c:368:14: note: in expansion of macro ‘MIN’
int tlen = MIN(width - 2, strlen(title));
^
scripts/kconfig/lxdialog/dialog.h:62:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/util.c:368:14: note: in expansion of macro ‘MIN’
int tlen = MIN(width - 2, strlen(title));
^
scripts/kconfig/lxdialog/util.c: In function ‘print_autowrap’:
scripts/kconfig/lxdialog/util.c:415:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
&& wlen + 1 + strlen(sp) > room
^
scripts/kconfig/lxdialog/util.c: In function ‘first_alpha’:
scripts/kconfig/lxdialog/util.c:536:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < strlen(string); i++) {
^
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
In file included from scripts/kconfig/lxdialog/textbox.c:22:0:
scripts/kconfig/lxdialog/textbox.c: In function ‘print_line’:
scripts/kconfig/lxdialog/dialog.h:62:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/textbox.c:346:10: note: in expansion of macro ‘MIN’
line += MIN(strlen(line), hscroll); /* Scroll horizontally */
^
scripts/kconfig/lxdialog/dialog.h:62:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/textbox.c:346:10: note: in expansion of macro ‘MIN’
line += MIN(strlen(line), hscroll); /* Scroll horizontally */
^
scripts/kconfig/lxdialog/dialog.h:62:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/textbox.c:349:22: note: in expansion of macro ‘MIN’
waddnstr(win, line, MIN(strlen(line), width - 2));
^
scripts/kconfig/lxdialog/dialog.h:62:29: warning: signed and unsigned type in conditional expression [-Wsign-compare]
#define MIN(x,y) (x < y ? x : y)
^
scripts/kconfig/lxdialog/textbox.c:349:22: note: in expansion of macro ‘MIN’
waddnstr(win, line, MIN(strlen(line), width - 2));
^
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
#
# using defaults found in arch/x86/configs/x86_64_defconfig
#


---------------------------------------------------
root@taken:/usr/src/linux# make -v
GNU Make 4.1

root@taken:/usr/src/linux# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 5.4.0-6' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Debian 5.4.0-6)

Best Regards
Marek
adminwset
 
Posts: 8
Joined: Fri May 07, 2004 6:05 am

Re: Many warnings on make menuconfig

Postby PaX Team » Mon Jul 11, 2016 4:38 am

these warnings are exposed only because we change HOSTCFLAGS. i think they're harmless (a mix of int/size_t types but with runtime values not triggering any integer error that i can see) but if you're bothered by them, we take patches ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support

cron