From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4127 invoked by alias); 3 Nov 2011 22:06:39 -0000 Received: (qmail 3788 invoked by uid 22791); 3 Nov 2011 22:06:37 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SARE_TOWRITE X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Nov 2011 22:06:22 +0000 Received: by gyh4 with SMTP id 4so590013gyh.20 for ; Thu, 03 Nov 2011 15:06:21 -0700 (PDT) Received: by 10.236.114.83 with SMTP id b59mr16187888yhh.10.1320357981655; Thu, 03 Nov 2011 15:06:21 -0700 (PDT) Received: by 10.236.114.83 with SMTP id b59mr16187865yhh.10.1320357981506; Thu, 03 Nov 2011 15:06:21 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id q57sm11444272yhi.22.2011.11.03.15.06.19 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Nov 2011 15:06:20 -0700 (PDT) From: Ian Lance Taylor To: Todd Sayers Cc: Subject: Re: make install fails due to "-Wno-overlength-strings" References: Date: Thu, 03 Nov 2011 22:06:00 -0000 In-Reply-To: (Todd Sayers's message of "Thu, 3 Nov 2011 10:34:23 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-11/txt/msg00032.txt.bz2 Todd Sayers writes: > I'm attempting to install gcc 4.3.6 on RHEL 5.5 x86_64 using the installe= d (default, from Redhat) gcc version 4.1.2.=C2=A0 Everything [except the `m= ake install`] appears to work well.=C2=A0 Only the `make install` of gcc 4.= 3.6 fails.=C2=A0 It dies with this error: > > cc1: error: unrecognized command line option "-Wno-overlength-strings" > > gmp,mpfr, and mpc all compiled without error, passed `make check`, and we= re installed via `make install.`=C2=A0 There were no issues.=C2=A0 GCC 4.3.= 6 compiles without error (make) and passes almost 96,000 tests before `make= check` dies (after >2hrs using -j4).=C2=A0 GCC 4.3.6 was configured=20 > with: > > ../gcc-4.3.6/configure --prefix=3D/foo/HPC_apps/AMD --with-gmp-lib=3D/foo= /HPC_apps/AMD/lib --with-gmp-include=3D/foo/HPC_apps/AMD/include --with-mpf= r-include=3D/foo/HPC_apps/AMD/include --with-mpfr-lib=3D/foo/HPC_apps/AMD/l= ib > > Please note that (per the instructions) I am NOT building in the source d= irectory.=C2=A0 I Googled until I reached the end of the Internet... and, w= ell, after that I decided to write this e-mail.=C2=A0 What gives?=C2=A0 Is = there an environment variable that can be set to force gcc to not attempt t= o use this option (in the configure logs, it discovers that "-Wno-overlengt= h-strings" is not an available option.=C2=A0 WTF? >=20=20=09=09=20=09=20=20=20=09=09=20=20 It sounds like you are saying that you get the error about -Wno-overlength-strings when you run "make install". But running "make install" should not actually compile anything. So something has gone wrong. Perhaps your timestamps are not right, who knows. I would recommend running "make" a couple of times until you are sure that nothing is being recompiled. Then run "make install". If it still fails, show us the last 100 lines or so of make output. Ian