Jump to content
funtoo forums
  • 0

Building for another target architecture


I am building funtoo root images for a different target architecture than the build system and wondering if that is causing some packages to fail to run.


I am starting with a generic subarch: https://www.funtoo.org/Generic_64

And, I modify /etc/make.conf to:


CFLAGS="-march=x86-64 -O2 -pipe"
CXXFLAGS="-march=x86-64 -O2 -pipe"
CPU_FLAGS_X86="mmx mmxext sse sse2"

I do that to hopefully ensure that gcc won't build for my system which is an i7 and the target systems are a 64-bit Intel Atom and a 64-bit AMD netbook processor.  However, I still am unable to run a select few applications as I get invalid opcode during execution (they do run just fine on the system on which I built them).

Am I missing a step to build for a different target architecture?  I don't believe distcc is required here, but all I really want to do is tell gcc not to use march=native which it prefers to do by default.

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...