This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building SID


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

'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?
gcc used is the native one for my system which is  i486-linux-gnu
(version 4.0). Note that the standard for forward declarations to
templates has changed (in case you're using an older compiler).



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]