Gentoo Archives: gentoo-amd64

From: Daniel Gryniewicz <dang@g.o>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Compiler Flag -m64 Gives Warning
Date: Fri, 24 Apr 2009 13:36:49
Message-Id: 1240580224.9998.76.camel@athena.ghs.com
In Reply to: Re: [gentoo-amd64] Compiler Flag -m64 Gives Warning by Volker Armin Hemmann
1 On Fri, 2009-04-24 at 15:19 +0200, Volker Armin Hemmann wrote:
2 > On Freitag 24 April 2009, Frank Peters wrote:
3 > > Hello everyone,
4 > >
5 > > I just switched to Gentoo from another distribution and my
6 > > only regret is that I did not make the switch much earlier.
7 > > Gentoo is a fantastic way of managing Linux and I am grateful
8 > > to all those who have made it possible.
9 > >
10 > > However, as I continue to build my current Linux x64 (amd64)
11 > > system with emerge, there is one minor annoyance that I can't
12 > > eliminate. During each emerge there is a warning message:
13 > >
14 > > * Your CFLAGS contains "-m64" which can break packages.
15 > > * Your CXXFLAGS contains "-m64" which can break packages.
16 > >
17 > > My system is no-multilib; it is a pure 64-bit system. The
18 > > "-m64" compiler flag will not, and does not, adversely affect
19 > > the system in any way.
20 > >
21 > > As I mentioned, this warning is merely an annoyance, but it
22 > > does slow down the emerge process for several seconds as
23 > > the program pauses to give sufficient time for the warning
24 > > message to be read. If a large number of packages is being
25 > > emerged, this can add up to a lot of time.
26 > >
27 > > Is there some way I can eliminate this warning without removing
28 > > the "-m64" option?
29 > >
30 > > Frank Peters
31 >
32 > remove the -m64 option because it is not needed at all. In fact, multilib or
33 > no multilib does not make any difference. Remove that flag.
34 >
35
36 To further elaborate: Portage takes care of passing -m32 and -m64 as
37 necessary. Since you have a no-multilib system, it will never pass -m32
38 (and actually, never -m64 either, since we use a x86_64 compiler by
39 default) and everything will be fine.
40
41 That warning is there to keep people from overriding portage and
42 breaking things.
43
44 Daniel

Replies

Subject Author
Re: [gentoo-amd64] Compiler Flag -m64 Gives Warning Frank Peters <frank.peters@×××××××.net>