ViRb3 / wgcf

🚤 Cross-platform, unofficial CLI for Cloudflare Warp
MIT License
6.25k stars 693 forks source link

mips / openwrt #18

Closed jserviceorg closed 4 years ago

jserviceorg commented 4 years ago

platform: gl inet 300m (mips device) os: openwrt stable

root@greatWallOfChina:~/wgcf# ./wgcf register Illegal instruction root@greatWallOfChina:~/wgcf#

root@greatWallOfChina:~/wgcf# strace ./wgcf register execve("./wgcf", ["./wgcf", "register"], 0x7f73e174 / 14 vars /) = 0 set_thread_area(0x77fe3efc) = 0 set_tid_address(0x77fdb008) = 4655 open("/etc/ld-musl-mips-sf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=78080, ...}) = 0 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\10\0\0\0\1\0\0'\320\0\0\0004"..., 936) = 936 mmap2(NULL, 147456, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x77f0e000 mmap2(0x77f30000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x77f30000 close(3) = 0 mprotect(0x77f30000, 4096, PROT_READ) = 0 --- SIGILL {si_signo=SIGILL, si_code=SI_KERNEL, si_addr=NULL} --- +++ killed by SIGILL +++ Illegal instruction

any ideas?

ViRb3 commented 4 years ago

There are no binary releases for the mips architecture, so you are using the wrong binary. I'll add mips to the build process and make a release in a bit.

ViRb3 commented 4 years ago

I have added mips and mipsle with soft-float for maximum compatibility to the release binaries. Please get the correct one for your device and try again. If you still have problems feel free to follow-up.

ViRb3 commented 4 years ago

Sorry, had some immediate issues with the builds but they are published now.

jserviceorg commented 4 years ago

great, thanks! :) will try tomorrow

Am Sa., 2. Mai 2020 um 16:24 Uhr schrieb Victor notifications@github.com:

Sorry, had some immediate issues with the builds but they are published now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ViRb3/wgcf/issues/18#issuecomment-622961387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG76Y6JRD4VOWPRH3MV6LRDRPQUJPANCNFSM4MXSGCKA .