Re: [Mono-dev] Recent C# compiler changes

2011-02-07 Thread Marek Safar
Hello,
 I'm having trouble building today's tarball (20110204). 'mod' fails to build:

make[8]: Entering directory `/xxx/home/baileyj/mono-20110204/mcs/tools/mod'
MCS [net_4_0] mod.exe
error CS0006: Metadata file `./../../class/lib/net_2_0/monodoc.dll'
 could not be found
Compilation failed: 1 error(s), 0 warnings

 Could it be related to the new SDK flag? monodoc.dll does not show up
 under any directory after running make.
I don't think it's related, this looks like you are building 4.0 profile 
only which is not (yet) allowed.

Marek
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-07 Thread Justin Bailey
I tried

  ./configure --with-profile2=yes --with-profile4=yes

and then ran make again - same result. Is that the right way to select
a profile?

On Mon, Feb 7, 2011 at 9:15 AM, Marek Safar marek.sa...@gmail.com wrote:
 Hello,

 I'm having trouble building today's tarball (20110204). 'mod' fails to
 build:

   make[8]: Entering directory
 `/xxx/home/baileyj/mono-20110204/mcs/tools/mod'
   MCS     [net_4_0] mod.exe
   error CS0006: Metadata file `./../../class/lib/net_2_0/monodoc.dll'
 could not be found
   Compilation failed: 1 error(s), 0 warnings

 Could it be related to the new SDK flag? monodoc.dll does not show up
 under any directory after running make.

 I don't think it's related, this looks like you are building 4.0 profile
 only which is not (yet) allowed.

 Marek

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-04 Thread Justin Bailey
I'm having trouble building today's tarball (20110204). 'mod' fails to build:

  make[8]: Entering directory `/xxx/home/baileyj/mono-20110204/mcs/tools/mod'
  MCS [net_4_0] mod.exe
  error CS0006: Metadata file `./../../class/lib/net_2_0/monodoc.dll'
could not be found
  Compilation failed: 1 error(s), 0 warnings

Could it be related to the new SDK flag? monodoc.dll does not show up
under any directory after running make.

On Thu, Feb 3, 2011 at 4:48 AM, Marek Safar marek.sa...@gmail.com wrote:
 Hello,

 In the recent weeks I have made several changes to how Mono C# compiler
 is build and works. With the current master version we no longer use and
 build System.Reflection based C# compilers (gmcs.exe, smcs.exe,
 dmcs.exe). The new C# compiler (called mcs.exe) is based on
 IKVM.Reflection which allows us to build mscorlib independent version of
 C# compiler. The compiler scripts (gmcs, dmcs) are still working just
 internally call different program.

 A new compiler option has been introduced called sdk with 2 values at
 the moment (2, 4). It allows to build against predefined framework
 version without manually specifying mscorlib location when compiling
 directly using mcs compiler. The default value is 4.

 On top of that mcs.exe is now .net 4 application which means you need to
 install mono including .net 4.0 support to be able to compile any C#
 program.

 All changes apply to mono master only and will be part of the following
 Mono's release after 2.10.

 Marek
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello,

In the recent weeks I have made several changes to how Mono C# compiler 
is build and works. With the current master version we no longer use and 
build System.Reflection based C# compilers (gmcs.exe, smcs.exe, 
dmcs.exe). The new C# compiler (called mcs.exe) is based on 
IKVM.Reflection which allows us to build mscorlib independent version of 
C# compiler. The compiler scripts (gmcs, dmcs) are still working just 
internally call different program.

A new compiler option has been introduced called sdk with 2 values at 
the moment (2, 4). It allows to build against predefined framework 
version without manually specifying mscorlib location when compiling 
directly using mcs compiler. The default value is 4.

On top of that mcs.exe is now .net 4 application which means you need to 
install mono including .net 4.0 support to be able to compile any C# 
program.

All changes apply to mono master only and will be part of the following 
Mono's release after 2.10.

Marek
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Robert Jordan
Marek,

On 03.02.2011 13:48, Marek Safar wrote:
 On top of that mcs.exe is now .net 4 application which means you need to
 install mono including .net 4.0 support to be able to compile any C#
 program.

What's the lowest Mono version that can be used to bootstrap
the current git version?

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello,
 install mono including .net 4.0 support to be able to compile any C#
 program.
 What's the lowest Mono version that can be used to bootstrap
 the current git version?
I have not really tested it but Mono 2.4 or newer should work.

Marek
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Miguel de Icaza
Hello Marek,

 A new compiler option has been introduced called sdk with 2 values at
 the moment (2, 4). It allows to build against predefined framework
 version without manually specifying mscorlib location when compiling
 directly using mcs compiler. The default value is 4.

Although I mentioned this on IRC, I am not sure if you ever saw it.

Is it possible to instead of using a set of preconfigured numbers for
the SDK, that we could provide a string, so that:

-sdk:STRING

Makes mcs look in $prefix/lib/mono/STRING

That way we do not hardcode the constant, and we can have different
profiles just by building that directory and invoking the compiler
with that option.

Miguel
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Rodrigo B. de Oliveira
On Thu, Feb 3, 2011 at 2:06 PM, Miguel de Icaza mig...@novell.com wrote:
 ...
 Is it possible to instead of using a set of preconfigured numbers for
 the SDK, that we could provide a string, so that:

 -sdk:STRING

 Makes mcs look in $prefix/lib/mono/STRING

 That way we do not hardcode the constant, and we can have different
 profiles just by building that directory and invoking the compiler
 with that option.


+1
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Rafael Teixeira
I think both ways should be supported.

If it starts with a number and is a valid constant, use it. (easier
for people building interactively in the command line), but for any
other pattern try to just concat as suggested (easier for makefiles
and to support custom frameworks)

Just my two cents,

Rafael Monoman Teixeira
---
We live in a world operated by science and technology. We have also
arranged things so that almost no one understands science and
technology. This is a prescription for disaster. We might get away
with it for a while, but sooner or later this combustible mixture of
ignorance and power is going to blow up in our faces.
-Carl Sagan



On Thu, Feb 3, 2011 at 2:11 PM, Rodrigo B. de Oliveira
rodrigobam...@gmail.com wrote:
 On Thu, Feb 3, 2011 at 2:06 PM, Miguel de Icaza mig...@novell.com wrote:
 ...
 Is it possible to instead of using a set of preconfigured numbers for
 the SDK, that we could provide a string, so that:

 -sdk:STRING

 Makes mcs look in $prefix/lib/mono/STRING

 That way we do not hardcode the constant, and we can have different
 profiles just by building that directory and invoking the compiler
 with that option.


 +1
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent C# compiler changes

2011-02-03 Thread Marek Safar
Hello,
 I think both ways should be supported.

 If it starts with a number and is a valid constant, use it. (easier
 for people building interactively in the command line), but for any
 other pattern try to just concat as suggested (easier for makefiles
 and to support custom frameworks)
Yes, I'll implement it along these lines.

Marek
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list