dkml-installer-ocaml icon indicating copy to clipboard operation
dkml-installer-ocaml copied to clipboard

dkml system installation fails on debian

Open jonahbeckford opened this issue 2 years ago • 0 comments

#=== ERROR while compiling conf-withdkml.1 ====================================#
# context     2.2.0~alpha0~20221228 | linux/x86_64 | ocaml-system.4.14.0 | git+https://github.com/diskuv/diskuv-opam-repository.git#2.1.0
# path        ~/.opam/playground/.opam-switch/build/conf-withdkml.1
# command     /usr/bin/sh -eufc

    # Create a DKMLDIR. Its structure mimics a git submodule setup.
    #   <dkmldir>/.dkmlroot
    install -d dkmldir
    printf 'dkml_root_version=%s
' $DKML_VER > dkmldir/.dkmlroot
    #   <dkmldir>/vendor/drc/
    install -d dkmldir/vendor/drc
    tar xCfz dkmldir/vendor/drc dkml-runtime-common.tar.gz --strip-components=1

    # Load common functions
    TOPDIR=topdir-not-present
    USERMODE=${CONF_WITHDKML_USERMODE:-ON}
    DKMLDIR="$PWD/dkmldir"
    . dkmldir/vendor/drc/unix/_common_tool.sh

    # Calculate BUILDHOST_ARCH
    autodetect_buildhost_arch

    # Find WITHDKMLEXE_BUILDHOST
    set_opamswitchdir_of_system "$BUILDHOST_ARCH"
    if [ ! -e "$WITHDKMLEXE_BUILDHOST" ]; then
      printf 'Could not locate with-dkml.exe at its canonical location: %s
' "$WITHDKMLEXE_BUILDHOST"
    fi

    # Translate with-dkml location into different path styles
    loc="$WITHDKMLEXE_BUILDHOST"
    if [ -x /usr/bin/cygpath ]; then
      /usr/bin/cygpath -am "$loc"    > var.with-dkml.location.mixed
      /usr/bin/cygpath -aw "$loc"    > var.with-dkml.location.native
    else
      printf '%s
' "$loc"  > var.with-dkml.location.mixed
      printf '%s
' "$loc"  > var.with-dkml.location.native
    fi

    # Get sha256 checksum
    sha256compute $(< var.with-dkml.location.mixed) > with-dkml.sha256

    # Write <pkgname>.config
    #   confer: https://opam.ocaml.org/doc/Manual.html#lt-pkgname-gt-config
    backslash='\'
    {
      printf 'opam-version: "2.0"
'
      printf 'file-depends: [ [ "%s" "sha256=%s" ] ]
' "$(< var.with-dkml.location.mixed )" "$(< with-dkml.sha256 )"
      printf 'variables {
'
      printf '  location-native: "%s"
' "$(< var.with-dkml.location.native)" | sed "s/[$backslash]/$backslash$backslash$backslash$backslash/g"
      printf '  location-mixed: "%s"
' "$(< var.with-dkml.location.mixed )"
      printf '}
'
    } > 'conf-withdkml.config'

# exit-code   2
# env-file    ~/.opam/log/conf-withdkml-12518-5b7740.env
# output-file ~/.opam/log/conf-withdkml-12518-5b7740.out
### output ###
# Could not locate with-dkml.exe at its canonical location: /home/jonahbeckford/.opam/dkml/bin/with-dkml.exe
# /usr/bin/sh: 2154: 1: parameter not set



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build conf-withdkml 1
└─
┌─ The following changes have been performed
│ ∗ install base-bigarray base
│ ∗ install base-threads  base
│ ∗ install base-unix     base
│ ∗ install ocaml         4.14.0
│ ∗ install ocaml-config  2

jonahbeckford avatar Dec 20 '23 18:12 jonahbeckford