Aditya Nugraha

Results 22 comments of Aditya Nugraha

My newbie attempt, based on here old [uci_lookup](https://git.openwrt.org/?p=project/uci.git;a=blob_plain;f=uci.h;hb=9e56d37528e25c0759185e4c263c52a1eefaa9dd) api definition: ``` /** * uci_lookup: Look up an uci element * * @ctx: uci context * @res: where to store the...

No, it's Debian SID glibc compiling/building/targeting OpenWrt x86_64 glibc.

Found out a workaround : ``` diff -Naur a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp --- a/tools/v8_gypfiles/v8.gyp +++ b/tools/v8_gypfiles/v8.gyp @@ -1026,6 +1026,17 @@ '

Trying to debug segmentation fault with gdb : ``` Reading symbols from /home/user/works/openwrt/staging_dir/hostpkg/bin/node... warning: Can't open file anon_inode:[io_uring] which was expanded to anon_inode:[io_uring] during file-backed mapping note processing [New LWP...

~~I still haven't found the way to ignore 3rd party compiled abseil-cpp than using bundled abseil-cpp from node itself.~~ Found a possible fixes in [here](https://github.com/openwrt/packages/pull/25582#issuecomment-2558121611). Some part of the patch...

> Doesn't look right. Where is `libintl.so.8` and why it is needed? Because my OpenWrt build is NLS enabled (CONFIG_BUILD_NLS), libintl.so.8 is located in here : ``` /home/user/works/openwrt/staging_dir/target-x86_64_glibc_custom/usr/lib/libintl-full/lib or $(STAGING_DIR)/usr/lib/libintl-full/lib...

I did have tried using RUSTFLAGS but still not picked up with rustc, that's why it's weird. Based on [here ](https://users.rust-lang.org/t/is-there-a-way-to-set-rpath-link-to-cargo/3609/3): ``` RUSTFLAGS += "-C linker-flag=-Wl,-rpath-link,$(STAGING_DIR)/usr/lib/libintl-full/lib" ``` in dl/cargo/config.toml I...

@lu-zero I thought that it was libelf issue, after i have tried to patchelf the libelf with the location of libintl.so.8 but still errror out, this might be OpenWrt's rust...

@lu-zero Here is cargo very verbose log : ``` Compiling einat v0.1.2 (/home/user/works/openwrt/build_dir/target-x86_64_glibc_custom/einat-ebpf-0.1.3) Running `CARGO=/home/user/works/openwrt/staging_dir/target-x86_64_glibc_custom/host/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/home/user/works/openwrt/build_dir/target-x86_64_glibc_custom/einat-ebpf-0.1.3 CARGO_PKG_AUTHORS='Huang-Huang Bao ' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=GPL-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=einat CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/EHfive/einat-ebpf' CARGO_PKG_RUST_VERSION=1.74 CARGO_PKG_VERSION=0.1.2 CARGO_PKG_VERSION_MAJOR=0...

That's why i said rustc seems ignoring everything that we are sets to cargo or Cargo.toml or config.toml or env variables. Please try it yourself, it's [einat ](https://github.com/muink/openwrt-einat-ebpf), and with...