Skip to content

Multiple build errors on current keystone master branch; most notably host-gcc-initial  #477

@donbmouse

Description

@donbmouse

Unable to build host-gcc-initial due to a gcc compatibility issue. Using Ubuntu Plucky for ARM (hosted on a Mac). The apt based gcc seems to be gcc-14.2.0. Unsure how to fix this bug. There seems to be multiple build issues with the "master" branch of Keystone on Ubuntu Plucky. The cross compiler (riscv64) is also gcc-14.2.0.

Thanks for any thoughts on how to get past this (and build the entire keystone on master).

--- OUTPUT OF BUILD.LOG ---

make[1]: Entering directory '/home/donb/lib/src/keystone/buildroot'
/usr/bin/make -j1 O=/home/donb/lib/src/keystone/build-generic64/buildroot.build HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
GEN /home/donb/lib/src/keystone/build-generic64/buildroot.build/Makefile
/home/donb/lib/src/keystone/build-generic64/buildroot.build/.config:3486:warning: override: reassigning to symbol BR2_ROOTFS_OVERLAY
/home/donb/lib/src/keystone/build-generic64/buildroot.build/.config:3487:warning: override: reassigning to symbol BR2_CCACHE_DIR

configuration written to /home/donb/lib/src/keystone/build-generic64/buildroot.build/.config

^[[7m>>> host-gcc-initial 11.4.0 Building^[[27m
PATH="/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/bin:/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" PKG_CONFIG="/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/lib/pkgconfig:/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/share/pkgconfig" /usr/bin/make gcc_cv_libc_provides_ssp=yes all-gcc all-target-libgcc -C /home/donb/lib/src/keystone/build-generic64/buildroot.build/build/host-gcc-initial-11.4.0/build
if [ x"-fPIC" != x ]; then
/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/bin/ccache /usr/bin/gcc -c -DHAVE_CONFIG_H -O2 -I/home/donb/lib/src/keystone/build-generic64/buildroot.build/per-package/host-gcc-initial/host/include -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fPIC ../../libiberty/simple-object-mach-o.c -o pic/simple-object-mach-o.o;
else true; fi
../../libiberty/simple-object-mach-o.c: In function \u2018simple_object_mach_o_write_segment\u2019:
../../libiberty/simple-object-mach-o.c:1231:17: error: passing argument 1 of \u2018set_32\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
1231 | set_32 (&index[i], index[i]);
| ^~~~~~~~~
| |
| unsigned int *
../../libiberty/simple-object-mach-o.c:1231:17: note: expected \u2018unsigned char *\u2019 but argument is of type \u2018unsigned int *\u2019
make[4]: *** [Makefile:1306: simple-object-mach-o.o] Error 1
make[3]: *** [Makefile:8446: all-libiberty] Error 2
make[2]: *** [package/pkg-generic.mk:293: /home/donb/lib/src/keystone/build-generic64/buildroot.build/build/host-gcc-initial-11.4.0/.stamp_built] Error 2
make[1]: *** [Makefile:82: _all] Error 2
make[1]: Leaving directory '/home/donb/lib/src/keystone/buildroot'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions