All of lore.kernel.org
 help / color / mirror / Atom feed
* build Xen tool fail
@ 2016-01-28  6:39 Hao, Xudong
  2016-01-28  9:23 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Hao, Xudong @ 2016-01-28  6:39 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell

[-- Attachment #1: Type: text/plain, Size: 2706 bytes --]

Ian, 

A recent changes of tools evtchn cause a build failure with gcc 4.4.7, OS is RHEL6.5.

Bad commit:
commit b7f76a699dcfadc0a52ab45b33cc72dbf3a69e7b
Author: Ian Campbell <ian.campbell@citrix.com>
Date:   Mon Jun 1 16:20:09 2015 +0100

    tools: Refactor /dev/xen/evtchn wrappers into libxenevtchn.

    libxenevtchn will provide a stable API and ABI for accessing the
 evtchn device.


Partial error log:
...
gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .linux.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include  -fPIC -c -o linux.opic linux.c 
mv headers.chk.new headers.chk
In file included from private.h:5,
                 from core.c:19:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
In file included from private.h:5,
                 from core.c:19:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
make[6]: *** [core.opic] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [core.o] Error 1
In file included from private.h:5,
                 from linux.c:29:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
In file included from private.h:5,
                 from linux.c:29:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
make[6]: *** [linux.o] Error 1
make[6]: *** [linux.opic] Error 1
...

 
Best Regards,
Xudong


[-- Attachment #2: make_tools.log --]
[-- Type: application/octet-stream, Size: 20536 bytes --]

make -C tools install
make[1]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make[2]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make -C include install
make[3]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include'
make -C xen-foreign
mkdir -p xen/libelf
mkdir -p xen-xsm/flask
ln -sf /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/COPYING xen
cd /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/xsm/flask/ && \
		/bin/sh policy/mkflask.sh /usr/bin/awk /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-xsm/flask policy/initial_sids
ln -sf /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/arch-arm.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/arch-x86_32.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/arch-x86_64.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/callback.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/dom0_ops.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/domctl.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/elfnote.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/errno.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/event_channel.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/features.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/gcov.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/grant_table.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/kexec.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/memory.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/nmi.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/physdev.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/platform.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/pmu.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/sched.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/sysctl.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/tmem.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/trace.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/vcpu.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/version.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/vm_event.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/xencomm.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/xen-compat.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/xen.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/xenoprof.h xen
ln -sf /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/arch-x86 /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/arch-arm /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/hvm /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/io /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/public/xsm xen
ln -sf ../xen-sys/Linux xen/sys
ln -sf /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/xen/libelf.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../xen/include/xen/elfstructs.h xen/libelf/
ln -s ../xen-foreign xen/foreign
touch xen/.dir
touch xen-xsm/.dir
make[4]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign'
python mkheader.py arm32 arm32.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-arm.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/xen.h
python mkheader.py arm64 arm64.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-arm.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/xen.h
python mkheader.py x86_32 x86_32.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-x86/xen-x86_32.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-x86/xen.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/xen.h
python mkheader.py x86_64 x86_64.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-x86/xen-x86_64.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/arch-x86/xen.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign/../../../xen/include/public/xen.h
python mkchecker.py checker.c arm32 arm64 x86_32 x86_64
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -D__XEN_TOOLS__ -o checker checker.c
./checker > tmp.size
diff -u reference.size tmp.size
rm tmp.size
make[4]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/xen-foreign'
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-x86
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-x86/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-arm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-arm/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/foreign
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/io
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/sys
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/xsm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/COPYING /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/arch-x86/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-x86
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/arch-x86/hvm/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-x86/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/arch-arm/hvm/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/arch-arm/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/foreign/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/foreign
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/hvm/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/hvm
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/io/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/io
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/sys/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/sys
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include/../../tools/cross-install -m0644 -p xen/xsm/*.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include/xen/xsm
make[3]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/include'
make[2]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make[2]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make -C libs install
make[3]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make[4]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make -C toollog install
make[5]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog'
make libs
make[6]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog'
for i in include/xentoollog.h; do \
	    gcc -x c -ansi -Wall -Werror -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/include \
	          -S -o /dev/null $i || exit 1; \
	    echo $i; \
	done >headers.chk.new
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .xtl_core.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include  -c -o xtl_core.o xtl_core.c 
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .xtl_logger_stdio.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include  -c -o xtl_logger_stdio.o xtl_logger_stdio.c 
gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .xtl_core.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include  -fPIC -c -o xtl_core.opic xtl_core.c 
gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .xtl_logger_stdio.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include  -fPIC -c -o xtl_logger_stdio.opic xtl_logger_stdio.c 
mv headers.chk.new headers.chk
ar rc libxentoollog.a xtl_core.o xtl_logger_stdio.o
gcc    -Wl,-soname -Wl,libxentoollog.so.1 -shared -Wl,--version-script=libxentoollog.map -o libxentoollog.so.1.0 xtl_core.opic xtl_logger_stdio.opic 
ln -sf libxentoollog.so.1.0 libxentoollog.so.1
ln -sf libxentoollog.so.1 libxentoollog.so
make[6]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog'
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/lib
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/cross-install -d -m0755 -p /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/cross-install -m0755 -p libxentoollog.so.1.0 /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/lib
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/cross-install -m0644 -p libxentoollog.a /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/lib
ln -sf libxentoollog.so.1.0 /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/lib/libxentoollog.so.1
ln -sf libxentoollog.so.1 /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/lib/libxentoollog.so
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog/../../../tools/cross-install -m0644 -p include/xentoollog.h /home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/dist/install/usr/local/include
make[5]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/toollog'
make[4]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make[4]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make -C evtchn install
make[5]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn'
make libs
make[6]: Entering directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn'
for i in include/xenevtchn.h; do \
	    gcc -x c -ansi -Wall -Werror -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include \
	          -S -o /dev/null $i || exit 1; \
	    echo $i; \
	done >headers.chk.new
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .core.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include  -c -o core.o core.c 
gcc  -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .linux.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include  -c -o linux.o linux.c 
gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .core.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include  -fPIC -c -o core.opic core.c 
gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .linux.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -Werror -Wmissing-prototypes -I./include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/include  -fPIC -c -o linux.opic linux.c 
mv headers.chk.new headers.chk
In file included from private.h:5,
                 from core.c:19:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
In file included from private.h:5,
                 from core.c:19:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
make[6]: *** [core.opic] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: *** [core.o] Error 1
In file included from private.h:5,
                 from linux.c:29:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
In file included from private.h:5,
                 from linux.c:29:
./include/xenevtchn.h:36: error: redefinition of typedef ‘xentoollog_logger’
/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog.h:44: note: previous declaration of ‘xentoollog_logger’ was here
make[6]: *** [linux.o] Error 1
make[6]: *** [linux.opic] Error 1
make[6]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn'
make[5]: *** [build] Error 2
make[5]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs/evtchn'
make[4]: *** [subdir-install-evtchn] Error 2
make[4]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools/libs'
make[2]: *** [subdir-install-libs] Error 2
make[2]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/www/builds_xen_unstable/xen-src-2e46e3f2-20160127/tools'
make: *** [install-tools] Error 2

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build Xen tool fail
  2016-01-28  6:39 build Xen tool fail Hao, Xudong
@ 2016-01-28  9:23 ` Ian Campbell
  2016-01-29  0:28   ` Hao, Xudong
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2016-01-28  9:23 UTC (permalink / raw)
  To: Hao, Xudong, xen-devel

On Thu, 2016-01-28 at 06:39 +0000, Hao, Xudong wrote:
> Ian, 
> 
> A recent changes of tools evtchn cause a build failure with gcc 4.4.7, OS
> is RHEL6.5.

Thanks, this should already be fixed in staging. There was a series of
fixes, the last of which was 3b971de7f1cc595ae7ef03fb6f500295a8b82630.

Sorry for the inconvenience, only older gcc than I am using exposes this
issue.

Ian.

> 
> Bad commit:
> commit b7f76a699dcfadc0a52ab45b33cc72dbf3a69e7b
> Author: Ian Campbell <ian.campbell@citrix.com>
> Date:   Mon Jun 1 16:20:09 2015 +0100
> 
>     tools: Refactor /dev/xen/evtchn wrappers into libxenevtchn.
> 
>     libxenevtchn will provide a stable API and ABI for accessing the
> evtchn device.
> 
> 
> Partial error log:
> ...
> gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing
> -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-
> unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF .linux.opic.d
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fno-optimize-sibling-calls  -
> Werror -Wmissing-prototypes -I./include
> -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/include
> -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include
> -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/include  -fPIC -c -o linux.opic
> linux.c 
> mv headers.chk.new headers.chk
> In file included from private.h:5,
>                  from core.c:19:
> ./include/xenevtchn.h:36: error: redefinition of typedef
> ‘xentoollog_logger’
> /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog
> .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> In file included from private.h:5,
>                  from core.c:19:
> ./include/xenevtchn.h:36: error: redefinition of typedef
> ‘xentoollog_logger’
> /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog
> .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> make[6]: *** [core.opic] Error 1
> make[6]: *** Waiting for unfinished jobs....
> make[6]: *** [core.o] Error 1
> In file included from private.h:5,
>                  from linux.c:29:
> ./include/xenevtchn.h:36: error: redefinition of typedef
> ‘xentoollog_logger’
> /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog
> .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> In file included from private.h:5,
>                  from linux.c:29:
> ./include/xenevtchn.h:36: error: redefinition of typedef
> ‘xentoollog_logger’
> /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentoollog
> .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> make[6]: *** [linux.o] Error 1
> make[6]: *** [linux.opic] Error 1
> ...
> 
> 
> Best Regards,
> Xudong
> 

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: build Xen tool fail
  2016-01-28  9:23 ` Ian Campbell
@ 2016-01-29  0:28   ` Hao, Xudong
  0 siblings, 0 replies; 3+ messages in thread
From: Hao, Xudong @ 2016-01-29  0:28 UTC (permalink / raw)
  To: Ian Campbell, xen-devel

Thanks, I'll switch to staging and hope the fix will be merged to master soon.

Thanks,
-Xudong


> -----Original Message-----
> From: Ian Campbell [mailto:ian.campbell@citrix.com]
> Sent: Thursday, January 28, 2016 5:23 PM
> To: Hao, Xudong <xudong.hao@intel.com>; xen-devel@lists.xen.org
> Subject: Re: build Xen tool fail
> 
> On Thu, 2016-01-28 at 06:39 +0000, Hao, Xudong wrote:
> > Ian,
> >
> > A recent changes of tools evtchn cause a build failure with gcc 4.4.7,
> > OS is RHEL6.5.
> 
> Thanks, this should already be fixed in staging. There was a series of fixes, the
> last of which was 3b971de7f1cc595ae7ef03fb6f500295a8b82630.
> 
> Sorry for the inconvenience, only older gcc than I am using exposes this issue.
> 
> Ian.
> 
> >
> > Bad commit:
> > commit b7f76a699dcfadc0a52ab45b33cc72dbf3a69e7b
> > Author: Ian Campbell <ian.campbell@citrix.com>
> > Date:   Mon Jun 1 16:20:09 2015 +0100
> >
> >     tools: Refactor /dev/xen/evtchn wrappers into libxenevtchn.
> >
> >     libxenevtchn will provide a stable API and ABI for accessing the
> > evtchn device.
> >
> >
> > Partial error log:
> > ...
> > gcc  -DPIC -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing
> > -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement
> > -Wno- unused-but-set-variable   -O0 -g3 -D__XEN_TOOLS__ -MMD -MF
> > .linux.opic.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> > -fno-optimize-sibling-calls  - Werror -Wmissing-prototypes -I./include
> > -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/include
> > -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include
> > -I/home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/include  -fPIC -c -o
> > linux.opic linux.c mv headers.chk.new headers.chk In file included
> > from private.h:5,
> >                  from core.c:19:
> > ./include/xenevtchn.h:36: error: redefinition of typedef
> > ‘xentoollog_logger’
> > /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentool
> > log
> > .h:44: note: previous declaration of ‘xentoollog_logger’ was here In
> > file included from private.h:5,
> >                  from core.c:19:
> > ./include/xenevtchn.h:36: error: redefinition of typedef
> > ‘xentoollog_logger’
> > /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentool
> > log
> > .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> > make[6]: *** [core.opic] Error 1
> > make[6]: *** Waiting for unfinished jobs....
> > make[6]: *** [core.o] Error 1
> > In file included from private.h:5,
> >                  from linux.c:29:
> > ./include/xenevtchn.h:36: error: redefinition of typedef
> > ‘xentoollog_logger’
> > /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentool
> > log
> > .h:44: note: previous declaration of ‘xentoollog_logger’ was here In
> > file included from private.h:5,
> >                  from linux.c:29:
> > ./include/xenevtchn.h:36: error: redefinition of typedef
> > ‘xentoollog_logger’
> > /home/www/builds_xen_unstable/xen-src-2e46e3f2-
> > 20160127/tools/libs/evtchn/../../../tools/libs/toollog/include/xentool
> > log
> > .h:44: note: previous declaration of ‘xentoollog_logger’ was here
> > make[6]: *** [linux.o] Error 1
> > make[6]: *** [linux.opic] Error 1
> > ...
> >
> >
> > Best Regards,
> > Xudong
> >
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-29  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-28  6:39 build Xen tool fail Hao, Xudong
2016-01-28  9:23 ` Ian Campbell
2016-01-29  0:28   ` Hao, Xudong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.