liballocs
liballocs copied to clipboard
Make failure
I have encountered the following error :
make -j4 g++ -DHAVE_CONFIG_H -I. -I./include -DLT_CONFIG_H='<config.h>' -DLTDL -I. -I. -Ilibltdl -I./libltdl -Ilibltdl/libltdl -I./libltdl/libltdl -I/usr/local/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/ -O2 -fno-omit-frame-pointer -ggdb -fkeep-inline-functions -Wall -Wno-deprecated-declarations -fPIC -Wp,-w -Iinclude -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libsrk31c++/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libc++fileno/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libcxxgen/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c++/include -I/home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/include -I/include -I/home/njego/liballocs/contrib/liballocstool/include -I/home/njego/liballocs/contrib/libsystrap -I/home/njego/liballocs/contrib/libsystrap/contrib/librunt/include -I/usr/local/include -MT tools/pervasive_types-pervasive-types.o -MD -MP -MF tools/.deps/pervasive_types-pervasive-types.Tpo -c -o tools/pervasive_types-pervasive-types.o test -f 'tools/pervasive-types.cpp' || echo './'tools/pervasive-types.cpp In file included from /home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/include/dwarfpp/lib.hpp:35, from tools/pervasive-types.cpp:19: /home/njego/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/include/dwarfpp/spec.hpp:48:34: fatal error: dwarf-onlystd.h: No such file or directory 48 | #include "dwarf-onlystd.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:1570: tools/pervasive_types-pervasive-types.o] Error 1
Hi. Have you built the submodules? This is the make -C contrib part of the build instructions. Please show me the entire build process you have tried to follow from checkout onwards.
The header that is missing is built as part of libdwarfpp, which is some way down in the submodule tree: it is a submodule of the dwarfidl submodule of the liballocstool submodule. Please check that these are all being built first.
Here is the build up.
sudo apt-get install libelf-dev libdw-dev binutils-dev autoconf automake libtool pkg-config autoconf-archive g++ ocaml ocamlbuild ocaml-findlib default-jre-headless python3 python2 make git gawk gdb wget libunwind-dev libc6-dev-i386 zlib1g-dev libc6-dbg libboost-{iostreams,regex,serialization,filesystem}-dev && git clone https://github.com/stephenrkell/liballocs.git && cd liballocs && git submodule update --init --recursive Reading package lists... Done Building dependency tree... Done Reading state information... Done autoconf is already the newest version (2.71-2). automake is already the newest version (1:1.16.5-1.3). default-jre-headless is already the newest version (2:1.11-72build2). g++ is already the newest version (4:11.2.0-1ubuntu1). gawk is already the newest version (1:5.1.0-1build3). libboost-filesystem-dev is already the newest version (1.74.0.3ubuntu7). libboost-regex-dev is already the newest version (1.74.0.3ubuntu7). libdw-dev is already the newest version (0.186-1build1). libelf-dev is already the newest version (0.186-1build1). libtool is already the newest version (2.4.6-15build2). libunwind-dev is already the newest version (1.3.2-2build2). make is already the newest version (4.3-4.1build1). pkg-config is already the newest version (0.29.2-1ubuntu3). wget is already the newest version (1.21.2-2ubuntu1). autoconf-archive is already the newest version (20210219-2.1). libboost-iostreams-dev is already the newest version (1.74.0.3ubuntu7). libboost-serialization-dev is already the newest version (1.74.0.3ubuntu7). ocaml is already the newest version (4.13.1-3ubuntu1). ocaml-findlib is already the newest version (1.9.1-1build2). ocamlbuild is already the newest version (0.14.1-1). python2 is already the newest version (2.7.18-3). binutils-dev is already the newest version (2.38-4ubuntu2). gdb is already the newest version (12.1-0ubuntu1~22.04). git is already the newest version (1:2.34.1-1ubuntu1.5). libc6-dbg is already the newest version (2.35-0ubuntu3.1). libc6-dev-i386 is already the newest version (2.35-0ubuntu3.1). python3 is already the newest version (3.10.6-1~22.04). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9.2). 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. Cloning into 'liballocs'... remote: Enumerating objects: 9232, done. remote: Counting objects: 100% (1262/1262), done. remote: Compressing objects: 100% (461/461), done. remote: Total 9232 (delta 812), reused 1197 (delta 762), pack-reused 7970 Receiving objects: 100% (9232/9232), 4.60 MiB | 92.00 KiB/s, done. Resolving deltas: 100% (5558/5558), done. Submodule 'contrib/cil' (https://github.com/stephenrkell/cil.git) registered for path 'contrib/cil' Submodule 'contrib/donald' (https://github.com/stephenrkell/donald.git) registered for path 'contrib/donald' Submodule 'contrib/elftin' (https://github.com/stephenrkell/elftin.git) registered for path 'contrib/elftin' Submodule 'contrib/liballocstool' (https://github.com/stephenrkell/liballocstool.git) registered for path 'contrib/liballocstool' Submodule 'contrib/libdlbind' (https://github.com/stephenrkell/libdlbind.git) registered for path 'contrib/libdlbind' Submodule 'contrib/libmallochooks' (https://github.com/stephenrkell/libmallochooks) registered for path 'contrib/libmallochooks' Submodule 'contrib/libsystrap' (https://github.com/stephenrkell/libsystrap.git) registered for path 'contrib/libsystrap' Submodule 'contrib/toolsub' (https://github.com/stephenrkell/toolsub.git) registered for path 'contrib/toolsub' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/cil'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/donald'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/elftin'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libmallochooks'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/toolsub'... Submodule path 'contrib/cil': checked out '01e71e5f174adf6e0dc14a732c041a1d7906d354' Submodule path 'contrib/donald': checked out '1993dd46c4eb8cf736316ac61963b496ee4423a1' Submodule path 'contrib/elftin': checked out '8c4cb67cda2e005a0cfaf870bce9e92f33dcc347' Submodule path 'contrib/liballocstool': checked out 'ce0a897c5098672f6025cdb489652ba27ca6fb80' Submodule 'contrib/dwarfidl' (https://github.com/stephenrkell/dwarfidl.git) registered for path 'contrib/liballocstool/contrib/dwarfidl' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl'... Submodule path 'contrib/liballocstool/contrib/dwarfidl': checked out 'ab723ee7834e10cf21267902410473ea068038fc' Submodule 'contrib/antlr3' (https://github.com/antlr/antlr3) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/antlr3' Submodule 'contrib/libantlr3c++' (https://github.com/stephenrkell/libantlr3cxx.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c++' Submodule 'contrib/libcxxgen' (https://github.com/stephenrkell/libcxxgen.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libcxxgen' Submodule 'contrib/libdwarfpp' (https://github.com/stephenrkell/libdwarfpp.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp' Submodule 'contrib/m4ntlr' (https://github.com/stephenrkell/m4ntlr.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/m4ntlr' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/antlr3'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c++'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libcxxgen'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/m4ntlr'... Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/antlr3': checked out 'fb4eb0e43212f4a7e841f4117b88c4b674b87698' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c++': checked out '4accf085ceb3cc932904300573596cdb98a9b5c7' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libcxxgen': checked out '9dd1af9d20cff79d2be7b992c0f5a85b1a03cc7d' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp': checked out '50ee488db4f497376c21c07b7c43500e44f55354' Submodule 'contrib/libc++fileno' (https://github.com/stephenrkell/libcxxfileno.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libc++fileno' Submodule 'contrib/libdwarf' (https://github.com/stephenrkell/libdwarf.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libdwarf' Submodule 'contrib/libsrk31c++' (https://github.com/stephenrkell/libsrk31cxx.git) registered for path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libsrk31c++' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libc++fileno'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libdwarf'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libsrk31c++'... Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libc++fileno': checked out 'ca4b2a0574084b488a91db214a5720d5f5c75e91' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libdwarf': checked out '5c15be2c30fb622b38c7aaef937210775f033ed0' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/libdwarfpp/contrib/libsrk31c++': checked out '485fc48c6e4ce740173b4be7e19518b0a09aed7b' Submodule path 'contrib/liballocstool/contrib/dwarfidl/contrib/m4ntlr': checked out '9683337933900a331ae5a4e5944993ed1db7fe94' Submodule path 'contrib/libdlbind': checked out 'f72e53249539dadff2a226a9e2743841209065e8' Submodule 'example/libsystrap' (https://github.com/stephenrkell/libsystrap.git) registered for path 'contrib/libdlbind/example/libsystrap' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap'... Submodule path 'contrib/libdlbind/example/libsystrap': checked out '79a1748975f4b8683bcd3d689553dad04027bfc6' Submodule 'contrib/donald' (https://github.com/stephenrkell/donald) registered for path 'contrib/libdlbind/example/libsystrap/contrib/donald' Submodule 'contrib/librunt' (https://github.com/stephenrkell/librunt.git) registered for path 'contrib/libdlbind/example/libsystrap/contrib/librunt' Submodule 'contrib/libx86emulate' (https://github.com/stephenrkell/libx86emulate.git) registered for path 'contrib/libdlbind/example/libsystrap/contrib/libx86emulate' Submodule 'contrib/mbuild' (https://github.com/intelxed/mbuild.git) registered for path 'contrib/libdlbind/example/libsystrap/contrib/mbuild' Submodule 'contrib/musl' (git://git.musl-libc.org/musl) registered for path 'contrib/libdlbind/example/libsystrap/contrib/musl' Submodule 'contrib/xed' (https://github.com/intelxed/xed.git) registered for path 'contrib/libdlbind/example/libsystrap/contrib/xed' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/donald'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/librunt'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/libx86emulate'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/mbuild'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/musl'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/example/libsystrap/contrib/xed'... Submodule path 'contrib/libdlbind/example/libsystrap/contrib/donald': checked out '1993dd46c4eb8cf736316ac61963b496ee4423a1' Submodule path 'contrib/libdlbind/example/libsystrap/contrib/librunt': checked out '95b3698000babf95ee55aba47f01b56fe6f9786d' Submodule path 'contrib/libdlbind/example/libsystrap/contrib/libx86emulate': checked out '024c069097a901e2dca81b832deca96adf596f61' Submodule path 'contrib/libdlbind/example/libsystrap/contrib/mbuild': checked out '176544e1fb54b6bfb40f596111368981d287e951' Submodule path 'contrib/libdlbind/example/libsystrap/contrib/musl': checked out 'a662220df547e5c2446518e74440a7d834f9ebe6' Submodule path 'contrib/libdlbind/example/libsystrap/contrib/xed': checked out 'b7231de4c808db821d64f4018d15412640c34113' Submodule path 'contrib/libmallochooks': checked out '7475dfcbd6228c68f426c2621cc68783aab951ab' Submodule path 'contrib/libsystrap': checked out 'a64a14ca435da9aa59c6bbde46e9ea924f3ad40f' Submodule 'contrib/donald' (https://github.com/stephenrkell/donald) registered for path 'contrib/libsystrap/contrib/donald' Submodule 'contrib/librunt' (https://github.com/stephenrkell/librunt.git) registered for path 'contrib/libsystrap/contrib/librunt' Submodule 'contrib/libx86emulate' (https://github.com/stephenrkell/libx86emulate.git) registered for path 'contrib/libsystrap/contrib/libx86emulate' Submodule 'contrib/mbuild' (https://github.com/intelxed/mbuild.git) registered for path 'contrib/libsystrap/contrib/mbuild' Submodule 'contrib/musl' (git://git.musl-libc.org/musl) registered for path 'contrib/libsystrap/contrib/musl' Submodule 'contrib/xed' (https://github.com/intelxed/xed.git) registered for path 'contrib/libsystrap/contrib/xed' Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/donald'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/mbuild'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl'... Cloning into '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/xed'... Submodule path 'contrib/libsystrap/contrib/donald': checked out '1993dd46c4eb8cf736316ac61963b496ee4423a1' Submodule path 'contrib/libsystrap/contrib/librunt': checked out '2410f602b14a684ac67bb3efccec75ddf4cbbf6f' Submodule path 'contrib/libsystrap/contrib/libx86emulate': checked out '024c069097a901e2dca81b832deca96adf596f61' Submodule path 'contrib/libsystrap/contrib/mbuild': checked out '176544e1fb54b6bfb40f596111368981d287e951' Submodule path 'contrib/libsystrap/contrib/musl': checked out 'a662220df547e5c2446518e74440a7d834f9ebe6' Submodule path 'contrib/libsystrap/contrib/xed': checked out 'b7231de4c808db821d64f4018d15412640c34113' Submodule path 'contrib/toolsub': checked out 'e48aa60c605b8f79071f166d50f74970a7929968'
make -C contrib -j4 make: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib' Makefile:158: warning: overriding recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/env.sh' Makefile:45: warning: ignoring old recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/env.sh' Makefile:158: warning: overriding recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/env.sh' Makefile:56: warning: ignoring old recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/env.sh' (printf '%%/config.mk:\n\t$(MAKE) -C $* config.mk\n\n'; \ printf "\ninclude /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/config.mk \ninclude /home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/config.mk"; \ printf '\nLIBRUNT_DIR := /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt\n \nLIBSYSTRAP_DIR := /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap\n \nLIBALLOCSTOOL_CXXFLAGS := -I/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/include \nLIBALLOCSTOOL_LIBS := -L/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/lib -lallocstool \nLIBDLBIND ?= /home/njego/Downloads/liballocs/liballocs/contrib/libdlbind\n \nCIL_INSTALL ?= /home/njego/Downloads/liballocs/liballocs/contrib/cil/lib\n \nTOOLSUB ?= /home/njego/Downloads/liballocs/liballocs/contrib/toolsub\n \nELFTIN ?= /home/njego/Downloads/liballocs/liballocs/contrib/elftin\n \nLIBMALLOCHOOKS := /home/njego/Downloads/liballocs/liballocs/contrib/libmallochooks\n \nDONALD := /home/njego/Downloads/liballocs/liballocs/contrib/donald\n'; echo) > "config.mk" || (rm -f "config.mk"; false) Makefile:158: warning: overriding recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/env.sh' Makefile:45: warning: ignoring old recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/env.sh' Makefile:158: warning: overriding recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/env.sh' Makefile:56: warning: ignoring old recipe for target '/home/njego/Downloads/liballocs/liballocs/contrib/liballocstool/contrib/env.sh' make -C /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib env.sh make -C libsystrap src lib cd liballocstool && ./autogen.sh make[1]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib' CFLAGS="-I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include" make -C libdlbind make[1]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap' make -C src (printf ""; \ printf '\nexport LIBC_A="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/lib/libc.a" \nexport LIBC_CFLAGS="-I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes " \nexport XED_DIR="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/xed/build" \nexport XED_A="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/xed/build/lib/libxed.a" \nexport LIBRUNT_CFLAGS="-I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include" \nexport LIBRUNT_LDFLAGS="-L/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/lib -Wl,-rpath,/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/lib " \nexport LIBRUNT_DIR="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt" \nexport LIBX86EMULATE_DIR="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate" \nexport DONALD="/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/donald"'; echo )>"env.sh" || (rm -f "env.sh"; false) make[2]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src' make[1]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind' make -C src cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 vdso.c > ".vdso.d" || rm -f ".vdso.d" make[1]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib' cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 trap.c > ".trap.d" || rm -f ".trap.d" make[2]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/src' cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -MM "symhash.c" > ".symhash.d" || rm -f ".symhash.d" cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 sigill.c > ".sigill.d" || rm -f ".sigill.d" cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -MM "libdlbind.c" > ".libdlbind.d" || rm -f ".libdlbind.d" cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -MM "elfproto.c" > ".elfproto.d" || rm -f ".elfproto.d" cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 restorer.c > ".restorer.d" || rm -f ".restorer.d" cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 raw-syscalls.c > ".raw-syscalls.d" || rm -f ".raw-syscalls.d" cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 instr.c > ".instr.d" || rm -f ".instr.d" cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -o libdlbind.o libdlbind.c cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -o symhash.o symhash.c cc -MM -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 do-syscall.c > ".do-syscall.d" || rm -f ".do-syscall.d" cc -DIN_LIBRUNT_DSO -DASSERT_FAIL_LINE_SIGNED -DSYSTRAP_DEFINE_FILE -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include -g -Wall -Wno-unused-label -Wno-comment -O2 -fPIC -ffreestanding -fno-omit-frame-pointer -DUSE_XED -DNDEBUG -nostdinc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/x86_64 -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/arch/generic -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/obj/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/host-includes -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/libx86emulate/src -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c99 -c -o do-syscall.o do-syscall.c In file included from /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src/../include/raw-syscalls-impl.h:74, from do-syscall.h:4, from do-syscall.c:6: /home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/musl/include/sys/types.h:57:10: fatal error: bits/alltypes.h: No such file or directory 57 | #include <bits/alltypes.h> | ^~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [<builtin>: do-syscall.o] Error 1 make[2]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/src' make[1]: *** [Makefile:20: src] Error 2 make[1]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap' make: *** [Makefile:42: build-libsystrap] Error 2 make: *** Waiting for unfinished jobs.... cc -I/home/njego/Downloads/liballocs/liballocs/contrib/libsystrap/contrib/librunt/include -std=c11 -g -fPIC -Wextra -I/include -I../include -DNDEBUG -DFAKE_RELOAD -c -o elfproto.o elfproto.c ar r "libdlbind.a" libdlbind.o symhash.o elfproto.o ar: creating libdlbind.a make[2]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/src' make -C lib make[2]: Entering directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/lib' ln -sf ../src/libdlbind.a . make[2]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind/lib' make[1]: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib/libdlbind' aclocal: warning: couldn't open directory 'm4': No such file or directory configure.ac:22: warning: The macro AC_PROG_CC_C99' is obsolete.
configure.ac:22: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:22: the top level
configure.ac:57: warning: The macro AC_HAVE_LIBRARY' is obsolete. configure.ac:57: You should run autoupdate. ./lib/autoconf/libs.m4:138: AC_HAVE_LIBRARY is expanded from... configure.ac:57: the top level libtoolize: putting auxiliary files in '.'. libtoolize: linking file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: linking file 'm4/libtool.m4' libtoolize: linking file 'm4/ltoptions.m4' libtoolize: linking file 'm4/ltsugar.m4' libtoolize: linking file 'm4/ltversion.m4' libtoolize: linking file 'm4/lt~obsolete.m4' configure.ac:17: installing './compile' configure.ac:17: installing './config.guess' configure.ac:17: installing './config.sub' configure.ac:18: installing './install-sh' configure.ac:18: installing './missing' Makefile.am: installing './depcomp' make: Leaving directory '/home/njego/Downloads/liballocs/liballocs/contrib'
There is another header file missing <bits/alltypes.h>
Hi, I have rebuilt again and the build up is here https://github.com/stephenrkell/liballocs/issues/70 There is another header file being reported missing, that is <bits/alltypes.h> which i think is supposed to part of the musl submodule.
Thanks
[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 11/12/22, 09:39:06 PM
On Sat, Nov 12, 2022 at 3:26 PM Stephen Kell @.***> wrote:
Hi. Have you built the submodules? This is the make -C contrib part of the build instructions. Please show me the entire build process you have tried to follow from checkout onwards.
The header that is missing is built as part of libdwarfpp, which is some way down in the submodule tree: it is a submodule of the dwarfidl submodule of the liballocstool submodule. Please check that these are all being built first.
— Reply to this email directly, view it on GitHub https://github.com/stephenrkell/liballocs/issues/70#issuecomment-1312468169, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATIUMBU65UASE7TJVZS6LOTWH6EH7ANCNFSM6AAAAAAR5WCFIA . You are receiving this because you authored the thread.Message ID: @.***>
-- Njego.
“There are only two ways to live your life: as though nothing is a miracle or as though everything is a miracle.”
- Albert Einstein.
It would be great if you could use the markdown multi-line quoting features, as it's hard to read the transcripts above.
In musl, bits/alltypes.h is a generated header, so either something has gone wrong in the build of musl, or the libsystrap/contrib/config.mk file is not pointing at it. If you could post the contents of the latter file, that would help. It should have a LIBC_FLAGS line that includes the musl/obj/include directory.
Note that in each contrib/ directory, config.mk and env.sh are built files which capture which paths get fed into the enclosing build's CFLAGS and the like. It looks like that has gone wrong here. Some workflows recovering from failed or partial builds may require you to delete these two files so that they get remade properly. So you could try that.
Here is the Buildup. https://gist.github.com/Njego-Richard/7178b8d4d09066ab1fa4cabe47ae5651
Quite a late answer, but I ran into several of these issues, including the missing headers bits/alltypes.h and xed/xed-interface.h. The fixes for these were straightforward, but I remember the causes being a bit obtuse - using the wrong gcc, OCaml or python version, mostly.
My build is almost fully functional but not quite. Happy to share what worked for me when that's done.