|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Xen build error based on gcc version
On Thu, Nov 27, 2008 at 7:38 AM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
> On 26/11/08 21:15, "Todd Deshane" <deshantm@xxxxxxxxx> wrote:
>
>> If I switch the compiler to 3.4 or 4.2 it compiles fine.
>>
>> It is a gcc problem or a problem with the Xen code?
>
> Looks like it's a problem with Ubuntu asserting _FORTIFY_SOURCE=2 in some
> cases. At least this build failure is easy to fix, so I will check in a
> patch.
>
I just pulled the latest xen-unstable today.
The 4.3 compiler still give errors during build.
Falling back to 4.2 is fine.
Here is the tail of the error log on the 4.3 compiler.
[this is the default gcc compiler on Ubuntu 8.10]
(I tried a make tools)
Make[5]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/libxenstat'
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -Isrc -I../../../tools/libxc
-I../../../tools/xenstore -I../../../tools/include -Wall -Werror -c -o
src/xenstat.o src/xenstat.c
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -Isrc -I../../../tools/libxc
-I../../../tools/xenstore -I../../../tools/include -Wall -Werror -c -o
src/xenstat_linux.o src/xenstat_linux.c
ar rc src/libxenstat.a src/xenstat.o src/xenstat_linux.o
../../../tools/xenstore/libxenstore.so
../../../tools/libxc/libxenctrl.so
ranlib src/libxenstat.a
make[5]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/libxenstat'
make[4]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[4]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make -C xentop install
make[5]: Entering directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/xentop'
gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99
-Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DGCC_PRINTF -Wall -Werror
-I../../../tools/xenstat/libxenstat/src -DHOST_Linux
-L../../../tools/xenstat/libxenstat/src xentop.c -lxenstat -lncurses
-o xentop
cc1: warnings being treated as errors
xentop.c: In function 'fail':
xentop.c:257: error: format not a string literal and no format arguments
make[5]: *** [xentop] Error 1
make[5]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat/xentop'
make[4]: *** [subdir-install-xentop] Error 2
make[4]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[3]: *** [subdirs-install] Error 2
make[3]: Leaving directory
`/home/deshantm/src/xen-src/xen-unstable.hg/tools/xenstat'
make[2]: *** [subdir-install-xenstat] Error 2
make[2]: Leaving directory `/home/deshantm/src/xen-src/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/deshantm/src/xen-src/xen-unstable.hg/tools'
make: *** [install-tools] Error 2
--
Todd Deshane
http://todddeshane.net
http://runningxen.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Xen build error based on gcc version,
Todd Deshane <=
|
|
|
|
|