Build-bot host compiler upgrades and C++11!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Build-bot host compiler upgrades and C++11!

Chandler Carruth
Greetings, starting a new thread and CC-ing all the folks I could think of that are likely running bots for LLVM. If I've missed any, sorry, please add them.

As lots of folks have been mentioning, it's time to switch LLVM (and most subprojects) to use C++11. The first step is establishing a new baseline of compiler versions that are supported[1]:

MSVC 2012
GCC 4.7
Clang 3.1

If you are helping to keep our build bot infrastructure running and up-to-date, please check the host compiler versions and reply here if you're going to have trouble upgrading. My rough plan based on chatting with some folks is to submit checks to cmake and configure on Monday to produce an error on older toolchains without some flag to force old toolchain support.

So reply to this thread if you need more time, or if all your bots are ready-to-go! Thanks a bunch!
-Chandler


[1]: Most of these compilers were available in the middle (June) of 2012, and based on the planned 3.5 release time frame of the middle of 2014, that will mean a roughly two year spread of compiler releases. MSVC 2012 was later, but the community seems comfortable with requiring the upgrade. Also, these versions include very significant improvements that make adopting C++11 features much more viable. This was discussed at some length on the mailing list, and I'm not really trying to re-open debate here, just reminding folks. =]

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Tobias Grosser-5
On 01/07/2014 10:40 AM, Chandler Carruth wrote:

> Greetings, starting a new thread and CC-ing all the folks I could think of
> that are likely running bots for LLVM. If I've missed any, sorry, please
> add them.
>
> As lots of folks have been mentioning, it's time to switch LLVM (and most
> subprojects) to use C++11. The first step is establishing a new baseline of
> compiler versions that are supported[1]:
>
> MSVC 2012
> GCC 4.7
> Clang 3.1
>
> If you are helping to keep our build bot infrastructure running and
> up-to-date, please check the host compiler versions and reply here if
> you're going to have trouble upgrading. My rough plan based on chatting
> with some folks is to submit checks to cmake and configure on Monday to
> produce an error on older toolchains without some flag to force old
> toolchain support.
>
> So reply to this thread if you need more time, or if all your bots are
> ready-to-go! Thanks a bunch!
> -Chandler
>
>
> [1]: Most of these compilers were available in the middle (June) of 2012,
> and based on the planned 3.5 release time frame of the middle of 2014, that
> will mean a roughly two year spread of compiler releases. MSVC 2012 was
> later, but the community seems comfortable with requiring the upgrade.
> Also, these versions include very significant improvements that make
> adopting C++11 features much more viable. This was discussed at some length
> on the mailing list, and I'm not really trying to re-open debate here, just
> reminding folks. =]

OK.

The polly testers & LNT builders as well as the
clang-x86_64-darwin12-nt-O3 builder are running either on gcc 4.7.2 or
on Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn).

Tobias


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

C Bergström
On 01/ 7/14 04:47 PM, Tobias Grosser wrote:

> On 01/07/2014 10:40 AM, Chandler Carruth wrote:
>> Greetings, starting a new thread and CC-ing all the folks I could
>> think of
>> that are likely running bots for LLVM. If I've missed any, sorry, please
>> add them.
>>
>> As lots of folks have been mentioning, it's time to switch LLVM (and
>> most
>> subprojects) to use C++11. The first step is establishing a new
>> baseline of
>> compiler versions that are supported[1]:
>>
>> MSVC 2012
>> GCC 4.7
>> Clang 3.1
>>
>> If you are helping to keep our build bot infrastructure running and
>> up-to-date, please check the host compiler versions and reply here if
>> you're going to have trouble upgrading. My rough plan based on chatting
>> with some folks is to submit checks to cmake and configure on Monday to
>> produce an error on older toolchains without some flag to force old
>> toolchain support.
I'd only ask that you 1) either by default it doesn't error on unknown
compiler and or 2) there's an override to prevent the "check" from
happening at all (or not causing cmake to fail)
---------
This will allow compilers which are compatible, but not in the specific
list above to keep working without issues.

I don't know how easy it would be to test for it, but you may also want
to create a documented policy on minimum libc++ and libstdc++ versions
which are supported. Since clang 3.1 may be on a system which has some
older/newer version and that could impact the c++11 support as well.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Chandler Carruth-2

