LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-10-2012, 02:58 PM   #1
Agre551on
LQ Newbie
 
Registered: Apr 2012
Location: Kansas City, MO
Distribution: Slackware 13.37
Posts: 5

Rep: Reputation: Disabled
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.

posting the full error with command below:

Code:
root@Agression:/home/brad/Downloads/lua# ./lua.SlackBuild
lua-5.1.4/
lua-5.1.4/doc/
lua-5.1.4/doc/lua.1
lua-5.1.4/doc/luac.1
lua-5.1.4/doc/lua.html
lua-5.1.4/doc/readme.html
lua-5.1.4/doc/logo.gif
lua-5.1.4/doc/luac.html
lua-5.1.4/doc/contents.html
lua-5.1.4/doc/manual.html
lua-5.1.4/doc/lua.css
lua-5.1.4/doc/amazon.gif
lua-5.1.4/doc/cover.png
lua-5.1.4/doc/manual.css
lua-5.1.4/etc/
lua-5.1.4/etc/min.c
lua-5.1.4/etc/README
lua-5.1.4/etc/all.c
lua-5.1.4/etc/Makefile
lua-5.1.4/etc/lua.pc
lua-5.1.4/etc/lua.hpp
lua-5.1.4/etc/strict.lua
lua-5.1.4/etc/noparser.c
lua-5.1.4/etc/luavs.bat
lua-5.1.4/etc/lua.ico
lua-5.1.4/Makefile
lua-5.1.4/src/
lua-5.1.4/src/Makefile
lua-5.1.4/src/lapi.c
lua-5.1.4/src/lapi.h
lua-5.1.4/src/lauxlib.c
lua-5.1.4/src/lauxlib.h
lua-5.1.4/src/lbaselib.c
lua-5.1.4/src/lcode.c
lua-5.1.4/src/lcode.h
lua-5.1.4/src/ldblib.c
lua-5.1.4/src/ldebug.c
lua-5.1.4/src/ldebug.h
lua-5.1.4/src/ldo.c
lua-5.1.4/src/ldo.h
lua-5.1.4/src/lfunc.c
lua-5.1.4/src/lfunc.h
lua-5.1.4/src/lgc.c
lua-5.1.4/src/lgc.h
lua-5.1.4/src/linit.c
lua-5.1.4/src/liolib.c
lua-5.1.4/src/llex.c
lua-5.1.4/src/llex.h
lua-5.1.4/src/llimits.h
lua-5.1.4/src/lmathlib.c
lua-5.1.4/src/lmem.c
lua-5.1.4/src/lmem.h
lua-5.1.4/src/loadlib.c
lua-5.1.4/src/lobject.c
lua-5.1.4/src/lobject.h
lua-5.1.4/src/lopcodes.c
lua-5.1.4/src/lopcodes.h
lua-5.1.4/src/loslib.c
lua-5.1.4/src/lparser.c
lua-5.1.4/src/lparser.h
lua-5.1.4/src/lstate.c
lua-5.1.4/src/lstate.h
lua-5.1.4/src/lstring.c
lua-5.1.4/src/lstring.h
lua-5.1.4/src/lstrlib.c
lua-5.1.4/src/ltable.c
lua-5.1.4/src/ltable.h
lua-5.1.4/src/ltablib.c
lua-5.1.4/src/ltm.c
lua-5.1.4/src/ltm.h
lua-5.1.4/src/lua.c
lua-5.1.4/src/lua.h
lua-5.1.4/src/luaconf.h
lua-5.1.4/src/lualib.h
lua-5.1.4/src/lvm.c
lua-5.1.4/src/lvm.h
lua-5.1.4/src/lzio.c
lua-5.1.4/src/lzio.h
lua-5.1.4/src/ldump.c
lua-5.1.4/src/luac.c
lua-5.1.4/src/lundump.c
lua-5.1.4/src/lundump.h
lua-5.1.4/src/print.c
lua-5.1.4/test/
lua-5.1.4/test/echo.lua
lua-5.1.4/test/life.lua
lua-5.1.4/test/fib.lua
lua-5.1.4/test/factorial.lua
lua-5.1.4/test/luac.lua
lua-5.1.4/test/sort.lua
lua-5.1.4/test/hello.lua
lua-5.1.4/test/README
lua-5.1.4/test/bisect.lua
lua-5.1.4/test/cf.lua
lua-5.1.4/test/xd.lua
lua-5.1.4/test/globals.lua
lua-5.1.4/test/trace-globals.lua
lua-5.1.4/test/trace-calls.lua
lua-5.1.4/test/table.lua
lua-5.1.4/test/fibfor.lua
lua-5.1.4/test/printf.lua
lua-5.1.4/test/env.lua
lua-5.1.4/test/sieve.lua
lua-5.1.4/test/readonly.lua
lua-5.1.4/COPYRIGHT
lua-5.1.4/README
lua-5.1.4/INSTALL
lua-5.1.4/HISTORY
cd src && make linux
make[1]: Entering directory `/tmp/SBo/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
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
make[2]: *** [lapi.o] Error 1
make[2]: Leaving directory `/tmp/SBo/lua-5.1.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/tmp/SBo/lua-5.1.4/src'
make: *** [linux] Error 2
 
Old 04-10-2012, 03:09 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
FYI, slackbuilds.org offers 5.1.5

I would check if you have, by any chance, installed some x86_64 packages on a 32bit slack
Code:
ls /var/log/packages/*x86_64*
or are you using a 64bit kernel on a 32 bit installation? you can check with "uname -m".
 
1 members found this post helpful.
Old 04-10-2012, 03:24 PM   #3
Agre551on
LQ Newbie
 
Registered: Apr 2012
Location: Kansas City, MO
Distribution: Slackware 13.37
Posts: 5

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by ponce View Post
FYI, slackbuilds.org offers 5.1.5

I would check if you have, by any chance, installed some x86_64 packages on a 32bit slack
Code:
ls /var/log/packages/*x86_64*
or are you using a 64bit kernel on a 32 bit installation? you can check with "uname -m".
Its a 64 bit kernel with a 64 bit installation im sure, as ive had zero problems with anything else besides installing the lua.


Code:
root@Agression:/home/brad/Downloads/lua# uname -m
x86_64
Going to try and see if the 5.1.5 gives me a different outcome, I will update in a bit. thanks for the quick response too!
 
Old 04-10-2012, 03:29 PM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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
 
1 members found this post helpful.
Old 04-10-2012, 03:52 PM   #5
Agre551on
LQ Newbie
 
Registered: Apr 2012
Location: Kansas City, MO
Distribution: Slackware 13.37
Posts: 5

Original Poster
Rep: Reputation: Disabled
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

Thanks for the assistance here as well.
 
Old 04-10-2012, 03:56 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
I created another user account, installed from there flawlessly
sorry, another root account?
or, you know you should become root with "su -", right (so that the root user gets his own environment)?

BTW, in these cases you can also try forcing the ARCH variable passing it to the script, like
Code:
ARCH=x86_64 ./lua.SlackBuild
check the environment with set
Code:
set | grep ARCH

Last edited by ponce; 04-10-2012 at 04:04 PM.
 
1 members found this post helpful.
Old 04-10-2012, 04:30 PM   #7
Agre551on
LQ Newbie
 
Registered: Apr 2012
Location: Kansas City, MO
Distribution: Slackware 13.37
Posts: 5

Original Poster
Rep: Reputation: Disabled
No, another user account, the code I had posted was after I had used su. Sorry for the confusion there.

I have not deleted the problem account yet, and will give your suggestion a shot, and post the results, incase anyone else runs across this problem.

Thanks Again!
 
Old 04-10-2012, 04:41 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by Agre551on View Post
I had used su
and not "su -", I bet it's this.

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.
 
1 members found this post helpful.
Old 04-10-2012, 09:03 PM   #9
Agre551on
LQ Newbie
 
Registered: Apr 2012
Location: Kansas City, MO
Distribution: Slackware 13.37
Posts: 5

Original Poster
Rep: Reputation: Disabled
Code:
Package lua-5.1.5-x86_64-1_SBo.tgz installed.
Yes! The problem was that I was using su and not su -, I had no idea how much of a difference that makes.

Thanks! you just saved my user account from death haha
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Via C7-D x86-64 instruction set shepper Linux - Kernel 1 02-18-2011 12:24 PM
Compile/Run problem w/ Compiz Fusion- Illegal Instruction Set Error dman777 Linux - Software 0 01-01-2011 03:40 PM
About Intel CPU rdtsc instruction lonelygoat Programming 5 01-28-2010 11:47 PM
Configure error of PHP 5.2.6 with mysql support on RHEL 5.2 x86-64 the_gripmaster Linux - Server 4 07-02-2008 12:03 PM
How is Intel SSSE3,x86-64 and all previous instruction set is used AbhishekSlam Programming 5 07-21-2007 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration