Voxelands Forum

The official Voxelands discussion forum

You are not logged in.

#1 2018-01-15 17:26:35

cHyper
Member
From: austria
Registered: 2014-04-20
Posts: 88
Website

Problem compiling voxelands - ubuntu 17.10

/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp: In function ‘std::__cxx11::string analyze_block(MapBlock*)’:
/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:527:13: warning: ‘%2d’ directive output may be truncated writing between 2 and 6 bytes into a region of size between 5 and 13 [-Wformat-truncation=]
 std::string analyze_block(MapBlock *block)
             ^~~~~~~~~~~~~
/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:527:13: note: directive argument in the range [-32768, 32767]
In file included from /usr/include/stdio.h:862:0,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/debug.h:29,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.h:33,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 13 and 25 bytes into a destination of size 20
        __bos (__s), __fmt, __va_arg_pack ());

...
...
...

/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp: In function ‘std::__cxx11::string analyze_block(MapBlock*)’:
/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:527:13: warning: ‘%2d’ directive output may be truncated writing between 2 and 6 bytes into a region of size between 5 and 13 [-Wformat-truncation=]
 std::string analyze_block(MapBlock *block)
             ^~~~~~~~~~~~~
/home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:527:13: note: directive argument in the range [-32768, 32767]
In file included from /usr/include/stdio.h:862:0,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/debug.h:29,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.h:33,
                 from /home/chyper/Dokumente/voxelands-v1709.00/src/mapblock.cpp:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 13 and 25 bytes into a destination of size 20
        __bos (__s), __fmt, __va_arg_pack ());
                                            ^
                                            ^

Why are these error-messages. it generates a executeable file, but there are problems with the objects in the hand.

3VhJceX.png

Last edited by cHyper (2018-01-15 17:33:24)

Offline

#2 2018-01-31 11:09:15

cHyper
Member
From: austria
Registered: 2014-04-20
Posts: 88
Website

Re: Problem compiling voxelands - ubuntu 17.10

i changed linux version to 16.04.03 and all works now again, thanks.

Offline

Board footer

Powered by FluxBB