Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Illegal instruction" on MIPS architecture #2725

Closed
82kg opened this issue Nov 5, 2018 · 16 comments
Closed

"Illegal instruction" on MIPS architecture #2725

82kg opened this issue Nov 5, 2018 · 16 comments
Labels
Milestone

Comments

@82kg
Copy link

82kg commented Nov 5, 2018

Output of rclone version

V1.44

Describe the issue

device: Thunder Timecloud
cpu: MT 7621AT
linux core version:4.4.153
system: LEDE Reboot 17.01.6 r3979-2252731af4 / LuCI lede-17.01 branch (git-18.201.27126-7bf0367)

i download the rclone-v1.44-linux-mipsle .
i runs well on linux core version:3.14 and system : LEDE14.07
today i update the system. and the linux core updated to 4.4.153

when i sun the script ./rclone config

it returns "Illegal instruction"

how can i solve the problem

@Cnly
Copy link
Member

Cnly commented Nov 5, 2018

I found a post highly relevant on the forum. And we have #2724. @ncw maybe we should test the PR and then merge it?

@tony-sunjian I plan to build the binaries for that PR now and should be able to put them here in a while. Can you help with the testing?

@Cnly Cnly added the bug label Nov 5, 2018
@Cnly Cnly changed the title Illegal instruction "Illegal instruction" on MIPS architecture Nov 5, 2018
@82kg
Copy link
Author

82kg commented Nov 5, 2018

@Cnly no problem, do you need the ssh? or what should i do

@Cnly
Copy link
Member

Cnly commented Nov 5, 2018

rclone-v1.44-037-g148b0de7-beta-linux-mipsle.zip

@tony-sunjian Can you have a try with this version? Thanks.

@82kg
Copy link
Author

82kg commented Nov 5, 2018

@Cnly still returns "Illegal instruction", i can send you the ssh account,

@82kg
Copy link
Author

82kg commented Nov 5, 2018

@Cnly or e-mail what ever

@82kg
Copy link
Author

82kg commented Nov 5, 2018

rclone-v1.44-037-g148b0de7-beta-linux-mipsle.zip

@tony-sunjian Can you have a try with this version? Thanks.

my email : 717114806@qq.com

@Cnly
Copy link
Member

Cnly commented Nov 5, 2018

@tony-sunjian I checked the config again and it seems the arch name is not correct in the PR. This version should work:

rclone-v1.44-037-g148b0de7-beta-linux-mipsle.zip

But if you want to send me something like credentials, that's okay too and you can reach me at minecnly@gmail.com. I may not be able to do remote tests right away, though.

@82kg
Copy link
Author

82kg commented Nov 5, 2018

@Cnly i have already send you ssh account , you may try it

@82kg
Copy link
Author

82kg commented Nov 5, 2018

@tony-sunjian I checked the config again and it seems the arch name is not correct in the PR. This version should work:

rclone-v1.44-037-g148b0de7-beta-linux-mipsle.zip

But if you want to send me something like credentials, that's okay too and you can reach me at minecnly@gmail.com. I may not be able to do remote tests right away, though.

sorry, still returns "Illegal instruction"

@sedlund
Copy link
Contributor

sedlund commented Nov 6, 2018

@Cnly you will have to build with:
GOARCH=mipsle GOMIPS=softfloat go build -a -ldflags '-s -w'

If you have a previous build and then change GOMIPS=softfloat, you have to pass -a to go build to force rebuild of everything

@82kg
Copy link
Author

82kg commented Nov 6, 2018

@Cnly you will have to build with:
GOARCH=mipsle GOMIPS=softfloat go build -a

If you have a previous build and then change GOMIPS=softfloat, you have to pass -a to go build to force rebuild of everything

hi @sedlund
do MT7621AT has hardware FPU?
rclone v1.43 runs well on MT7621AT with linux core:3.14。

@sedlund
Copy link
Contributor

sedlund commented Nov 6, 2018

@tony-sunjian
No, it does not have FPU.

OpenWRT had the kernel configured to enable FPU emulation with kernel 3.14 which is why it worked. When they switched to the 4.x kernel code base the kernel defaults to not enable FPU emulation - I think they just forgot to enable it - as they still build and ship packages (nodejs and others) that require FPU to work.

@82kg
Copy link
Author

82kg commented Nov 6, 2018

@tony-sunjian
No, it does not have FPU.

OpenWRT had the kernel configured to enable FPU emulation with kernel 3.14 which is why it worked. When they switched to the 4.x kernel code base the kernel defaults to not enable FPU emulation - I think they just forgot to enable it - as they still build and ship packages (nodejs and others) that require FPU to work.

i'v already send a bug report to openwrt
https://bugs.openwrt.org/index.php?do=details&task_id=1929

i got a reply, (Functionality is intentionally disabled)😀

the following link explains why
https://bugs.openwrt.org/index.php?do=details&task_id=1390&string=fpu&advancedsearch=on&search_name=&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=closed&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=

@Cnly
Copy link
Member

Cnly commented Nov 6, 2018

@sedlund thanks for the tip! It seems I've made the same mistake as the one in that forum post! :P

I tried with a clean build of the PR on @tony-sunjian your device and it runs with no error. Thanks for your help! Version output:

rclone v1.44-042-g4a6cfbeb-patch-1-beta
- os/arch: linux/mipsle
- go version: go1.11.2

@82kg
Copy link
Author

82kg commented Nov 6, 2018

@sedlund thanks for the tip! It seems I've made the same mistake as the one in that forum post! :P

I tried with a clean build of the PR on @tony-sunjian your device and it runs with no error. Thanks for your help! Version output:

rclone v1.44-042-g4a6cfbeb-patch-1-beta
- os/arch: linux/mipsle
- go version: go1.11.2

thanks a lot, i seen the rclone.new file , it runs well! perfect!

@Cnly Cnly added this to the v1.45 milestone Nov 7, 2018
@82kg 82kg closed this as completed Nov 7, 2018
@ncw
Copy link
Member

ncw commented Nov 7, 2018

I've merged @sedlund 's PR to enable softfloat now - thank you!

This will be in the latest beta in 15-30 mins and release in v1.45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants