compiler-explorer/infra

jakt daily install fails:

Opened this issue · 5 comments

2024-07-10 12:05:27,764 lib.installation_context INFO     Symlinking jakt-trunk-20240710 to /opt/compiler-explorer/jakt-trunk
2024-07-10 12:05:27,791 lib.ce_install  ERROR    compilers/jakt trunk installed OK, but doesn't appear as installed after
0 packages installed OK, 0 skipped, and 1 failed installation
Failed:
  compilers/jakt trunk

from:

$ sudo ce_install --enable nightly install jakt --force

without force it thinks it's already installed (unless jakt has been updated)

$ ls -l /opt/compiler-explorer/jakt-trunk-20240718/bin
total 37608
lrwxrwxrwx 1 root root       47 Jul 18 00:08 jakt -> /root/jakt-trunk-20240718/build/bin/jakt_stage1
-rwxr-xr-x 1 root root 18941880 Jul 18 00:07 jakt_stage0
-rwxr-xr-x 1 root root 18239976 Jul 18 00:08 jakt_stage1
-rwxr-xr-x 1 root root  1318376 Jul 18 00:08 jakttest

The symlink that is automatically created by the buildprocess points to /root/ which is the build-installation directory during the buildprocess, but is obviously not the same as the actual installation directory.

Checked their CMakeLists.txt and noticed that a runtime dir link would also be wrong, and it is:

$ ls -l /opt/compiler-explorer/jakt-trunk-20240718/include
total 4
lrwxrwxrwx 1 root root 33 Jul 18 00:07 runtime -> /root/jakt-trunk-20240718/runtime

they're using the cmake command -E create_symlink, https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-E-arg-create_symlink
it doesn't appear to have support for making relative links
so my hack on the buildscript will have to do

This was fixed for a little bit, but its broken again, not sure why