Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-17 Thread Koehne Kai

 -Original Message-
 From: Alexey Pavlov [mailto:alex...@gmail.com]
 Sent: Wednesday, January 15, 2014 6:36 PM
 To: mingw-w64-public@lists.sourceforge.net
 Subject: [Mingw-w64-public] Mingw toolchains and Clang
 
 Long time ago we add possibility to build Clang into mingw-builds scripts.
 Now we want to provide Clang builds for mingw-w64 toolchains.
 
 There are two possibilities that we can do:
 1. Include clang builds into toolchain archive 2. Provide separate builds of
 GCC+Clang
 
 I have a question to users what use our toolchains.
 I want you to vote for the best variant of doing that.

I'd like to vote for the separate builds too. I'm especially afraid that having 
the two toolchains in one package / bin folder could confuse users, and tools 
like configure. 

(But I understand as well that creating yet another set of packages for clang 
might be quite some work for you. A compromise could be shipping clang, but in 
a separate folder, like 'clang-experimental\bin' or similar ...)

Regards

Kai

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-16 Thread Abir Basak
 Long time ago we add possibility to build Clang into mingw-builds scripts.
 Now we want to provide Clang builds for mingw-w64 toolchains.

 There are two possibilities that we can do:
 *1. *Include clang builds into toolchain archive
 *2.* Provide separate builds of GCC+Clang

 I have a question to users what use our toolchains.
 I want you to vote for the best variant of doing that.

 I know that some users don't want to have bigger toolchains but I think
 that in modern time it is not a problem because all drives has big volume.


 Regards,
 Alexey.
I would like to see a separate build for GCC + Clang,
I would also like to know
1) if it is now possible to have 64 bit clang with SEH ?
2) If clang can work with a more recent libstdc++ (say 4.7.2  or 4.8 ? )
3) most importantly, can we now debug clang compiled code with gdb ?
(That was not possible with Ruben's build)

I would also like to see
1) some clang tools along with the compiler. like clang-analyzer/
format/modernizer etc ( and include what you want, if possible)
2) debug  release libraries for clang  llvm, so that one can also
use it like Clang C++ SDK to build new tools.

Also in long term i like to see ( I hope it is sorter than i think! )
libc++  lldb working on windows, along with some other clang tools
like Address Sanitizer, Memory Sanitizer etc
Thanks

abir

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-16 Thread Ruben Van Boxem
2014/1/16 Abir Basak abirba...@gmail.com

  Long time ago we add possibility to build Clang into mingw-builds
 scripts.
  Now we want to provide Clang builds for mingw-w64 toolchains.
 
  There are two possibilities that we can do:
  *1. *Include clang builds into toolchain archive
  *2.* Provide separate builds of GCC+Clang
 
  I have a question to users what use our toolchains.
  I want you to vote for the best variant of doing that.
 
  I know that some users don't want to have bigger toolchains but I think
  that in modern time it is not a problem because all drives has big
 volume.
 
 
  Regards,
  Alexey.
 I would like to see a separate build for GCC + Clang,
 I would also like to know
 1) if it is now possible to have 64 bit clang with SEH ?


No.


 2) If clang can work with a more recent libstdc++ (say 4.7.2  or 4.8 ? )


I believe there is a simple fix for that. I'm planning on taking a look at
this.


 3) most importantly, can we now debug clang compiled code with gdb ?
 (That was not possible with Ruben's build)


I haven't checked, but I think something is going wrong on the Clang side
wrt debug info. No idea what or how to check. Ideas welcome.



 I would also like to see
 1) some clang tools along with the compiler. like clang-analyzer/
 format/modernizer etc ( and include what you want, if possible)

2) debug  release libraries for clang  llvm, so that one can also
 use it like Clang C++ SDK to build new tools.


Good idea, although this needs to be seperate from the compiler. I believe
Clang now has an option to only install the compiler.



 Also in long term i like to see ( I hope it is sorter than i think! )
 libc++  lldb working on windows, along with some other clang tools
 like Address Sanitizer, Memory Sanitizer etc


I would guess the Sanitizers should work, but I haven't tested.

libc++ is on my todo list (still needs quite some work, but it passed most
tests at one point, with a very hackish setup, which I am now trying to
improve quite a bit), and lldb will probably not be for this year, if
history is any indication.

Cheers,

Ruben


 Thanks

 abir


 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 Mingw-w64-public mailing list
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-16 Thread Ivan Garramona
2014/1/16 Ruben Van Boxem vanboxem.ru...@gmail.com

 2014/1/16 Abir Basak abirba...@gmail.com

  Long time ago we add possibility to build Clang into mingw-builds
 scripts.
  Now we want to provide Clang builds for mingw-w64 toolchains.
 
  There are two possibilities that we can do:
  *1. *Include clang builds into toolchain archive
  *2.* Provide separate builds of GCC+Clang
 
  I have a question to users what use our toolchains.
  I want you to vote for the best variant of doing that.
 
  I know that some users don't want to have bigger toolchains but I think
  that in modern time it is not a problem because all drives has big
 volume.
 
 
  Regards,
  Alexey.
 I would like to see a separate build for GCC + Clang,
 I would also like to know
 1) if it is now possible to have 64 bit clang with SEH ?


 No.


 2) If clang can work with a more recent libstdc++ (say 4.7.2  or 4.8 ? )


 I believe there is a simple fix for that. I'm planning on taking a look at
 this.


