ngtc icon indicating copy to clipboard operation
ngtc copied to clipboard

Use premade chroot to build system

Open oneechanhax opened this issue 5 years ago • 5 comments

I made a llvm system by following linux from scratch. It would be preferable to turn it into a docker file somehow to just extract it, chroot to it and run a script to build itself. Its much better than forcing clang to fight with gcc in alpine so without libstdc++ it would compile without issues. Check it out and think about using it to build your project. https://drive.google.com/open?id=1Uv2_DU60lvUFVrPuqmi_scws1pfVAwmo

oneechanhax avatar Jul 14 '19 00:07 oneechanhax

I'm building with Alpine Linux in an LXC container. Probably creating Docker container with the same configuration shouldn't be an issue. I will do it ASAP.

tpimh avatar Jul 14 '19 08:07 tpimh

BTW, if proot is not broken (it shouldn't be on most configurations) you can still use the legacy ./build_all.sh script.

tpimh avatar Jul 14 '19 08:07 tpimh

oh, i was using the ./build_all script im p sure. i run alpine as my main desktop(why, idonno) but i guess it has to be a docker container???

oneechanhax avatar Jul 15 '19 12:07 oneechanhax

If you are already on alpine, you won't need to set up alpine chroot that is done on master branch. Try to switch to alpine-lxc branch and run ./build_all.sh from there.

tpimh avatar Jul 15 '19 13:07 tpimh

Now building with Docker is possible, switch to docker branch. The build command is docker run tpimh/ngtc:latest /bin/sh -c 'git clone https://github.com/tpimh/ngtc && cd ngtc && root/sync.sh && root/configure.sh && root/build.sh && root/install.sh' probably should be simplified or build-all.sh can be restored.

tpimh avatar Jul 19 '19 11:07 tpimh