lapi.c:1:0: error: CPU you selected does not support x86-64 instruction set
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lapi.c:1:0: error: CPU you selected does not support x86-64 instruction set
I am receiving this error when attempting to install lua-5.1.4 from slackbuilds.org. I searched around for a while, found similar errors, but none pertaining to the exact error I am receiving. I am assuming, from what the error is insinuating, that this may be because I am trying to install lua on a 64 bit slackware, or am I missing dependencies maybe? Or am I way off here? Thanks ahead for any help.
so maybe it gets the ARCH variable wrong from your shell environment, because the variables in bold are set when ARCH=i486
Quote:
make[2]: Entering directory `/tmp/SBo/lua-5.1.4/src'
gcc -O2 -march=i486 -mtune=i686 -DLUA_USE_LINUX -c -o lapi.o lapi.c
lapi.c:1:0: error: CPU you selected does not support x86-64 instruction set
I had a thought that maybe I had messed something up while repeatedly attempting to install lua in different ways (sbopkg, then slackbuild), which turns out to be true. I created another user account, installed from there flawlessly. Luckily for me, this is a pretty fresh slackware install and I can transfer all my files over to this new account and delete the old one.
However, I do agree that something had caused the lua build to detect the wrong architecture for some reason. (That right?)
In conclusion, its obviously not slackwares or lua's problem, I had done something wrong, user error, so rare
and I think you will find something settings ARCH=i486 in $PROBLEMATIC_USER_HOME/.bashrc, or .bash_profile, or .profile or any other file that is included or executed by these three.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.