On Tue, Jan 7, 2014 at 5:11 AM, "C. Bergström" <[hidden email]> wrote:
I'd only ask that you 1) either by default it doesn't error on unknown compiler and or 2) there's an override to prevent the "check" from happening at all (or not causing cmake to fail)

Sorry my wording wasn't sufficiently clear, both of these were always planned for exactly the reason you list.
 
---------
This will allow compilers which are compatible, but not in the specific list above to keep working without issues.

I don't know how easy it would be to test for it, but you may also want to create a documented policy on minimum libc++ and libstdc++ versions which are supported. Since clang 3.1 may be on a system which has some older/newer version and that could impact the c++11 support as well.

Yea, documenting the support for libc++ on Linux may be tough, but it should be easy to cover the rest: libstdc++ should have the same version requirements as GCC, and libc++ on OS X with any sufficiently new version of clang should be good. Still important to document.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

NAKAMURA Takumi
In reply to this post by Chandler Carruth
I am sure http://bb.pgr.jp/ has been C++11 ready.

  - gcc-4.4 and msc16 were dropped.
  - Linux builders use gcc-4.7.2 (SL based homebrew)
  - Introduced mingw-w64-gcc-4.8.1 (for now targeting x64)
  - All CMake builders are configured with LLVM_ENABLE_CXX11=ON.
  - configure will run as-is. expected to follow default option.

a few new builders will come. Working in progress.

Thanks.

2014/1/7 Chandler Carruth <[hidden email]>:

> Greetings, I'm trying CC-ing all the folks I could think of that are likely
> running bots for Clang. If I've missed any, sorry, please add them.
>
> As you may have heard on various lists, it's time to switch Clang (and LLVM)
> to use C++11. The first step is establishing a new baseline of compiler
> versions that are supported[1]:
>
> MSVC 2012
> GCC 4.7
> Clang 3.1
>
> If you are helping to keep our build bot infrastructure running and
> up-to-date, please check the host compiler versions and reply here if you're
> going to have trouble upgrading. My rough plan based on chatting with some
> folks is to submit checks to cmake and configure on Monday to produce an
> error on older toolchains without some flag to force old toolchain support.
>
> So reply to this thread if you need more time, or if all your bots are
> ready-to-go! Thanks a bunch!
> -Chandler
>
>
> [1]: Most of these compilers were available in the middle (June) of 2012,
> and based on the planned 3.5 release time frame of the middle of 2014, that
> will mean a roughly two year spread of compiler releases. MSVC 2012 was
> later, but the community seems comfortable with requiring the upgrade. Also,
> these versions include very significant improvements that make adopting
> C++11 features much more viable. This was discussed at some length on the
> mailing list previously, and I'm not really trying to re-open debate here,
> just reminding folks. =]
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Chandler Carruth
In reply to this post by Chandler Carruth
FYI, this is happening now-ish!


On Tue, Jan 7, 2014 at 1:40 AM, Chandler Carruth <[hidden email]> wrote:
Greetings, starting a new thread and CC-ing all the folks I could think of that are likely running bots for LLVM. If I've missed any, sorry, please add them.

As lots of folks have been mentioning, it's time to switch LLVM (and most subprojects) to use C++11. The first step is establishing a new baseline of compiler versions that are supported[1]:

MSVC 2012
GCC 4.7
Clang 3.1

If you are helping to keep our build bot infrastructure running and up-to-date, please check the host compiler versions and reply here if you're going to have trouble upgrading. My rough plan based on chatting with some folks is to submit checks to cmake and configure on Monday to produce an error on older toolchains without some flag to force old toolchain support.

So reply to this thread if you need more time, or if all your bots are ready-to-go! Thanks a bunch!
-Chandler


[1]: Most of these compilers were available in the middle (June) of 2012, and based on the planned 3.5 release time frame of the middle of 2014, that will mean a roughly two year spread of compiler releases. MSVC 2012 was later, but the community seems comfortable with requiring the upgrade. Also, these versions include very significant improvements that make adopting C++11 features much more viable. This was discussed at some length on the mailing list, and I'm not really trying to re-open debate here, just reminding folks. =]


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Renato Golin-2
Hi Chandler,

