From: Michael Hampicke <gentoo-user@hadt.biz>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ffmpeg - fails to compile on amd64
Date: Mon, 12 Dec 2011 22:09:17 +0100 [thread overview]
Message-ID: <4EE66D7D.8030700@hadt.biz> (raw)
In-Reply-To: <4926919.gxlYKMO5pC@pc>
>> No nothing crazy:
>> CFLAGS="-Os -pipe -mtune=i686"
>
> i686? That's not amd64. You need something 64bit. Just use march=native
> instead of mtune=i686.
Wait, what! I could swear I was reading march=native just a few minutes ago.
mtune=i686 on amd64 just doesn't seem right, but it should compile.
# echo | gcc -dM -E - -march=native
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/cc1 -E -quiet -v -
-D_FORTIFY_SOURCE=2 -mtune=i686 -march=x86-64
gcc sets the correct march even if you set the wrong mtune.
But as Michael says, just use march=native and you should be fine.
next prev parent reply other threads:[~2011-12-12 21:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 19:28 [gentoo-user] ffmpeg - fails to compile on amd64 Joseph
2011-12-12 19:32 ` Michael Hampicke
2011-12-12 20:28 ` Joseph
2011-12-12 20:49 ` Michael Hampicke
2011-12-12 20:52 ` Michael Schreckenbauer
2011-12-12 21:09 ` Michael Hampicke [this message]
2011-12-12 21:15 ` Michael Hampicke
2011-12-13 0:28 ` [gentoo-user] [SOLVED] " Joseph
2011-12-12 19:52 ` [gentoo-user] " Michael Mol
2011-12-12 20:23 ` Joseph
2011-12-12 20:29 ` Dale
2011-12-12 20:43 ` Joseph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE66D7D.8030700@hadt.biz \
--to=gentoo-user@hadt.biz \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox