From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29683 invoked by alias); 20 Jan 2011 20:04:07 -0000 Received: (qmail 29671 invoked by uid 22791); 20 Jan 2011 20:04:06 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Jan 2011 20:04:02 +0000 Received: by iwn8 with SMTP id 8so970109iwn.20 for ; Thu, 20 Jan 2011 12:04:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.174.198 with SMTP id w6mr3161726icz.135.1295553841113; Thu, 20 Jan 2011 12:04:01 -0800 (PST) Received: by 10.42.230.66 with HTTP; Thu, 20 Jan 2011 12:04:01 -0800 (PST) In-Reply-To: <4D386FB7.1010407@web.de> References: <4D36F9D6.5020400@web.de> <4D36FCFC.1000907@acri-st.fr> <4D37089F.50700@web.de> <4D371361.9010609@web.de> <4D3713C3.2040705@redhat.com> <4D371A80.4020604@web.de> <4D371B3E.1090905@redhat.com> <4D37457B.2020003@web.de> <4D375CB5.4010602@caviumnetworks.com> <4D383EFF.1040503@web.de> <4D386FB7.1010407@web.de> Date: Thu, 20 Jan 2011 20:04:00 -0000 Message-ID: Subject: Re: Compiling gcc-4.1.2 on 64-bit Ubuntu machines From: Jonathan Wakely To: Olumide <50295@web.de> Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00317.txt.bz2 On 20 January 2011 17:24, Olumide wrote: > > I've also to compile a sample plugin following the instructions here > http://download.autodesk.com/us/maya/2011help/index.html?url=./files/API_Writing_a_simple_plugin.htm,topicNumber=d0e657386 > , but I got the error message: > error: CPU you selected does not support x86-64 instruction set > > I was able to compile and link sample plugin after I removed -mtune=pentium4 > flag. You can't use -mtune=pentium4 when compiling a 64-bit object, which is the default on x86_64. If you want to compile a 32-bit object tuned for pentium4 you should use -m32 -mtune=pentium4