I'm still migrating our bots, there were some complications. Can it wait until next week?

cheers,
--renato


On 13 January 2014 22:00, Chandler Carruth <[hidden email]> wrote:
FYI, this is happening now-ish!


On Tue, Jan 7, 2014 at 1:40 AM, Chandler Carruth <[hidden email]> wrote:
Greetings, starting a new thread and CC-ing all the folks I could think of that are likely running bots for LLVM. If I've missed any, sorry, please add them.

As lots of folks have been mentioning, it's time to switch LLVM (and most subprojects) to use C++11. The first step is establishing a new baseline of compiler versions that are supported[1]:

MSVC 2012
GCC 4.7
Clang 3.1

If you are helping to keep our build bot infrastructure running and up-to-date, please check the host compiler versions and reply here if you're going to have trouble upgrading. My rough plan based on chatting with some folks is to submit checks to cmake and configure on Monday to produce an error on older toolchains without some flag to force old toolchain support.

So reply to this thread if you need more time, or if all your bots are ready-to-go! Thanks a bunch!
-Chandler


[1]: Most of these compilers were available in the middle (June) of 2012, and based on the planned 3.5 release time frame of the middle of 2014, that will mean a roughly two year spread of compiler releases. MSVC 2012 was later, but the community seems comfortable with requiring the upgrade. Also, these versions include very significant improvements that make adopting C++11 features much more viable. This was discussed at some length on the mailing list, and I'm not really trying to re-open debate here, just reminding folks. =]



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Chandler Carruth
I've already submitted the changes. I'll sync up with you on IRC and work out how best to proceed.


On Tue, Jan 14, 2014 at 1:15 AM, Renato Golin <[hidden email]> wrote:
Hi Chandler,

I'm still migrating our bots, there were some complications. Can it wait until next week?

cheers,
--renato


On 13 January 2014 22:00, Chandler Carruth <[hidden email]> wrote:
FYI, this is happening now-ish!


On Tue, Jan 7, 2014 at 1:40 AM, Chandler Carruth <[hidden email]> wrote:
Greetings, starting a new thread and CC-ing all the folks I could think of that are likely running bots for LLVM. If I've missed any, sorry, please add them.

As lots of folks have been mentioning, it's time to switch LLVM (and most subprojects) to use C++11. The first step is establishing a new baseline of compiler versions that are supported[1]:

MSVC 2012
GCC 4.7
Clang 3.1

If you are helping to keep our build bot infrastructure running and up-to-date, please check the host compiler versions and reply here if you're going to have trouble upgrading. My rough plan based on chatting with some folks is to submit checks to cmake and configure on Monday to produce an error on older toolchains without some flag to force old toolchain support.

So reply to this thread if you need more time, or if all your bots are ready-to-go! Thanks a bunch!
-Chandler


[1]: Most of these compilers were available in the middle (June) of 2012, and based on the planned 3.5 release time frame of the middle of 2014, that will mean a roughly two year spread of compiler releases. MSVC 2012 was later, but the community seems comfortable with requiring the upgrade. Also, these versions include very significant improvements that make adopting C++11 features much more viable. This was discussed at some length on the mailing list, and I'm not really trying to re-open debate here, just reminding folks. =]



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Tobias Grosser-5
In reply to this post by Chandler Carruth
On 01/07/2014 10:40 AM, Chandler Carruth wrote:

> Greetings, starting a new thread and CC-ing all the folks I could think of
> that are likely running bots for LLVM. If I've missed any, sorry, please
> add them.
>
> As lots of folks have been mentioning, it's time to switch LLVM (and most
> subprojects) to use C++11. The first step is establishing a new baseline of
> compiler versions that are supported[1]:
>
> MSVC 2012
> GCC 4.7
> Clang 3.1
>
> If you are helping to keep our build bot infrastructure running and
> up-to-date, please check the host compiler versions and reply here if
> you're going to have trouble upgrading. My rough plan based on chatting
> with some folks is to submit checks to cmake and configure on Monday to
> produce an error on older toolchains without some flag to force old
> toolchain support.
>
> So reply to this thread if you need more time, or if all your bots are
> ready-to-go! Thanks a bunch!

