`cargo build` failure says `libclang` is not setup
yudistrange opened this issue · comments
I'm trying to build my ESP-RS project on a new machine.
I have followed the installation steps described in the README
But when I run cargo build
, I get the following error
error: failed to run custom build command for `esp-idf-sys v0.33.1`
Caused by:
process didn't exit successfully: `/home/udit/Workspaces/nilenso/immaterial/target/debug/build/esp-idf-sys-bc1dd9b224bcb67a/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
cargo:rerun-if-env-changed=MCU
cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
cargo:rerun-if-env-changed=ESP_IDF_VERSION
cargo:rerun-if-env-changed=ESP_IDF_REPOSITORY
cargo:rerun-if-env-changed=ESP_IDF_CMAKE_GENERATOR
cargo:rerun-if-env-changed=IDF_PATH
cargo:rerun-if-env-changed=EXTRA-COMPONENTS
cargo:rerun-if-env-changed=ESP_IDF_COMPONENTS
IDF_PYTHON_ENV_PATH=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env
PATH=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/cmake/3.23.1/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/ninja/1.10.2/:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/tools:$PATH
Current system platform: linux-amd64
Skipping xtensa-esp32-elf@esp-2021r2-patch5-8.4.0 (already installed)
Skipping cmake@3.23.1 (already installed)
Skipping ninja@1.10.2 (already installed)
Skipping esp32ulp-elf@2.35_20220830 (already installed)
IDF_PYTHON_ENV_PATH=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env
PATH=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/cmake/3.23.1/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/ninja/1.10.2/:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/tools:$PATH
cargo:rerun-if-changed=/home/udit/Workspaces/nilenso/immaterial/sdkconfig.defaults
CMAKE_PREFIX_PATH_xtensa-esp32-espidf = None
CMAKE_PREFIX_PATH_xtensa_esp32_espidf = None
TARGET_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_xtensa-esp32-espidf = None
CMAKE_xtensa_esp32_espidf = None
TARGET_CMAKE = None
CMAKE = None
running: cd "/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build" && CMAKE_PREFIX_PATH="" EXTRA_COMPONENT_DIRS="" IDF_PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4" IDF_TARGET="esp32" IDF_TOOLS_PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif" PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/ninja/1.10.2/:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/tools:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/cmake/3.23.1/bin:/home/udit/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/udit/.asdf/shims:/home/udit/.local/bin/asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/udit/.cargo/bin:/home/udit/.local/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin" SDKCONFIG_DEFAULTS="/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/gen-sdkconfig.defaults;/home/udit/Workspaces/nilenso/immaterial/sdkconfig.defaults" "cmake" "/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out" "-G" "Ninja" "-DCMAKE_TOOLCHAIN_FILE=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/tools/cmake/toolchain-esp32.cmake" "-DCMAKE_BUILD_TYPE=" "-DPYTHON=/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin/python" "-DCMAKE_INSTALL_PREFIX=/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out" "-DCMAKE_C_FLAGS= -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections" "-DCMAKE_CXX_FLAGS= -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections" "-DCMAKE_ASM_FLAGS= -mlongcalls -ffunction-sections -fdata-sections"
-- Checking Python dependencies...
Python requirements from /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/requirements.txt are satisfied.
-- Project sdkconfig file /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/sdkconfig
Loading defaults file /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/gen-sdkconfig.defaults...
Loading defaults file /home/udit/Workspaces/nilenso/immaterial/sdkconfig.defaults...
-- App "libespidf" version: 1
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/soc/esp32/ld/esp32.peripherals.ld
-- Configuring done
-- Generating done
-- Build files have been written to: /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build
running: cd "/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build" && EXTRA_COMPONENT_DIRS="" IDF_PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4" IDF_TARGET="esp32" IDF_TOOLS_PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif" PATH="/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/ninja/1.10.2/:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/tools:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/xtensa-esp32-elf/esp-2021r2-patch5-8.4.0/xtensa-esp32-elf/bin:/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/tools/cmake/3.23.1/bin:/home/udit/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/home/udit/.asdf/shims:/home/udit/.local/bin/asdf/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/udit/.cargo/bin:/home/udit/.local/bin:/home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin" SDKCONFIG_DEFAULTS="/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/gen-sdkconfig.defaults;/home/udit/Workspaces/nilenso/immaterial/sdkconfig.defaults" "cmake" "--build" "." "--config" "MinSizeRel" "--parallel" "8"
[1/7] Performing build step for 'bootloader'
[0/1] Re-running CMake...
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/sdkconfig
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/soc/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader_support /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/efuse /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp32 /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_common /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_hw_support /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_rom /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esp_system /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/esptool_py /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/freertos /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/hal /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/log /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader/subproject/main /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/bootloader/subproject/components/micro-ecc /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/newlib /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/partition_table /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/soc /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/spi_flash /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/bootloader
[1/1] cd /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/bootloader/esp-idf/esptool_py && /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin/python /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/bootloader/bootloader.bin
Bootloader binary size 0x63f0 bytes. 0xc10 bytes (11%) free.
[2/5] Generating ld/sections.ld
[3/5] Linking C executable libespidf.elf
[4/5] Generating binary image from built executable
esptool.py v3.3.4-dev
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/libespidf.bin
[5/5] cd /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/esp-idf/esptool_py && /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/python_env/idf4.4_py3.11_env/bin/python /home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4/components/partition_table/check_sizes.py --offset 0x8000 partition --type app /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/partition_table/partition-table.bin /home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/build/libespidf.bin
libespidf.bin binary size 0x27a80 bytes. Smallest app partition is 0x100000 bytes. 0xd8580 bytes (85%) free.
cargo:root=/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out
cargo:rerun-if-changed=/home/udit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/esp-idf-sys-0.33.1/src/include/esp-idf/bindings.h
cargo:rustc-env=EMBUILD_GENERATED_BINDINGS_FILE=/home/udit/Workspaces/nilenso/immaterial/target/xtensa-esp32-espidf/debug/build/esp-idf-sys-e6d88d4f612b20ee/out/bindings.rs
--- stderr
Build configuration: BuildConfig {
esp_idf_tools_install_dir: None,
esp_idf_sdkconfig: None,
esp_idf_sdkconfig_defaults: None,
mcu: None,
native: NativeConfig {
esp_idf_version: Some(
Branch(
"release/v4.4",
),
),
esp_idf_repository: None,
esp_idf_cmake_generator: None,
idf_path: None,
extra_components: [],
esp_idf_components: None,
},
esp_idf_sys_root_crate: None,
}
Using managed esp-idf repository: RemoteSdk { repo_url: None, git_ref: Branch("release/v4.4") }
fatal: No names found, cannot describe anything.
Using esp-idf v4.4.4 at '/home/udit/Workspaces/nilenso/immaterial/.embuild/espressif/esp-idf/release-v4.4'
fatal: No names found, cannot describe anything.
Built components: esp_ringbuf, efuse, esp_ipc, driver, esp_pm, mbedtls, bootloader, esptool_py, partition_table, app_update, bootloader_support, spi_flash, nvs_flash, pthread, esp_gdbstub, espcoredump, esp_phy, esp_system, esp_rom, hal, vfs, esp_eth, tcpip_adapter, esp_netif, esp_event, wpa_supplicant, esp_wifi, ieee802154, console, openthread, lwip, log, heap, soc, esp_hw_support, xtensa, esp32, esp_common, esp_timer, freertos, newlib, cxx, app_trace, asio, bt, cbor, unity, cmock, coap, nghttp, esp-tls, esp_adc_cal, esp_hid, tcp_transport, esp_http_client, esp_http_server, esp_https_ota, esp_https_server, esp_lcd, protobuf-c, protocomm, mdns, esp_local_ctrl, sdmmc, esp_serial_slave_link, esp_websocket_client, expat, wear_levelling, fatfs, freemodbus, idf_test, jsmn, json, libsodium, mqtt, openssl, perfmon, spiffs, usb, tinyusb, ulp, wifi_provisioning
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: [])"', /home/udit/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.63.0/./lib.rs:2338:31
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
From the error it seems like the LIBCLANG_PATH
variable isn't set. But I checked that. It's set to the correct location.
$ echo $LIBCLANG_PATH
~/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-16.0.0-20230516/esp-clang/lib
My path also seems to be set correctly. It has all the ESP-RS bin directories in the PATH
echo $PATH
/home/udit/.rustup/toolchains/esp/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin /home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin /home/udit/.rustup/toolchains/esp/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin /home/udit/.rustup/toolchains/esp/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin /home/udit/.asdf/shims /home/udit/.local/bin/asdf/bin /usr/local/sbin /usr/local/bin /usr/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /home/udit/.cargo/bin /home/udit/.local/bin /home/udit/.rustup/toolchains/esp/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin
Oh nevermind. I figured out the solution.
The LIBCLANG_PATH
doesn't support relative paths. If I expand that to absolute path, compilation works correctly.