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

cannot build sysbench on mips64el #318

Closed
xieyanker opened this issue Sep 7, 2019 · 9 comments
Closed

cannot build sysbench on mips64el #318

xieyanker opened this issue Sep 7, 2019 · 9 comments

Comments

@xieyanker
Copy link

Hello, I need to build the sysbench on mips64el arch,but it seems that the platform is not supported. Is there exist any idea to build it on mips64el?

mkdir tmp
tar -C . -cf - ck | tar -xf - -C tmp/
chmod -R u+w tmp
cd tmp/ck &&                        \
CC="gcc -std=gnu99"                          \
CFLAGS="-O3 -funroll-loops -ggdb3  -D_GNU_SOURCE "      \
LDFLAGS="-L/usr/local/lib"                \
  ./configure  \
  --prefix=/root/xujingsong/sysbench/third_party/concurrency_kit && \
make && \
make install
Detecting operating system.......success [linux]
Detecting machine architecture...failed  [unsupported]
Linux master2 3.10.0-862.9.1.ns7_4.37.mips64el #1 SMP PREEMPT Tue Feb 26 19:23:39 CST 2019 mips64el mips64el mips64el GNU/Linux
@akopytov
Copy link
Owner

akopytov commented Sep 9, 2019

This is a ConcurrencyKit limitation: concurrencykit/ck#80

@akopytov akopytov closed this as completed Sep 9, 2019
@sbahra
Copy link

sbahra commented Sep 11, 2019

@akopytov For MIPS, you can always just enable the GCC built-in port. That will be sub-optimal but might be with-in acceptable range and still correct. This falls back to using compiler built-ins. What do you think?

@akopytov
Copy link
Owner

@sbahra Compiler built-ins look like an acceptable option to me. Thanks for reminding me. I'm going to implement it for mips64el.

@akopytov akopytov reopened this Sep 13, 2019
@akopytov
Copy link
Owner

@xieyanker can you try if building the latest git works for you?

@xieyanker
Copy link
Author

@akopytov Thanks for your help, I rebuild from the latest code, but still not work.

mkdir tmp
tar -C . -cf - ck | tar -xf - -C tmp/
chmod -R u+w tmp
cd tmp/ck &&                        \
CC="gcc -std=gnu99"                          \
CFLAGS="-O3 -funroll-loops -ggdb3  -D_GNU_SOURCE "      \
LDFLAGS="-L/usr/local/lib"                \
  ./configure --use-cc-builtins \
  --prefix=/root/xujingsong/sysbench/third_party/concurrency_kit && \
make && \
make install
Detecting operating system.......success [linux]
Detecting machine architecture...failed  [unsupported]

@akopytov
Copy link
Owner

@xieyanker right, sorry, this is not as easy as I thought. I would suggest reporting this to ConcurrencyKit. I'm happy to merge the fix as soon as it is available.

@sbahra
Copy link

sbahra commented Sep 14, 2019

Committed an improvement to master now.

Up until now, configure profile would be used for platforms without official coverage (on which manual validation of generated code was also performed). However, I have committed a fix for this. You should now see a different behavior @xieyanker.

Can you try again? Does sysbench behave as expected?

@xieyanker
Copy link
Author

@sbahra @akopytov Thanks for your help, I have successfully built it.

root@master1:[/root/xujingsong/sysbench]sysbench --version
sysbench 1.1.0-74f3b6b

But it seems that the third_party of the sysbench has not been updated for a long time, I re-pull the latest code from the https://github.com/concurrencykit/ck.git.

@zzsuki
Copy link

zzsuki commented Sep 2, 2020

i am facing the same problem as u did. can u tell me how can u solved this situation.

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

4 participants