Gentoo Archives: gentoo-dev

From: Daniel Robbins <drobbins@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] bad arch-flag when building
Date: Fri, 31 Aug 2001 20:11:15
Message-Id: 20010831201115.A5991@cvs.gentoo.org
In Reply to: [gentoo-dev] bad arch-flag when building by Mikael Hallendal
1 On Sat, Sep 01, 2001 at 03:09:49AM +0000, Mikael Hallendal wrote:
2 > Hi!
3 >
4 > gcc -c -I. -I/usr/X11R6/include -Dlinux -D__i386__
5 > -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
6 > -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DHAS_WCHAR_H
7 > -DHAS_WCTYPE_H -DNO_WIDEC_H -mpentiumpro -march=1 -O3 -pipe
8 > AllWidgets.c -o unshared/AllWidgets.o
9 > rm -f AsciiSink.o unshared/AsciiSink.o
10 >
11 > I get this error (-march=1 instead of -march=pentiumpro) when building
12 > some ebuilds (gv, xfree). Anyone seen this and know how to fix it?
13
14 Yes, it appears to be some kind of Makefile or xmkmf bug. You should use the
15 new options (-march=i686, -mcpu=i686) instead of the old ones
16 (-march=pentiumpro, -mpentiumpro) and the problem will go away.
17
18 Best Regards,
19
20 --
21 Daniel Robbins <drobbins@g.o>
22 Chief Architect/President http://www.gentoo.org
23 Gentoo Technologies, Inc.