Hi guys,
I recently upgraded to Debian 12 as I needed the latest version of GRPC for my linuxcnc project.
I’ve made the update by changing the repositories all my previous setup remained in place.
I tried again to recompile OpenCN, so I pulled the latest master and tried to run the commands described here: 8. User guide — OpenCN 2021.2.0 documentation
I have pasted into a file the messages that I get in the console.
➜ opencn git:(master) ✗ sudo apt install bc bison bridge-utils ca-certificates capnproto cpio \
cmake device-tree-compiler default-jdk dosfstools dvipng elfutils fakeroot file flex \
gcc git graphviz g++ latexmk lib32z1-dev libc6:i386 libcapnp-dev libcapstone3 libepoxy0 \
libgbm1 libgtk2.0-dev libjpeg62 libssl-dev libstdc++6:i386 libusb-1.0-0 make nano \
openssh-server patch pkg-config python3 python3-pip python3-crypto python3-pyelftools \
rsync sudo tex-gyre texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended \
wget unzip u-boot-tools xz-utils zlib1g:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libjpeg62-turbo' instead of 'liabjpeg62'
Package python3-crypto is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package libcapstone3
E: Package 'python3-crypto' has no installation candidate
➜ opencn git:(master) ✗
Not found: libcapstone3, python3-crypto
➜ / cd ~/Work/opencn/agency
➜ agency git:(master) ✗ ./build.sh -t x86
➜ agency git:(master) ✗ ./build.sh -a
read target from the file
-- [ Build Linux kernel ] ----------------------------------
LINUX_CONF=x86_defconfig
---------------------------------------------[ BUILDING linux ]---
make -C linux x86_defconfig || exit -1
make[1]: Entering directory '/home/vasimihalca/Work/opencn/agency/linux'
#
# No change to .config
#
make[1]: Leaving directory '/home/vasimihalca/Work/opencn/agency/linux'
make -C linux -rR --no-print-directory bzImage -j$(nproc) || exit -1
DESCEND objtool
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CC /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/help.o
CC /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/sigchain.o
In file included from sigchain.c:3:
In function ‘xrealloc’,
inlined from ‘sigchain_push.isra’ at sigchain.c:26:2:
subcmd-util.h:56:23: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
56 | ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:58:31: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
58 | ret = realloc(ptr, 1);
| ^~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
In function ‘xrealloc’,
inlined from ‘sigchain_push’ at sigchain.c:26:2,
inlined from ‘sigchain_push_common’ at sigchain.c:53:2:
subcmd-util.h:56:23: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
56 | ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:58:31: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
58 | ret = realloc(ptr, 1);
| ^~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/home/vasimihalca/Work/opencn/agency/linux/tools/objtool/.sigchain.o.tmp': No such file or directory
make[5]: *** [/home/vasimihalca/Work/opencn/agency/linux/tools/build/Makefile.build:96: /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/sigchain.o] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from help.c:12:
In function ‘xrealloc’,
inlined from ‘add_cmdname’ at help.c:24:2:
subcmd-util.h:56:23: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
56 | ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
subcmd-util.h:58:31: error: pointer may be used after ‘realloc’ [-Werror=use-after-free]
58 | ret = realloc(ptr, 1);
| ^~~~~~~~~~~~~~~
subcmd-util.h:52:21: note: call to ‘realloc’ here
52 | void *ret = realloc(ptr, size);
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/home/vasimihalca/Work/opencn/agency/linux/tools/objtool/.help.o.tmp': No such file or directory
make[5]: *** [/home/vasimihalca/Work/opencn/agency/linux/tools/build/Makefile.build:96: /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/help.o] Error 1
make[4]: *** [Makefile:58: /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/libsubcmd-in.o] Error 2
make[3]: *** [Makefile:54: /home/vasimihalca/Work/opencn/agency/linux/tools/objtool/libsubcmd.a] Error 2
make[2]: *** [Makefile:67: objtool] Error 2
make[1]: *** [Makefile:1850: tools/objtool] Error 2
make: *** [Makefile:73: agency_x86_domain] Error 255
[ERROR] kernel compilation failed !!
➜ agency git:(master) ✗
Please provide any hints on what to do next to unblock myself.
Thanks,
Vasi Mihalca