XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Xen-Orchestra unsupported on freeBSD because of fuse-shared-library?

    Scheduled Pinned Locked Moved Xen Orchestra
    truenassources
    2 Posts 2 Posters 526 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z Offline
      zizzithefox
      last edited by

      Hello, when I try to compile from sources, it seems it needs fuse-shared-library which is not supported in freeBSD (only linux and OSX).

      What is that library used for? Can it be avoided if the functions are not needed?

      In fact I recently get:

      error /srv/xo/node_modules/fuse-native: Command failed.
      Exit code: 1
      Command: node-gyp-build
      Arguments: 
      Directory: /srv/xo/node_modules/fuse-native
      Output:
      gyp info it worked if it ends with ok
      gyp info using node-gyp@9.1.0
      gyp info using node@16.16.0 | freebsd | x64
      gyp info find Python using Python version 3.9.15 found at "/usr/local/bin/python3.9"
      gyp info spawn /usr/local/bin/python3.9
      gyp info spawn args [
      gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
      gyp info spawn args   'binding.gyp',
      gyp info spawn args   '-f',
      gyp info spawn args   'make',
      gyp info spawn args   '-I',
      gyp info spawn args   '/srv/xo/node_modules/fuse-native/build/config.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
      gyp info spawn args   '-I',
      gyp info spawn args   '/root/.cache/node-gyp/16.16.0/include/node/common.gypi',
      gyp info spawn args   '-Dlibrary=shared_library',
      gyp info spawn args   '-Dvisibility=default',
      gyp info spawn args   '-Dnode_root_dir=/root/.cache/node-gyp/16.16.0',
      gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
      gyp info spawn args   '-Dnode_lib_file=/root/.cache/node-gyp/16.16.0/<(target_arch)/node.lib',
      gyp info spawn args   '-Dmodule_root_dir=/srv/xo/node_modules/fuse-native',
      gyp info spawn args   '-Dnode_engine=v8',
      gyp info spawn args   '--depth=.',
      gyp info spawn args   '--no-parallel',
      gyp info spawn args   '--generator-output',
      gyp info spawn args   'build',
      gyp info spawn args   '-Goutput_dir=.'
      gyp info spawn args ]
      /srv/xo/node_modules/fuse-shared-library/include.js:17
          throw new Error(`fuse-shared-library is not currently supported on: ${platform}`)
          ^
      
      Error: fuse-shared-library is not currently supported on: freebsd
          at Object.<anonymous> (/srv/xo/node_modules/fuse-shared-library/include.js:17:11)
          at Module._compile (node:internal/modules/cjs/loader:1105:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
          at Module.load (node:internal/modules/cjs/loader:981:32)
          at Function.Module._load (node:internal/modules/cjs/loader:822:12)
          at Module.require (node:internal/modules/cjs/loader:1005:19)
          at require (node:internal/modules/cjs/helpers:102:18)
          at [eval]:1:1
          at Script.runInThisContext (node:vm:129:12)
          at Object.runInThisContext (node:vm:305:38)
      gyp: Call to 'node -e "require('fuse-shared-library/include')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
      gyp ERR! configure error 
      gyp ERR! stack Error: `gyp` failed with exit code: 1
      gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:284:16)
      gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
      gyp ERR! System FreeBSD 12.2-RELEASE-p14
      gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /srv/xo/node_modules/fuse-native
      
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        I think it's used for file level restore on S3 enabled backup. It's not crucial as long as you don't need to restore individual files on S3, obviously.

        @julien-f is there a way to avoid this dep manually in order to build the rest of XO?

        1 Reply Last reply Reply Quote 0
        • Z zizzithefox referenced this topic on
        • First post
          Last post