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

Can't build in CPU arm. #977

Closed
Chairinnisa opened this issue Apr 1, 2017 · 5 comments
Closed

Can't build in CPU arm. #977

Chairinnisa opened this issue Apr 1, 2017 · 5 comments
Assignees
Milestone

Comments

@Chairinnisa
Copy link

Hello guys, I can't build in CPU arm. It shown below:

/tmp/ccdJdApR.s: Assembler messages:
/tmp/ccdJdApR.s:321: Error: bad instruction `pause'
/tmp/ccdJdApR.s:8454: Error: bad instruction `xchgl r2,[r4]'
/tmp/ccdJdApR.s:8475: Error: bad instruction `pause'
/tmp/ccdJdApR.s:8509: Error: bad instruction `pause'
/tmp/ccdJdApR.s:9067: Error: bad instruction `pause'
/tmp/ccdJdApR.s:9245: Error: bad instruction `xchgl r2,[r8]'
/tmp/ccdJdApR.s:9266: Error: bad instruction `pause'
/tmp/ccdJdApR.s:9320: Error: bad instruction `pause'
/tmp/ccdJdApR.s:12814: Error: bad instruction `xchgl r2,[r9]'
/tmp/ccdJdApR.s:12835: Error: bad instruction `pause'
/tmp/ccdJdApR.s:12869: Error: bad instruction `pause'
Makefile:68: recipe for target 'obj/Query_Cache.oo' failed
make[1]: *** [obj/Query_Cache.oo] Error 1
@renecannao
Copy link
Contributor

I think I know what is. There are some assembly commands for Intel CPUs.
What OS are you using? So I will reproduce on the same OS.
Thanks

@Chairinnisa
Copy link
Author

Thanks very much, I want to build it on raspbian ARMv7 Processor Raspberry Pi.

renecannao added a commit that referenced this issue Apr 21, 2017
Conflicts:
	lib/ProxySQL_Admin.cpp
@taylor840326
Copy link

@Chairinnisa so cool ~~, I'm learning Raspberry pi now 😄 ;

@renecannao
Copy link
Contributor

Branch v1.4.1-977 is able to compile and run on ARMv7 .
I will need to run extensive testing before merging it into v1.4.1

root@scw-f83446:~/proxysql# uname -a
Linux scw-f83446 4.9.20-std-1 #1 SMP Wed Apr 5 15:38:34 UTC 2017 armv7l armv7l armv7l GNU/Linux
root@scw-f83446:~/proxysql# lscpu 
Architecture:          armv7l
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
Model name:            ARMv7 Processor rev 2 (v7l)
CPU max MHz:           1333.0000
CPU min MHz:           666.5000
root@scw-f83446:~/proxysql# ./src/proxysql --version
ProxySQL version 1.4.0-34-g83053b3, codename Truls
root@scw-f83446:~/proxysql# ./src/proxysql -f
2017-06-09 13:34:27 main.cpp:217:ProxySQL_Main_process_global_variables(): [WARNING] Unable to open config file /etc/proxysql.cfg
[Warning]: Cannot open any default config file . Using default datadir in current working directory /root/proxysql
2017-06-09 13:34:27 [INFO] ProxySQL version 1.4.0-34-g83053b3
2017-06-09 13:34:27 [INFO] Detected OS: Linux scw-f83446 4.9.20-std-1 #1 SMP Wed Apr 5 15:38:34 UTC 2017 armv7l
Standard ProxySQL Admin rev. 0.2.0902 -- ProxySQL_Admin.cpp -- Fri Jun  9 13:10:46 2017
Standard MySQL Threads Handler rev. 0.2.0902 -- MySQL_Thread.cpp -- Fri Jun  9 13:10:46 2017
Standard MySQL Authentication rev. 0.2.0902 -- MySQL_Authentication.cpp -- Fri Jun  9 13:10:46 2017
2017-06-09 13:34:27 [INFO] Dumping current MySQL Servers structures for hostgroup ALL
2017-06-09 13:34:27 [INFO] New mysql_replication_hostgroups table
2017-06-09 13:34:27 [INFO] New mysql_group_replication_hostgroups table
Standard Query Processor rev. 0.2.0902 -- Query_Processor.cpp -- Fri Jun  9 13:10:46 2017
In memory Standard Query Cache (SQC) rev. 1.2.0905 -- Query_Cache.cpp -- Fri Jun  9 13:10:46 2017
Standard MySQL Monitor (StdMyMon) rev. 1.2.0723 -- MySQL_Monitor.cpp -- Fri Jun  9 13:10:46 2017

@renecannao renecannao added this to the v1.4.1 milestone Jun 9, 2017
@renecannao renecannao self-assigned this Jun 9, 2017
@renecannao
Copy link
Contributor

Completed in 1.4.1

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

No branches or pull requests

3 participants