[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] hw/core/loader-fit.c:105:41: error: expected expression
From: |
Programmingkid |
Subject: |
Re: [Qemu-devel] hw/core/loader-fit.c:105:41: error: expected expression |
Date: |
Wed, 26 Jul 2017 01:15:41 -0400 |
> On Jul 26, 2017, at 12:13 AM, Philippe Mathieu-Daudé <address@hidden> wrote:
>
> Hi John,
>
> On 07/25/2017 07:55 PM, Programmingkid wrote:
>> While compiling the mips64el-softmmu target I encountered these errors:
>> CC hw/display/g364fb.o
>> hw/core/loader-fit.c:105:41: error: expected expression
>> *addr = fdt32_to_cpu(*(fdt32_t *)prop);
>> ^
>> hw/core/loader-fit.c:105:32: error: use of undeclared identifier 'fdt32_t'
>
> It seems you are missing the libfdt headers, so indeed you found bug.
>
> Replacing CONFIG_FITLOADER by CONFIG_FDT in hw/core/Makefile.objs and
> default-configs/mips64el-softmmu.mak should fix it, can you try?
That appears to help make things move past the loader-fit.c file. Here are the
new errors:
CC hw/core/loader-fit.o
CC hw/dma/rc4030.o
CC hw/ide/via.o
hw/core/loader-fit.c:105:41: error: expected expression
*addr = fdt32_to_cpu(*(fdt32_t *)prop);
^
hw/core/loader-fit.c:105:32: error: use of undeclared identifier 'fdt32_t'
*addr = fdt32_to_cpu(*(fdt32_t *)prop);
^
hw/core/loader-fit.c:108:41: error: expected expression
*addr = fdt64_to_cpu(*(fdt64_t *)prop);
^
hw/core/loader-fit.c:108:32: error: use of undeclared identifier 'fdt64_t'
*addr = fdt64_to_cpu(*(fdt64_t *)prop);
^
hw/core/loader-fit.c:278:19: warning: implicit declaration of function
'fdt_first_subnode' is invalid in C99 [-Wimplicit-function-declaration]
off = fdt_first_subnode(itb, configs);
^
hw/core/loader-fit.c:286:23: warning: implicit declaration of function
'fdt_next_subnode' is invalid in C99 [-Wimplicit-function-declaration]
off = fdt_next_subnode(itb, off);
^
2 warnings and 4 errors generated.
make: *** [hw/core/loader-fit.o] Error 1
make: *** Waiting for unfinished jobs....
>
>> *addr = fdt32_to_cpu(*(fdt32_t *)prop);
>> ^
>> hw/core/loader-fit.c:108:41: error: expected expression
>> *addr = fdt64_to_cpu(*(fdt64_t *)prop);
>> ^
>> hw/core/loader-fit.c:108:32: error: use of undeclared identifier 'fdt64_t'
>> *addr = fdt64_to_cpu(*(fdt64_t *)prop);
>> ^
>> hw/core/loader-fit.c:278:19: warning: implicit declaration of function
>> 'fdt_first_subnode' is invalid in C99 [-Wimplicit-function-declaration]
>> off = fdt_first_subnode(itb, configs);
>> ^
>> hw/core/loader-fit.c:286:23: warning: implicit declaration of function
>> 'fdt_next_subnode' is invalid in C99 [-Wimplicit-function-declaration]
>> off = fdt_next_subnode(itb, off);
>> ^
>> 2 warnings and 4 errors generated.
>> make: *** [hw/core/loader-fit.o] Error 1
>> make: *** Waiting for unfinished jobs….
>
> It'd be useful if next time you also tell which compiler/version are you
> using.
gcc -v:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>
>> Steps to reproduce the error:
>> ./configure --target-list=mips64el-softmmu && make
>
> And also the ./configure output, I'm interested by:
>
> "fdt support no”
Actually it was "fdt support yes”.
>
> Regards,
>
> Phil.
Thanks for the help. Here is some more info that might help:
Here is the full configure output:
./configure --target-list=mips64el-softmmu
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
library directory /usr/local/lib
module directory /usr/local/lib/qemu
libexec directory /usr/local/libexec
include directory /usr/local/include
config directory /usr/local/etc
local state directory /usr/local/var
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /Users/john/Documents/Development/Projects/Qemu/qemu-git
C compiler cc
Host C compiler cc
C++ compiler c++
Objective-C compiler clang
ARFLAGS rv
CFLAGS -O2 -g
QEMU_CFLAGS -I/usr/local/Cellar/pixman/0.34.0/include/pixman-1
-I$(SRC_PATH)/dtc/libfdt -D_REENTRANT
-I/usr/local/Cellar/glib/2.46.2/include/glib-2.0
-I/usr/local/Cellar/glib/2.46.2/lib/glib-2.0/include
-I/usr/local/opt/gettext/include -DNCURSES_WIDECHAR -D_DARWIN_C_SOURCE
-I/opt/local/include -m64 -mcx16 -DOS_OBJECT_USE_OBJC=0 -arch x86_64
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
-Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes
-fno-strict-aliasing -fno-common -fwrapv -Wno-string-plus-int
-Wno-initializer-overrides -Wendif-labels -Wno-shift-negative-value
-Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security
-Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-definition
-Wtype-limits -fstack-protector-strong
-I/usr/local/Cellar/gnutls/3.4.11/include
-I/usr/local/Cellar/nettle/3.2/include -I/usr/local/Cellar/libtasn1/4.8/include
-I/opt/local/include -I/usr/local/Cellar/nettle/3.2/include
-I/usr/local/Cellar/libpng/1.6.29/include/libpng16
-I/usr/local/Cellar/libusb/1.0.20/include/libusb-1.0
-I/usr/local/Cellar/usbredir/0.7.1/include
LDFLAGS -m64 -framework CoreFoundation -framework IOKit -arch x86_64
-g
make make
install install
python python -B
smbd /usr/sbin/smbd
module support no
host CPU x86_64
host big endian no
target list mips64el-softmmu
gprof enabled no
sparse enabled no
strip binaries yes
profiler no
static build no
Cocoa support yes
pixman system
SDL support no
GTK support no
GTK GL support no
VTE support yes (0.39.92)
TLS priority NORMAL
GNUTLS support yes
GNUTLS rnd yes
libgcrypt no
libgcrypt kdf no
nettle yes (3.2)
nettle kdf yes
libtasn1 yes
curses support yes
virgl support no
curl support yes
mingw32 support no
Audio drivers coreaudio
Block whitelist (rw)
Block whitelist (ro)
VirtFS support no
VNC support yes
VNC SASL support yes
VNC JPEG support yes
VNC PNG support yes
xen support no
brlapi support no
bluez support no
Documentation yes
PIE no
vde support no
netmap support no
Linux AIO support no
ATTR/XATTR support no
Install blobs yes
KVM support no
HAX support yes
TCG support yes
TCG debug enabled no
TCG interpreter no
RDMA support no
fdt support yes
preadv support no
fdatasync no
madvise yes
posix_madvise yes
libcap-ng support no
vhost-net support no
vhost-scsi support no
vhost-vsock support no
Trace backends log
spice support no
rbd support no
xfsctl support no
smartcard support no
libusb yes
usb net redir yes
OpenGL support no
OpenGL dmabufs no
libiscsi support no
libnfs support no
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support no
coroutine backend sigaltstack
coroutine pool yes
debug stack usage no
crypto afalg no
GlusterFS support no
gcov gcov
gcov enabled no
TPM support yes
libssh2 support no
TPM passthrough no
QOM debugging yes
Live block migration yes
lzo support no
snappy support no
bzip2 support yes
NUMA host support no
tcmalloc support no
jemalloc support no
avx2 optimization no
replication support yes
VxHS block device no