agreeable-painting-48846
04/19/2023, 3:53 PM2023-04-19T17:18:15.920848368Z INFO error: failed to run custom build command for `nsi-sys v0.7.0`
2023-04-19T17:18:15.923115118Z INFO
2023-04-19T17:18:15.925751628Z INFO Caused by:
2023-04-19T17:18:15.928176656Z INFO process didn't exit successfully: `/opt/shuttle/shuttle-builds/polyhedrobot/target/release/build/nsi-sys-18bb7f3eda5b6449/build-script-build` (exit status: 101)
2023-04-19T17:18:15.930241605Z INFO --- stdout
2023-04-19T17:18:15.932268555Z INFO cargo:rerun-if-changed=include/wrapper.h
2023-04-19T17:18:15.934279858Z INFO cargo:rerun-if-env-changed=TARGET
2023-04-19T17:18:15.936822625Z INFO cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64-unknown-linux-gnu
2023-04-19T17:18:15.939131674Z INFO cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_gnu
2023-04-19T17:18:15.941228988Z INFO cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
2023-04-19T17:18:15.943294478Z INFO
2023-04-19T17:18:15.945689639Z INFO --- stderr
2023-04-19T17:18:15.947817198Z INFO include: /usr/local/cargo/registry/src/panamax-d16f25348226fbb1/nsi-sys-0.7.0/include
2023-04-19T17:18:15.950151660Z INFO thread 'main' panicked at 'Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /usr/local/cargo/registry/src/panamax-d16f25348226fbb1/bindgen-0.65.1/lib.rs:603:31
2023-04-19T17:18:15.952413420Z INFO note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-04-19T17:18:15.954583857Z INFO warning: build failed, waiting for other jobs to finish...agreeable-painting-48846
04/19/2023, 3:53 PMagreeable-painting-48846
04/19/2023, 4:04 PMwhite-daybreak-71067
04/19/2023, 4:27 PMwhite-daybreak-71067
04/19/2023, 4:28 PMbindgen (not my crate) which tries to run clang as part of the build.rs of the nsi-sys crate.white-daybreak-71067
04/19/2023, 4:28 PMbuild.rs of the nsi-core crate will have the desired effect. But that depends on nsi-sys so we need get that to build on your infrastructure first. 🙂white-daybreak-71067
04/19/2023, 4:31 PMlib3delight.{so/dylib/dll}. There is no lib3delight.{a/lib} artifact.
The best my crate can hence do is dynamically link against the lib at compile time.
But that still means the host system's dynamic linker must find it at runtime. I.e. either it needs to live alongside the deployed executable or LD_LIBRARY_PATH (Linux/macOS) resp. PATH (Windows) needs to be set so it can be found.white-daybreak-71067
04/19/2023, 4:33 PMclang issue for bindgen.white-daybreak-71067
04/19/2023, 4:33 PMbindgen is popular enough that this will become a concern for shuttle soonish anyway.kind-area-3810
04/19/2023, 6:40 PMclang in all deployer images, but I'm not sure what the drawbacks would be. 🤔kind-area-3810
04/19/2023, 6:45 PMLD_LIBRARY_PATH being set. Which you won't be able to set before compilation.kind-area-3810
04/19/2023, 6:46 PMgentle-ice-1561
04/19/2023, 8:53 PMgentle-ice-1561
04/19/2023, 10:12 PMgentle-ice-1561
04/20/2023, 2:02 AMwhite-daybreak-71067
04/20/2023, 10:01 AMtarget/release/nsi-core. But what I could do is have it go into some folder I read from the environment.white-daybreak-71067
04/20/2023, 10:05 AMbuild.rs, and this destination already existed and was readable, any artifacts required at runtime could be stashed there by build.rs.
This would work for the second issue, an opaque dylib artifact dependency.white-daybreak-71067
04/20/2023, 10:06 AMdocs.rs.gentle-ice-1561
04/20/2023, 11:08 AMwhite-daybreak-71067
04/20/2023, 4:13 PMwhite-daybreak-71067
04/20/2023, 4:20 PMwhite-daybreak-71067
04/20/2023, 4:25 PMwhite-daybreak-71067
04/20/2023, 4:45 PMkind-area-3810
04/20/2023, 5:19 PMkind-area-3810
04/21/2023, 2:19 PMwhite-daybreak-71067
04/22/2023, 3:52 PMwhite-daybreak-71067
04/26/2023, 6:56 PMkind-area-3810
04/26/2023, 9:14 PM