[Mono-devel-list] Building mcs with generics profile

Alan Jenkins sourcejedi at phonecoop.coop
Wed Feb 4 15:37:39 EST 2004


On Wed, 2004-02-04 at 19:05, Miguel de Icaza wrote:
> Hello!
> 
> > Is this my problem, is the makefile at fault, or should gmcs.exe be
> > provided (like mcs.exe is, from the mono package)?
> 
> This is a small buglet.
> 
> Please type:
> 
> 	cd mcs-0.30/gmcs
> 	make
> 
> And then resume the build.

Oops!
I did actually try doing that, but I left that out of my original
email.  I had pretty much the same error:

src at nova:~/mcs-0.30> cd gmcs/
src at nova:~/mcs-0.30/gmcs> make
MONO_PATH="../class/lib:$MONO_PATH" mono  --debug ../gmcs/gmcs.exe  
-d:NET_1_1 -d:NET_1_2 -d:GENERICS -2 -g /target:exe /out:gmcs.exe
AssemblyInfo.cs anonymous.cs assign.cs attribute.cs driver.cs
cs-tokenizer.cs cfold.cs class.cs codegen.cs const.cs constant.cs
convert.cs decl.cs delegate.cs enum.cs ecore.cs expression.cs
flowanalysis.cs generic.cs interface.cs iterators.cs literal.cs
location.cs modifiers.cs namespace.cs parameter.cs pending.cs report.cs
rootcontext.cs statement.cs support.cs typemanager.cs symbolwriter.cs
tree.cs cs-parser.cs
cannot open assembly ../gmcs/gmcs.exe
make: *** [gmcs.exe] Error 2
src at nova:~/mcs-0.30/gmcs> 

Thats why I said it fails because it tries to compile the source for
gmcs.exe using gmcs.exe.  I guess I should read my emails more
carefully.

I can't use the default profile to compile gmcs either - the default
corlib is missing all the generic stuff:

src at nova:~/mcs-0.30/gmcs> make
mcs   -d:NET_1_1 -d:ONLY_1_1 -g /target:exe /out:gmcs.exe
AssemblyInfo.cs anonymous.cs assign.cs attribute.cs driver.cs
cs-tokenizer.cs cfold.cs class.cs codegen.cs const.cs constant.cs
convert.cs decl.cs delegate.cs enum.cs ecore.cs expression.cs
flowanalysis.cs generic.cs interface.cs iterators.cs literal.cs
location.cs modifiers.cs namespace.cs parameter.cs pending.cs report.cs
rootcontext.cs statement.cs support.cs typemanager.cs symbolwriter.cs
tree.cs cs-parser.cs
decl.cs(403) error CS0117: `System.Type' does not contain a definition
for `IsGenericParameter'

....

typemanager.cs(1472) error CS0117: `System.Type' does not contain a
definition for `IsGenericInstance'
Compilation failed: 28 error(s), 3 warnings
make: *** [gmcs.exe] Error 1

I think there's a circular dependancy here - and unlike that of mcs, it
is not resolved by installing the mono package first.

Thanks
	Alan



More information about the Mono-devel-list mailing list