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

Re: [Xen-users] qemu-nbd.c:223:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]



Am 18.07.2014 um 13:07 schrieb bobbisanchez@xxxxxx:
Am 18.07.2014 um 11:31 schrieb Ian Campbell:
On Thu, 2014-07-17 at 18:18 +0200, bobbisanchez@xxxxxx wrote:
export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"

I think you should use the APPEND_* versions of these, since by setting
them as you have done you have overridden the Xen default ones
completely and they include things like -pipe and -std=gnu99 etc which
are needed to make things work.

I don't suppose many people have built Xen with -Os, so YMMV.

Ian.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

hi Ian

thanks for the Reply, i am sorry to ask but can you give me some
Hint/Example what exactly do you mean .. i am so sorry i am only an User
with some experience

best regards
bobbi

i tried export APPEND_CFLAGS and APPEND_CXXFLAGS and also APPEND_LDFLAGS wiht the values written above but now i get this :

gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -D__XEN_TOOLS__ -MMD -MF .libxl_numa.o.d -D_LARGEFILE_SOURCE -D_L ARGEFILE64_SOURCE -fno-optimize-sibling-calls -Werror -Wno-format-zero-length -Wmissing-declarations -Wno-declaration-after-statement -Wformat-nonliteral -I. -fPIC -pthread -I/mnt/xvda1/xen/tools/libxl/../../tools/libxc -I/mnt/xvda1/xen/tools/libxl/.. /../tools/include -I/mnt/xvda1/xen/tools/libxl/../../tools/libxc -I/mnt/xvda1/xen/tools/libxl/../../tools/include -I/mnt/xvda1/xen/tools/libxl/../../tools/xenstore -I/mnt/xvda1/xen/tools/libxl/../../tools/include -I/mnt/xvda1/xen/tools/libxl/../../tool s/blktap2/control -I/mnt/xvda1/xen/tools/libxl/../../tools/blktap2/include -I/mnt/xvda1/xen/tools/libxl/../../tools/include -Wshadow -include /mnt/xvda1/xen/tools/libxl/../../tools/config.h -c -o libxl_numa.o libxl_numa.c -mtune=generic -Os -pipe
libxl_numa.c: In function 'libxl__get_numa_candidate':
libxl_numa.c:287:5: error: 'comb_iter' may be used uninitialized in this function [-Werror=maybe-uninitialized]
cc1: all warnings being treated as errors
make[3]: *** [libxl_numa.o] Error 1
make[3]: Leaving directory `/mnt/xvda1/xen/tools/libxl'
make[2]: *** [subdir-install-libxl] Error 2
make[2]: Leaving directory `/mnt/xvda1/xen/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/mnt/xvda1/xen/tools'
make: *** [install-tools] Error 2

thank you so much
best regards
bobbi

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.