xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Building xtf on older distros
@ 2017-09-28  1:43 Glenn Enright
  2017-09-28  8:45 ` Wei Liu
  2017-09-28 10:59 ` [PATCH XTF 1/4] build: Support BUILD_BUG_ON() with compilers lacking _Static_assert() Andrew Cooper
  0 siblings, 2 replies; 17+ messages in thread
From: Glenn Enright @ 2017-09-28  1:43 UTC (permalink / raw)
  To: xen-devel

Hi there

When building the xen testing framework on CentOS6, I see the below 
issue. I see similar issues with CentOS7 and other distros with older 
tool chains. The only one that built cleanly for me was Ubuntu 1604.

Some workarounds (disabling the -W options) let it get a bit further but 
I hit other issues.

Andrew separately mentioned this may be related to C99 initialisation, 
which sounds about right.

At the moment I'm doing a static build and moving the binaries where I 
need to run the tests, which is fine, but it would be nice to have a 
native c6 build working to match the rest of my existing test infra.

Not a C dev, but happy to test any/all things.

Not list subscribed so please include in CC.

Regards, Glenn
http://rimuhosting.com

...
gcc -pipe -I/root/gle/xtf/include -I/root/gle/xtf/arch/x86/include -MMD 
-MP  -Wall -Wextra -Werror -std=gnu99 -Wstrict-prototypes -O3 -g 
-fno-common -fno-asynchronous-unwind-tables -fno-strict-aliasing 
-fno-stack-protector -fno-pic -ffreestanding -mno-red-zone -mno-sse 
-Wno-unused-parameter -Winline -m64  -DCONFIG_ENV_pv64 -include 
arch/config.h -c /root/gle/xtf/arch/x86/setup.c -o 
/root/gle/xtf/arch/x86/setup-pv64.o
cc1: warnings being treated as errors
/root/gle/xtf/arch/x86/grant_table.c: In function ‘arch_map_gnttab’:
/root/gle/xtf/arch/x86/grant_table.c:19: error: implicit declaration of 
function ‘_Static_assert’
make[1]: *** [/root/gle/xtf/arch/x86/grant_table-pv64.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/gle/xtf/tests/cpuid'
make: *** [all] Error 2

# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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

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

end of thread, other threads:[~2017-10-01 21:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-28  1:43 Building xtf on older distros Glenn Enright
2017-09-28  8:45 ` Wei Liu
2017-09-28  8:51   ` Andrew Cooper
2017-09-28  8:53     ` Wei Liu
2017-09-28 10:59 ` [PATCH XTF 1/4] build: Support BUILD_BUG_ON() with compilers lacking _Static_assert() Andrew Cooper
2017-09-28 10:59   ` [PATCH XTF 2/4] build: Drop unnecessary register clobbers Andrew Cooper
2017-09-28 12:33     ` Jan Beulich
2017-09-28 10:59   ` [PATCH XTF 3/4] build: Opencode vmfunc as bytes Andrew Cooper
2017-09-28 12:34     ` Jan Beulich
2017-09-28 10:59   ` [PATCH XTF 4/4] build: Avoid using initialisers for anonymous unions Andrew Cooper
2017-09-28 12:37     ` Jan Beulich
2017-09-28 16:56       ` Andrew Cooper
2017-09-28 17:10         ` [PATCH XTF v2 " Andrew Cooper
2017-10-01 21:04           ` Glenn Enright
2017-09-28 12:32   ` [PATCH XTF 1/4] build: Support BUILD_BUG_ON() with compilers lacking _Static_assert() Jan Beulich
2017-09-28 12:34     ` Andrew Cooper
2017-09-28 12:50       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).