Skip to content

Qemu build fails on Ubuntu

I'm unable to build the application on Ubuntu server. I'm getting the following error. Any idea what the error means and what additional log files is required?

rc -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/SDL2 -I/usr/lo                                                                                                                                                             cal/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gio-                                                                                                                                                             unix-2.0/ -I/usr/include/alsa -fdiagnostics-color=auto -Wall -Winvalid-pch -Werr                                                                                                                                                             or -std=gnu11 -O2 -g -isystem /root/qemu/linux-headers -isystem linux-headers -i                                                                                                                                                             quote . -iquote /root/qemu -iquote /root/qemu/include -iquote /root/qemu/disas/l                                                                                                                                                             ibvixl -iquote /root/qemu/tcg/i386 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=                                                                                                                                                             2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -                                                                                                                                                             Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasi                                                                                                                                                             ng -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-lim                                                                                                                                                             its -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body                                                                                                                                                              -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2                                                                                                                                                              -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protecto                                                                                                                                                             r-strong -fPIE -D_REENTRANT -Wno-undef -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.                                                                                                                                                             fa.p/ui_console.c.o -MF libcommon.fa.p/ui_console.c.o.d -o libcommon.fa.p/ui_con                                                                                                                                                             sole.c.o -c ../ui/console.c
In file included from /usr/include/libpng12/png.h:321:0,
                 from ../ui/console.c:41:
/usr/include/libpng12/pngconf.h:383:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or                                                                                                                                                              ‘__attribute__’ before ‘.’ token
            __pngconf.h__ in libpng already includes setjmp.h;
                     ^
/usr/include/libpng12/pngconf.h:384:12: error: unknown type name ‘__dont__’; did                                                                                                                                                              you mean ‘__loff_t’?
            __dont__ include it again.;
            ^~~~~~~~
            __loff_t
/usr/include/libpng12/pngconf.h:384:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or                                                                                                                                                              ‘__attribute__’ before ‘it’
            __dont__ include it again.;
                             ^~
/usr/include/libpng12/pngconf.h:384:29: error: unknown type name ‘it’; did you m                                                                                                                                                             ean ‘int’?
            __dont__ include it again.;
                             ^~
                             int
ninja: build stopped: subcommand failed.
Makefile:162: recipe for target 'run-ninja' failed
make: *** [run-ninja] Error 1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information