Due to some ABI incompatibilities, Clang 3.4 will only work with older
versions, like 4.6. Clang from svn works with recent
versions. Check this bug
http://llvm.org/bugs/show_bug.cgi?id=18034report. It says it support
enough of the ABI to bootstrap and run all the
tests.


 3) most importantly, can we now debug clang compiled code with gdb ?
 (That was not possible with Ruben's build)


 I haven't checked, but I think something is going wrong on the Clang side
 wrt debug info. No idea what or how to check. Ideas welcome.

 I'm able to debug Clang programs on gdb. Though i've only tested with
trivial programs.


 I would also like to see
 1) some clang tools along with the compiler. like clang-analyzer/
 format/modernizer etc ( and include what you want, if possible)

 2) debug  release libraries for clang  llvm, so that one can also
 use it like Clang C++ SDK to build new tools.


 Good idea, although this needs to be seperate from the compiler. I believe
 Clang now has an option to only install the compiler.



 Also in long term i like to see ( I hope it is sorter than i think! )
 libc++  lldb working on windows, along with some other clang tools
 like Address Sanitizer, Memory Sanitizer etc


 I would guess the Sanitizers should work, but I haven't tested.

 libc++ is on my todo list (still needs quite some work, but it passed most
 tests at one point, with a very hackish setup, which I am now trying to
 improve quite a bit), and lldb will probably not be for this year, if
 history is any indication.

 Cheers,

 Ruben


 Thanks

 abir


 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 Mingw-w64-public mailing list
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public




 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 Mingw-w64-public mailing list
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-15 Thread TOCK Chiu
2014/1/16 Alexey Pavlov alex...@gmail.com

 Long time ago we add possibility to build Clang into mingw-builds scripts.
 Now we want to provide Clang builds for mingw-w64 toolchains.

 There are two possibilities that we can do:
 *1. *Include clang builds into toolchain archive
 *2.* Provide separate builds of GCC+Clang

 I have a question to users what use our toolchains.
 I want you to vote for the best variant of doing that.

 I know that some users don't want to have bigger toolchains but I think
 that in modern time it is not a problem because all drives has big volume.


 Regards,
 Alexey.



Hi, I would like to vote for the first one.
Thanks for your effort!
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-15 Thread Ruben Van Boxem
2014/1/15 Óscar Fuentes o...@wanadoo.es

 Alexey,

 Alexey Pavlov alex...@gmail.com writes:

  Long time ago we add possibility to build Clang into mingw-builds
 scripts.
  Now we want to provide Clang builds for mingw-w64 toolchains.
 
  There are two possibilities that we can do:
  *1. *Include clang builds into toolchain archive

 Please don't. Clang is experimental as a Windows C compiler and useless
 as a Windows C++ compiler. It has its uses, but it is no match for
 gcc/g++ yet. If you include it into the stable toolchain archive,
 uninformed people will waste their time trying it to end being
 frustrated and disparaging MinGW-W64.


Be patient ;-), dllexport for classes is on its way (patches are being
finalized and merged). Then it'll be useful as a 32-bit C++ compiler.
64-bit is still missing EH stuff unfortunately.



  *2.* Provide separate builds of GCC+Clang
 
  I have a question to users what use our toolchains.
  I want you to vote for the best variant of doing that.
 
  I know that some users don't want to have bigger toolchains but I think
  that in modern time it is not a problem because all drives has big
 volume.

 There are still parts of the world with slow and/or limited Internet
 connections and people using old computers.

 Personally, I'm more concerned about potential clashes with the Clang
 binaries that I build. As Clang is experimental and fast-evolving on
 Windows, it makes sense to build it quite frequently from SVN and a
 stable distribution becomes obsolete quite fast (the standard response
 for bug reports against Clang releases on the Clang/LLVM channels is
 use the SVN sources.)


I would also suggest an addon package as I previously built when I was an
active toolchain builder. This is a extract and use kind of thing, and
relied on the main GCC package. I do think a release build would be useful.
Not that much changes on the Windows front, although I have a feeling 3.5
will be a nice one :-)

Anyways, I'm currently working on getting native MinGW-w64 Clang Driver
support written. Unfortunately, there are still bits and pieces
(specifically libgcc, and crtbegin/crtend, and libstdc++/libsupc++ which
depend on a working MinGW-w64 cross-compiler :-(). I'll try to get as much
as possible ironed out, any help on this front (i.e. getting GCC-less
runtime libraries working) is appreciated!

Cheers,

Ruben





 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today.

 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 Mingw-w64-public mailing list
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Mingw toolchains and Clang

2014-01-15 Thread Baruch Burstein
On Wed, Jan 15, 2014 at 7:36 PM, Alexey Pavlov alex...@gmail.com wrote:

 Long time ago we add possibility to build Clang into mingw-builds scripts.
 Now we want to provide Clang builds for mingw-w64 toolchains.

 There are two possibilities that we can do:
 *1. *Include clang builds into toolchain archive
 *2.* Provide separate builds of GCC+Clang

 I have a question to users what use our toolchains.
 I want you to vote for the best variant of doing that.


I would also vote for #2. I am assuming that most of the users of MinGW64,
especially the users of your prebuilt binaries, are just interested in a
compiler that they can use. Bundling 2 compilers together would just make
using the package more confusing. People (including myself) like your
packages because they make using the toolchain much less confusing.

-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public