[Mono-devel-list] mono Cygwin build fail on CSC error CS1904

Rafael Mizrahi rafim at mainsoft.com
Mon Jul 25 08:13:57 EDT 2005


Thanks Kornél and Atsushi,
Indeed, bug 75579 represent my problem, I will increase my Bugzilla usage.

I managed to pass that problem with bootstrapped mcs and mono:
make EXTERNAL_MCS=/usr/local/bin/mcs EXTERNAL_RUNTIME=/usr/local/bin/mono

but failed on :
=========================
make[8]: Entering directory `/monobuild/mcs/class/System.Configuration'
MONO_PATH="../../class/lib/net_2_0;$MONO_PATH" /monobuild/mono/runtime/mono-wrapper  ../../gmcs/gmcs.exe  /nologo /optimize -d:NET_1_1 -d:NET_2_0 /debug+ /debug:full /noconfig /r:mscorlib.dll /r:System.dll /r:System.Xml.dll /target:library
/out:../../class/lib/net_2_0/System.Configuration.dll  @../../build/deps/net_2_0_System.Configuration.dll.response
System.Configuration\InternalConfigurationRoot.cs(71) warning CS0067: The event`System.Configuration.InternalConfigurationRoot.ConfigChanged' is never used
error CS0016: Could not write to file `../../class/lib/net_2_0/System.Configuration.dll', cause: Sharing violation on path ../../class/lib/net_2_0\System.Configuration.dll
Compilation failed: 1 error(s), 1 warnings
make[8]: *** [../../class/lib/net_2_0/System.Configuration.dll] Error 1
make[8]: Leaving directory `/monobuild/mcs/class/System.Configuration'
=========================

I searched bugzilla for "CS0016" and find nothing that much my situation.
Should I file a new bug?

Rafi
Mainsoft

-----Original Message-----
From: Kornél Pál [mailto:kornelpal at hotmail.com] 
Sent: Sunday, July 24, 2005 8:16 PM
To: Atsushi Eno; Rafael Mizrahi
Cc: bmaurer at ximian.com; Mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] mono Cygwin build fail on CSC error CS1904

Hi,

Look at:
http://bugzilla.ximian.com/show_bug.cgi?id=75579

As I stated in buzilla I was never able to compile Mono using MC csc.exe.

And I allways have to use make EXTERNAL_MCS=/usr/local/bin/mcs
EXTERNAL_RUNTIME=/usr/local/bin/mono instead of simply make on Win32.

I think Mono should either default to mcs on Win32 as well or should support
csc.exe and MS runtime for building.

Kornél

----- Original Message -----
From: Atsushi Eno
To: Rafael Mizrahi
Sent: Sunday, July 24, 2005 7:03 PM
Subject: Re: [Mono-devel-list] mono Cygwin build fail on CSC error CS1904


> Hello,
>
> Rafael Mizrahi wrote:
>> Hi Ben,
>> After updating mono and mcs, I fail to build mono on Cygwin.
>> I have checked with other "mono on Cygwin" users and I am not the only
>> one who experiences this problem.
>> Do we need mcs bootstrap?
>>
>> Here is the log:
>> make[7]: Entering directory `/monobuild/mcs/class/corlib'
>> ../../build/library.make:306: no file name for `-include'
>> make all-local
>> make[8]: Entering directory `/monobuild/mcs/class/corlib'
>> ../../build/library.make:306: no file name for `-include'
>> csc.exe /nowarn:649 /nowarn:169 /nowarn:414 -nowarn:612 -nowarn:618
>> -d:INSIDE_CORLIB /nologo /optimize -d:NET_1_1 -d:ONLY_1_1 /debug+
>> /debug:full /noconfig /unsafe /nostdlib /target:library
>> /out:mscorlib.dll
>> @../../build/deps/net_1_1_bootstrap_corlib.dll.response
>> error CS1904: '414' is not a valid warning number
>
> Maybe we could 1)remove /norwarn:414 and 2)make a change on
> class.cs to not warn 414 when /langversion indicates ISO-1.
>
> Until this problem got fixed (and funky internal error caused by
> csc bug went away), yes you will need mcs bootstrap.
>
> Atsushi Eno




More information about the Mono-devel-list mailing list