I guess switching on "Debug" (to include -Werror into compilation
flags) and switching off "Build essentials binaries only" (to build
network code) options should be enough to reproduce da bug.
2014-03-31 14:05 GMT+04:00, Vojtech Horky <[email protected]>:
> Hello Wolf.
>
> 2014-03-21 12:40 GMT+01:00 Wolf Ramovsky <[email protected]>:
>
>> 2014-03-21 15:07 GMT+04:00, Vojtech Horky <[email protected]>:
>> > Hello Wolf.
>> >
>> > 2014-03-21 12:01 GMT+01:00 Wolf Ramovsky <[email protected]>:
>> >
>> >> Also
>> >> in srv/net/dhcp/transport.c, line 182 and srv/net/dnssrv/dns_msg.c,
>> >> line 535, in debug build, GCC says that variables "size" or "q_size",
>> >> respectively, is possibly uninitialized.
>> >> I haven't explored for the rest possible uninitialized variable errors
>> >> and just removed -Werror option in debug build mode, so fixing
>> >> mentioned files could be not enough.
>> >>
>> > What version of GCC are you using? It seems to me you are not using the
>> one
>> > built by our toolchain script. Unfortunately, GCC ability to spot
>> > problematic places changes from version to version.
>>
>> I use gcc built by toolchain.sh, I see path to it in make output. It's
>> version is 4.8.1.
>>
> I am not able to reproduce this. Can you, please, post here relevant output
> from make? Which configuration are you using (default one for ia32 or with
> some changes)? Also output from <used-gcc> -v might be useful.
>
> Thanks!
>
> - Vojta
>
>
>
>>
>> _______________________________________________
>> HelenOS-devel mailing list
>> [email protected]
>> http://lists.modry.cz/listinfo/helenos-devel
>>
>
/home/wolfram/cross/ia32/bin/i686-pc-linux-gnu-gcc -I../../../lib/c/include
-I../../../lib/c/arch/ia32/include -I../../../../abi/include -Os -imacros
../../../../config.h -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32LE -finput-charset=UTF-8
-ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wextra -Wno-clobbered
-Wno-unused-parameter -Wmissing-prototypes -std=gnu99 -Werror-implicit-function-declaration
-Wwrite-strings -pipe -ggdb -D__LE__ -Werror -march=pentium -fno-omit-frame-pointer -c
transport.c -o transport.o
transport.c: In function 'dhcp_recv_fibril':
transport.c:182:14: error: 'size' may be used uninitialized in this function
[-Werror=maybe-uninitialized]
dt->recv_cb(dt->cb_arg, msg, size);
^
cc1: all warnings being treated as errors
Using built-in specs.
COLLECT_GCC=/home/wolfram/cross/ia32/bin/i686-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/home/wolfram/cross/ia32/bin/../libexec/gcc/i686-pc-linux-gnu/4.8.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /home/wolfram/projects/gsoc/helenos/tools/ia32/gcc-4.8.1/configure
--target=i686-pc-linux-gnu --prefix=/home/wolfram/cross//ia32
--program-prefix=i686-pc-linux-gnu- --with-gnu-as --with-gnu-ld --disable-nls
--disable-threads --enable-languages=c,objc,c++,obj-c++ --disable-multilib --disable-libgcj
--without-headers --disable-shared --enable-lto --disable-werror
Thread model: single
gcc version 4.8.1 (GCC)
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel