View previous topic :: View next topic |
Author |
Message |
Intangir Tux's lil' helper
Joined: 16 Sep 2005 Posts: 96
|
Posted: Sat Dec 31, 2005 11:52 pm Post subject: Building 32 bit apps on AMD64? |
|
|
i am trying to build a project i downloaded off of a CVS
it has linux build files, but when i run them i get this error:
error: CPU you selected does not support x86-64 instruction set
do i have to get a 32 bit compiler or.. what, its make file has args in there -mcpu=i686 -march=i586
so.. what do i do |
|
Back to top |
|
|
Jogie214 Apprentice
Joined: 15 Aug 2004 Posts: 159 Location: Cologne / Germany
|
Posted: Sun Jan 01, 2006 5:48 am Post subject: |
|
|
Hi!
Have you set the usefalg multilib? If so, try
LDFLAGS -m32
FLAGS -m32.
Seb _________________ Desktop: Ryzen7 1700x / x370 / Radeon RX 550 / Gentoo amd64 |
|
Back to top |
|
|
Intangir Tux's lil' helper
Joined: 16 Sep 2005 Posts: 96
|
Posted: Mon Jan 02, 2006 9:36 pm Post subject: |
|
|
thanks that is exactly what i needed
i had to get all the 32bit libs
it finally built but now its crashing when i run |
|
Back to top |
|
|
hvengel Guru
Joined: 19 Sep 2004 Posts: 515
|
Posted: Wed Jan 04, 2006 11:48 pm Post subject: |
|
|
I ran into one app that had a makefile that basically said if this is a Linux machine then -march=i586
I manually removed that code from the make file so that my OS defaults (x86_64) would be used and it built and ran fine on my amd64 machine. I emailed the author and his reply was basically that he had put that in for testing and had left it in by mistake and that he had now updated his tarball with the corrected code. So unless there is a reason to build it as 32 bit code just fix the Makefile. |
|
Back to top |
|
|
|