You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating a tools package inside an Alpine riscv64 environment I've hit the following issues that increased packaging complexity, which we could simplify:
make should just compile all tools (without Docker!)
compile libcmt
compile sys-utils
compile rollup-http tools
compiling sys-utils should not require installing libcmt-dev first, if it's already built in the working tree
make install should exist and install everything
make install-tools (all bins)
make install-libcmt (*.so)
make install-libcmt-dev (*.h, *.a and pkgconfig)
there is the need to set TOOLCHAIN_PREFIX= for all make commands even when in riscv64 environment, this should be removed
DESTDIR is not working, probably rename TARGET_DESTDIR to it
make install should never strip by default, stripping binaries is a task done by packager builder, so the packager can create debug symbols packages from it
add ways to pass extra CFLAGS, CXXFLAGS and LDFLAGS. In this case I may want to package statically linked to libgcc, so my package can have less dependencies leading to smaller rootfs image.
The text was updated successfully, but these errors were encountered:
libcmt supports cross compilation, the issue is that it requires custom linux headers, ones with CMIO available.
They would have to be made available for this to work.
They would have to be made available for this to work.
I'm starting to generate the package cartesi-machine-guest-linux-headers which installs /usr/include/linux in a riscv64 environment. Then to build cartesi-machine-guest-tools, its makedepends will include cartesi-machine-guest-linux-headers.
While creating a tools package inside an Alpine
riscv64
environment I've hit the following issues that increased packaging complexity, which we could simplify:make
should just compile all tools (without Docker!)sys-utils
should not require installinglibcmt-dev
first, if it's already built in the working treemake install
should exist and install everythingmake install-tools
(all bins)make install-libcmt
(*.so)make install-libcmt-dev
(*.h, *.a and pkgconfig)TOOLCHAIN_PREFIX=
for all make commands even when in riscv64 environment, this should be removedDESTDIR
is not working, probably renameTARGET_DESTDIR
to itCFLAGS
,CXXFLAGS
andLDFLAGS
. In this case I may want to package statically linked tolibgcc
, so my package can have less dependencies leading to smaller rootfs image.The text was updated successfully, but these errors were encountered: