From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5054 invoked by alias); 26 Feb 2007 19:12:08 -0000 Received: (qmail 5043 invoked by uid 22791); 26 Feb 2007 19:12:03 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Feb 2007 19:11:57 +0000 Received: by wx-out-0506.google.com with SMTP id t13so1400517wxc for ; Mon, 26 Feb 2007 11:11:55 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bf/yrNdb5Qm8Q3lDBuDml52Y8feimp8KQox/8kWMcGbTiBexmqBQkdf7EqWneXyDxA8QqsP0TmuvPiax3Bmwu4bo52deZfi9NIEui55ToR0/RTrdIvI70nQjbcjBPVEGqR8lGPoziEPOOamjIXED1+bEKWJ7bXfdeSjdyjKr8qw= Received: by 10.90.25.3 with SMTP id 3mr5200197agy.1172517115161; Mon, 26 Feb 2007 11:11:55 -0800 (PST) Received: by 10.90.66.11 with HTTP; Mon, 26 Feb 2007 11:11:54 -0800 (PST) Message-ID: <81c474d20702261111k209b4633hd855a3a3f2335089@mail.gmail.com> Date: Mon, 26 Feb 2007 19:12:00 -0000 From: "Michael Ambrus" To: "Dave Brolley" Subject: Re: Building SID Cc: "Frank Ch. Eigler" , sid@sourceware.org In-Reply-To: <45E32CC0.8080901@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <81c474d20702251137j3e65f89aidf58a2e4cf019252@mail.gmail.com> <20070226002136.GA19131@redhat.com> <45E30A3C.8060209@redhat.com> <81c474d20702260951ub995838w7c359687fdc62fc8@mail.gmail.com> <45E32CC0.8080901@redhat.com> X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00031.txt.bz2 On 2/26/07, Dave Brolley wrote: > Michael Ambrus wrote: > > I've got the files thanx. They seem broken however.... > > > > The following is the first place where it breaks (I noticed that the > > build system will not respect neither 'make -S' nor 'export > > MAKEFLAGS="-S" && make' - it seems that the recursive build is using > > 'make -k' no matter what I do). > > > > ../../../../src/sid/component/cgen-cpu/sh/sh2.h:16: error: > > 'sh_common_model' was not declared in this scope > > ../../../../src/sid/component/cgen-cpu/sh/sh2.h:16: error: wrong > > number of template arguments (8, should be 5) > Compiles fine for me using > > >> gcc --version > gcc (GCC) 4.1.2 20060612 (prerelease) (GNUPro 06r1) > > I can't tell for sure, because I don't know which file you were > compiling at the time, but it looks to me like sh_common_model is in the > global namespace, so I'm not sure why it can't be found. Perhaps a > Oh sorry, here comes a longer version of the breaking: make[7]: Entering directory `/home/ambrmi09/projects/sid/_BUILD/sid/component/cgen-cpu' if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/sid/component/cgen-cpu -I. -I. -I.. -I../../../../src/sid/component/cgen-cpu/arm7t -I../../../../src/sid/component/cgen-cpu/m32r -I../../../../src/sid/component/cgen-cpu/mep -I../../../../src/sid/component/cgen-cpu/mt -I../../../../src/sid/component/cgen-cpu/sh -I../../../../src/sid/component/cgen-cpu/xstormy16 -I../../include -I../../../../src/sid/component/cgen-cpu/../../include -I../../../bfd -I../../../../src/sid/component/cgen-cpu/../../../include -g -O2 -MT compCGEN.lo -MD -MP -MF ".deps/compCGEN.Tpo" -c -o compCGEN.lo ../../../../src/sid/component/cgen-cpu/compCGEN.cxx; \ then mv -f ".deps/compCGEN.Tpo" ".deps/compCGEN.Plo"; else rm -f ".deps/compCGEN.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I../../../../src/sid/component/cgen-cpu -I. -I. -I.. -I../../../../src/sid/component/cgen-cpu/arm7t -I../../../../src/sid/component/cgen-cpu/m32r -I../../../../src/sid/component/cgen-cpu/mep -I../../../../src/sid/component/cgen-cpu/mt -I../../../../src/sid/component/cgen-cpu/sh -I../../../../src/sid/component/cgen-cpu/xstormy16 -I../../include -I../../../../src/sid/component/cgen-cpu/../../include -I../../../bfd -I../../../../src/sid/component/cgen-cpu/../../../include -g -O2 -MT compCGEN.lo -MD -MP -MF .deps/compCGEN.Tpo -c ../../../../src/sid/component/cgen-cpu/compCGEN.cxx -fPIC -DPIC -o .libs/compCGEN.o In file included from ../../../../src/sid/component/cgen-cpu/sh/sh_compact.h:9, from ../../../../src/sid/component/cgen-cpu/sh/sh2.h:9, from ../../../../src/sid/component/cgen-cpu/compCGEN.cxx:40: ../../../../src/sid/component/cgen-cpu/sh/sh.h:98:1: warning: "CGEN_CPU_FPU" redefined In file included from ../../../../src/sid/component/cgen-cpu/compCGEN.cxx:33: ../../../../src/sid/component/cgen-cpu/mep/mep_ext2.h:76:1: warning: this is the location of the previous definition ../../../../src/sid/component/cgen-cpu/sh/sh2.h:16: error: 'sh_common_model' was not declared in this scope ../../../../src/sid/component/cgen-cpu/sh/sh2.h:16: error: wrong number of template arguments (8, should be 5) I.e. the file that breaks the build should be compCGEN.cxx (?). > 'using namespace ::' > > is needed before the declaration of sh2_cpu? > > > > : > > : > > Which leads to this: > > > > : > > : > > ../../../../src/sid/component/cgen-cpu/sh/sh4-nofpu-defs.h:22: error: > > forward declaration of 'class sh4_nofpu::sh4_nofpu_cpu' > This forward declaration is intentional. Any idea why it would not be > allowed? I'm not a C++ expert, but I recognize this (or a seemingly similar issue) from before. I'll have look in my notes (if I can find them) and compare the code with yours. In that particular case it was a syntax change of the standard. But since you're using an even newer version of gcc than I do, then this might not be the case here. /Michael