This change broke the gcc compile farm bots. On the compile farm, gcc is
normally around version 4.4. However, gcc 4.8.2 is available in the
non-default directory /opt/cfarm/gcc-latest/bin

Maybe we can adapt the buildbots to find it there.

@Duncan, do you have time to do so?

Cheers,
Tobias
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Chandler Carruth

On Tue, Jan 14, 2014 at 2:18 AM, Tobias Grosser <[hidden email]> wrote:
This change broke the gcc compile farm bots. On the compile farm, gcc is normally around version 4.4. However, gcc 4.8.2 is available in the non-default directory /opt/cfarm/gcc-latest/bin

Maybe we can adapt the buildbots to find it there.

@Duncan, do you have time to do so?

Just as an FYI, I saw this and chatted with Duncan tonight about fixing. He's looking into it, but may need to delegate it to others.

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Duncan Sands
On 14/01/14 11:22, Chandler Carruth wrote:

>
> On Tue, Jan 14, 2014 at 2:18 AM, Tobias Grosser <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     This change broke the gcc compile farm bots. On the compile farm, gcc is
>     normally around version 4.4. However, gcc 4.8.2 is available in the
>     non-default directory /opt/cfarm/gcc-latest/bin
>
>     Maybe we can adapt the buildbots to find it there.
>
>     @Duncan, do you have time to do so?
>
>
> Just as an FYI, I saw this and chatted with Duncan tonight about fixing. He's
> looking into it, but may need to delegate it to others.

I brought two clang bots back to life, and will look into the others later.

Ciao, Duncan.
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Renato Golin-2
On 14 January 2014 20:20, Duncan Sands <[hidden email]> wrote:
I brought two clang bots back to life, and will look into the others later.

Same here, all three chromebooks are alive and kicking!

cheers,
--renato

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Tobias Grosser-5
In reply to this post by Chandler Carruth
On 01/14/2014 10:26 AM, Chandler Carruth wrote:
> I've already submitted the changes. I'll sync up with you on IRC and work
> out how best to proceed.

This also broke the qualcomm buildbot. I copied Rick who is in charge of it.

Tobias
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Tobias Grosser-5
In reply to this post by Chandler Carruth
On 01/14/2014 10:26 AM, Chandler Carruth wrote:
> I've already submitted the changes. I'll sync up with you on IRC and work
> out how best to proceed.

And the OpenBSD bot. I copied Brad, who is in charge of it.

Cheers,
Tobias

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Chandler Carruth-2
In reply to this post by Renato Golin-2
Thanks to both of you for the quick updates!!! So far, the fallout seems small enough to leave this in and bring the rest of the bots back online when their admins can. Especially with the arm bots and main linux ones restored, I'm not too worried about regressions creeping in.


On Tue, Jan 14, 2014 at 12:24 PM, Renato Golin <[hidden email]> wrote:
On 14 January 2014 20:20, Duncan Sands <[hidden email]> wrote:
I brought two clang bots back to life, and will look into the others later.

Same here, all three chromebooks are alive and kicking!

cheers,
--renato

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

C Bergström
In reply to this post by Chandler Carruth
In the case of Ubuntu - I thought an older version of clang was
available in the repo. Why didn't they just switch the build bot to use
that instead of forcing gcc-4.8.2?
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Build-bot host compiler upgrades and C++11!

Renato Golin-2
On 15 January 2014 11:38, "C. Bergström" <[hidden email]> wrote:
In the case of Ubuntu - I thought an older version of clang was available in the repo. Why didn't they just switch the build bot to use that instead of forcing gcc-4.8.2?

One of the reasons I've gone to all the trouble of upgrading my three bots is that I have a self-hosting bot that already tests clang. If I moved them to clang, we'd probably regress when compiling with GCC. It's rare, but can happen.

Another issue is the libstdc++ that Chandler is also moving forward because of many bugs in C++11 and C++03 libraries.

In the end, if we need to upgrade the libraries, why not upgrade the whole distribution? It's a lot easier, too. ;)

cheers,
--renato

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev