Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909815 - app-emulation/qemu: compilation failure with dev-libs/capstone-5.0_rc4
Summary: app-emulation/qemu: compilation failure with dev-libs/capstone-5.0_rc4
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-07-07 04:15 UTC by Matthias Maier
Modified: 2024-04-25 10:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2023-07-07 04:15:31 UTC
Looks like the API changed from capstone-5.0_rc3 to capstone-5.0_rc4:


FAILED: libqemu-tricore-softmmu.fa.p/disas.c.o                                                                                                                               x86_64-pc-linux-gnu-gcc -m64 -mcx16 -Ilibqemu-tricore-softmmu.fa.p -I. -I.. -Itarget/tricore -I../target/tricore -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/capstone -I/usr/include/spice-server -I/usr/include/spice-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/opus -I/usr/include/cacard -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gstreamer-1.0 -I/usr/lib64/libffi/include -I/usr/include/orc-0.4 -fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -O2 -isystem /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2/linux-headers -isystem linux-headers -iquote . -iquote /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2 -iquote /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2/include -iquote /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2/tcg/i386 -pthread -DSTAP_SDT_V2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -Wundef -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-
externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wmissing-format-attribute -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-prot
ector-strong -march=native -O2 -pipe -ggdb -fPIE -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="tricore-softmmu-config-target.h"' '-DCONFIG_DE
VICES="tricore-softmmu-config-devices.h"' -MD -MQ libqemu-tricore-softmmu.fa.p/disas.c.o -MF libqemu-tricore-softmmu.fa.p/disas.c.o.d -o libqemu-tricore-softmmu.fa.p/disas.c
.o -c ../disas.c                                                                                                                                                             
In file included from /usr/include/capstone/capstone.h:327,                                                                                                                  
                 from /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2/include/disas/capstone.h:6,                                                               
                 from ../disas.c:8:                                                                                                                                          
/usr/include/capstone/tricore.h:561:3: error: ‘tricore_feature’ redeclared as different kind of symbol                                                                       
  561 | } tricore_feature;                                                                                                                                                   
      |   ^~~~~~~~~~~~~~~                                                                                                                                                    
In file included from /var/tmp/portage/app-emulation/qemu-8.0.2-r2/work/qemu-8.0.2/include/disas/disas.h:7,                                                                  
                 from ../disas.c:7:                                                                                                                                          
../target/tricore/cpu.h:261:19: note: previous definition of ‘tricore_feature’ with type ‘int(CPUTriCoreState *, int)’ {aka ‘int(struct CPUArchState *, int)’}               
  261 | static inline int tricore_feature(CPUTriCoreState *env, int feature)                                                                                                 
      |                   ^~~~~~~~~~~~~~~
Comment 2 Michal Prívozník 2023-07-11 12:10:23 UTC
Interesting, I've installed dev-libs/capstone-5.0_rc4 and failed to reproduce. But I can backport the patch once merged (thanks Sam for digging it out!) - some cleanups were suggested to it.