Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Building 32 bit apps on AMD64?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Intangir
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 96

PostPosted: Sat Dec 31, 2005 11:52 pm    Post subject: Building 32 bit apps on AMD64? Reply with quote

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
View user's profile Send private message
Jogie214
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 159
Location: Cologne / Germany

PostPosted: Sun Jan 01, 2006 5:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Intangir
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2005
Posts: 96

PostPosted: Mon Jan 02, 2006 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
hvengel
Guru
Guru


Joined: 19 Sep 2004
Posts: 515

PostPosted: Wed Jan 04, 2006 11:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum