Re: [Mingw-w64-public] Ruben's Clang builds
As a side question, what does Clang development have to do with MinGW64? Aren't these actually competing projects? Only if you take a narrow or literal view of what MinGW-w64 is. I guess the name dates back to when the only open source toolchain worth using was GCC. Good technology is worth playing with; LLVM fits into that category and Clang is getting there on Windows too. For me MinGW-w64 is about being able to compile and run as much open source software on Windows as possible, preferably avoiding closed source at every turn. IMHO the only bad toolchain is a closed source toolchain - like the one you built Clang with ;-) On Tue, Jan 14, 2014 at 6:23 PM, Baruch Burstein bmburst...@gmail.com wrote: On Tue, Jan 14, 2014 at 3:46 PM, Ruben Van Boxem vanboxem.ru...@gmail.com wrote: 2014/1/14 Baruch Burstein bmburst...@gmail.com I am trying to use the Win64 toolchain. I assume I need to unpack the Clang into the same directory as one of your GCC builds? I tried it with the 4.8.0 release (regular, not seh or std::thread, from here http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.8-release/ ), but when I ran `clang` I got a crash message that it can't start because libgcc_s_sjlj-1.dll is missing. Ruben? Oh, in that case, know that C++ support is nonexistent (at least as far as exceptions or the standard library go). That is fine. I only need C support. After playing with this for a while, I found that the process to build Clang+LLVM from source on windows is much easier then it used to be (grab a couple of SVN repos, run CMake, Open in VS, compile. Easy) so that is what I ended up doing, and it works fine for me. Thanks anyway. As a side question, what does Clang development have to do with MinGW64? Aren't these actually competing projects? -- 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] Ruben's Clang builds
2014/1/13 Baruch Burstein bmburst...@gmail.com I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? You also need my GCC 4.6.3-dw2 build available here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-dw2-4.6-release/i686-w64-mingw32-gcc-dw2-4.6.3-2-release-win32_rubenvb.7z The readme on the Clang 3.2 download pagehttp://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.2-release/tells you to do this, but I agree it's not the most obvious place to look. This setup works in as far as Clang 3.2 supports Windows constructs (the most important missing one for this setup being dllexport at class level, which is only relevant for C++). You're also limited to GCC 4.6.3 libstdc++ C++11 library support. But I'm hoping to improve that last one (see below). P.S. The reason I tried using Ruben's older builds and not the current official 3.4 Windows build is that I got the exact same error after using the 3.4 installer. I thought it was because the installer version was only for compiling from within VS. Yes, it seems the Clang binary installer is indeed built with/for VS. If you've got some time (I estimate +/- 2 weeks), I am working on getting Clang to work natively with Binutils (it currently just calls gcc to link), and set up a hackish build so only libstdc++ (and perhaps libgcc) will be used by Clang. And fix it to work with newer libstdc++, and of course merge this upstream. Then I'll start work on using compiler-rt instead of libgcc, then perhaps a bit more for libc++ itself. but that last one is probably very very preliminary. Also depends on the clang-cl work they're doing, I'm hoping for a situation where Clang is able to use the msvcrt C++ runtime code directly (yes, there are C++ symbols exported from msvcrt) without the need for an libsupc++ or libc++abi or something. But that is above me, and depends on other people's work ;-). So stay tuned, MinGW-w64 LLVM goodies are coming! 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
Re: [Mingw-w64-public] Ruben's Clang builds
On Tue, Jan 14, 2014 at 11:03 AM, Ruben Van Boxem vanboxem.ru...@gmail.comwrote: 2014/1/13 Baruch Burstein bmburst...@gmail.com I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? You also need my GCC 4.6.3-dw2 build available here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-dw2-4.6-release/i686-w64-mingw32-gcc-dw2-4.6.3-2-release-win32_rubenvb.7z The readme on the Clang 3.2 download pagehttp://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.2-release/tells you to do this, but I agree it's not the most obvious place to look. Indeed, the Clang 3.2 targeting Win32 download page is not the most obvious place to look when I am downloading the toolchain targeting Win64 ;) ( http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/clang-3.2-release/ ) -- 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] Ruben's Clang builds
I am trying to use the Win64 toolchain. I assume I need to unpack the Clang into the same directory as one of your GCC builds? I tried it with the 4.8.0 release (regular, not seh or std::thread, from here http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.8-release/), but when I ran `clang` I got a crash message that it can't start because libgcc_s_sjlj-1.dll is missing. Ruben? Thanks On Tue, Jan 14, 2014 at 11:38 AM, Baruch Burstein bmburst...@gmail.comwrote: On Tue, Jan 14, 2014 at 11:03 AM, Ruben Van Boxem vanboxem.ru...@gmail.com wrote: 2014/1/13 Baruch Burstein bmburst...@gmail.com I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? You also need my GCC 4.6.3-dw2 build available here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-dw2-4.6-release/i686-w64-mingw32-gcc-dw2-4.6.3-2-release-win32_rubenvb.7z The readme on the Clang 3.2 download pagehttp://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.2-release/tells you to do this, but I agree it's not the most obvious place to look. Indeed, the Clang 3.2 targeting Win32 download page is not the most obvious place to look when I am downloading the toolchain targeting Win64 ;) ( http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/clang-3.2-release/ ) -- ˙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
Re: [Mingw-w64-public] Ruben's Clang builds
2014/1/14 Baruch Burstein bmburst...@gmail.com I am trying to use the Win64 toolchain. I assume I need to unpack the Clang into the same directory as one of your GCC builds? I tried it with the 4.8.0 release (regular, not seh or std::thread, from here http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.8-release/), but when I ran `clang` I got a crash message that it can't start because libgcc_s_sjlj-1.dll is missing. Ruben? Oh, in that case, know that C++ support is nonexistent (at least as far as exceptions or the standard library go). You will *probably* need a x64 gcc 4.6.3-2 build that matches the dw2 version I cited earlier. I should have built these at the same time, but it's been a while so I can't remember. I also have no way of getting that information anymore ;-). Good luck, Ruben Thanks On Tue, Jan 14, 2014 at 11:38 AM, Baruch Burstein bmburst...@gmail.comwrote: On Tue, Jan 14, 2014 at 11:03 AM, Ruben Van Boxem vanboxem.ru...@gmail.com wrote: 2014/1/13 Baruch Burstein bmburst...@gmail.com I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? You also need my GCC 4.6.3-dw2 build available here: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-dw2-4.6-release/i686-w64-mingw32-gcc-dw2-4.6.3-2-release-win32_rubenvb.7z The readme on the Clang 3.2 download pagehttp://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/clang-3.2-release/tells you to do this, but I agree it's not the most obvious place to look. Indeed, the Clang 3.2 targeting Win32 download page is not the most obvious place to look when I am downloading the toolchain targeting Win64 ;) ( http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/clang-3.2-release/ ) -- ˙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 -- 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] Ruben's Clang builds
On Tue, Jan 14, 2014 at 3:46 PM, Ruben Van Boxem vanboxem.ru...@gmail.comwrote: 2014/1/14 Baruch Burstein bmburst...@gmail.com I am trying to use the Win64 toolchain. I assume I need to unpack the Clang into the same directory as one of your GCC builds? I tried it with the 4.8.0 release (regular, not seh or std::thread, from here http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.8-release/), but when I ran `clang` I got a crash message that it can't start because libgcc_s_sjlj-1.dll is missing. Ruben? Oh, in that case, know that C++ support is nonexistent (at least as far as exceptions or the standard library go). That is fine. I only need C support. After playing with this for a while, I found that the process to build Clang+LLVM from source on windows is much easier then it used to be (grab a couple of SVN repos, run CMake, Open in VS, compile. Easy) so that is what I ended up doing, and it works fine for me. Thanks anyway. As a side question, what does Clang development have to do with MinGW64? Aren't these actually competing projects? -- 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
[Mingw-w64-public] Ruben's Clang builds
I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? P.S. The reason I tried using Ruben's older builds and not the current official 3.4 Windows build is that I got the exact same error after using the 3.4 installer. I thought it was because the installer version was only for compiling from within VS. -- ˙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
Re: [Mingw-w64-public] Ruben's Clang builds
You should try Clang 3.4 in MSYS2. On Mon, Jan 13, 2014 at 9:34 PM, Baruch Burstein bmburst...@gmail.com wrote: I am trying to use Ruben's clang builds (clang 3.2). I unpacked the zip and ran `clang64env.cmd`. When I tried compiling a trivial c program, I get the error: fatal error: 'stdio.h' file not found Anyone (Ruben or other) know what the problem is/how to solve this? P.S. The reason I tried using Ruben's older builds and not the current official 3.4 Windows build is that I got the exact same error after using the 3.4 installer. I thought it was because the installer version was only for compiling from within VS. -- ˙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 -- 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