Giter VIP home page Giter VIP logo

Comments (5)

maskedeken avatar maskedeken commented on July 25, 2024

I built the binary successfully using openwrt-sdk-19.07.1-armvirt-64_gcc-7.5.0_musl.Linux-x86_64 as sysroot-build, but when I ran it on openwrt, it said:

-ash: ./naive: not found

and ldd said:
/lib/ld-linux-aarch64.so.1 (0xffff91533000)
libnss3.so => /usr/lib/libnss3.so (0xffff91041000)
libnssutil3.so => /usr/lib/libnssutil3.so (0xffff91006000)
libnspr4.so => /usr/lib/libnspr4.so (0xffff90fc0000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xffff90f9e000)
libc.so => /lib/ld-linux-aarch64.so.1 (0xffff91533000)
libplc4.so => /usr/lib/libplc4.so (0xffff90f8a000)
libplds4.so => /usr/lib/libplds4.so (0xffff90f77000)

I realized that the interpreter was not ld-musl-aarch64.so.1 but ld-linux-aarch64.so.1, how to link the binary to ld-musl-aarch64.so.1?

from naiveproxy.

klzgrad avatar klzgrad commented on July 25, 2024

A openwrt x86_64 build was add using these two changes: 349b4e4 f7ce953 if you can figure it out. I'll get around to add this build by weekend.

from naiveproxy.

maskedeken avatar maskedeken commented on July 25, 2024

A openwrt x86_64 build was add using these two changes: 349b4e4 f7ce953 if you can figure it out. I'll get around to add this build by weekend.

got it, thanks a lot. I can build it and ran it on arm64 openwrt now

from naiveproxy.

klzgrad avatar klzgrad commented on July 25, 2024

Did you make this change?

diff --git a/src/get-openwrt.sh b/src/get-openwrt.sh
index 0ce461c01..4378e7bc3 100755
--- a/src/get-openwrt.sh
+++ b/src/get-openwrt.sh
@@ -23,8 +23,8 @@ for flag in ALL_NONSHARED ALL_KMODS ALL SIGNED_PACKAGES; do
 done
 make oldconfig
 make
-full_root=staging_dir/toolchain-${arch}_gcc-${gcc_ver}_musl
-cp -r staging_dir/target-${arch}_musl/usr $full_root
+full_root=staging_dir/toolchain-*_gcc-${gcc_ver}_musl
+cp -r staging_dir/target-*_musl/usr $full_root

I found the path for armvirt is toolchain-aarch64_generic_gcc-7.5.0_musl, which was unexpected.

from naiveproxy.

klzgrad avatar klzgrad commented on July 25, 2024

The build for openwrt arm64 is uploaded to https://github.com/klzgrad/naiveproxy/releases/tag/v80.0.3987.87-2.

Report again if this build doesn't work.

from naiveproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.