roll clang 138187:138188
(Rolling just 1 revision because something farther on seems to tickle an ld crash, but I'd like to get the rest of this CL in.)
Also pass --disable-threads and --disable-pthreads to configure, for goma.
Also modify the script to try to download prebuilt binaries first. This is faster,
and makes sure the bots use the exact same binary as goma. The binaries are
downloaded from http://commondatastorage.googleapis.com/chromium-browser-clang/index.html
Also add a script that packages a clang build up into a tgz for uploading with
gsutil, based on code by ukai@.
Finally, if the svn checkout fails, remove the destination directory and try
again (for bots that have a checkout from before we had an internal llvm svn
mirror).
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98416
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98541
Thoughts, suggestions, and questions for when you recommit this. http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package.sh File tools/clang/scripts/package.sh (right): http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package.sh#newcode24 tools/clang/scripts/package.sh:24: ...
9 years, 4 months ago
(2011-08-26 16:55:19 UTC)
#5
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package.sh File tools/clang/scripts/package.sh (right): http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package.sh#newcode24 tools/clang/scripts/package.sh:24: rm -rf $PDIR On 2011/08/26 16:55:19, Mark Mentovai wrote: ...
9 years, 4 months ago
(2011-08-27 05:25:33 UTC)
#6
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package.sh
File tools/clang/scripts/package.sh (right):
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package....
tools/clang/scripts/package.sh:24: rm -rf $PDIR
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> It’s wise to always use this as "${PDIR}" instead of $PDIR.
Done.
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/package....
tools/clang/scripts/package.sh:53: echo gsutil cp -a public-read $PDIR.tgz \
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> What sort of access control do we have on this?
Everyone can read, only people with Magic Permissions handed out by nsylvain can
write.
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.sh
File tools/clang/scripts/update.sh (right):
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.s...
tools/clang/scripts/update.sh:39:
CDS_URL=http://commondatastorage.googleapis.com/chromium-browser-clang
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> Can you skip the “try to download binary” step if a special environment
variable
> is set? Maybe stick this entire block inside
>
> if [[ -z "${CLANG_FORCE_BUILD_FROM_SOURCE}" ]]; then
I wanted to add some flag for that, and I'm waiting on
http://codereview.chromium.org/7741026/ to land so that I can build on the flag
processing code in their.
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.s...
tools/clang/scripts/update.sh:41: echo Trying to download prebuilt clang
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> It’s good practice to quote the entire string you’re passing to echo. Also in
> cases like the ones you have on lines 51 and 55, you can put the quotes around
> the entire string you want to print, not just around ${CLANG_REVISION}.
Done.
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.s...
tools/clang/scripts/update.sh:42: if [ "$(uname -s)" = "Linux" ]; then
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> You run |uname -s| repeatedly to check the same thing. Just run it once and
save
> the result in a variable.
It's cheap to run and its result is unlikely to change.
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.s...
tools/clang/scripts/update.sh:64: echo Checkout failed, retrying
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> Why do you retry this one but not the one to check out tools/clang?
clang's checked out to llvm/tools/clang. It's very unlikely that one checkout is
from the internal mirror and the other isn't (since llvm is checked out first,
and since LLVM_REPO_URL doesn't change during the execution of this script, it
can only happen if someone mucks around manually on the bots)
http://codereview.chromium.org/7741039/diff/8016/tools/clang/scripts/update.s...
tools/clang/scripts/update.sh:88: --disable-threads \
On 2011/08/26 16:55:19, Mark Mentovai wrote:
> Curious about what GOMA’s requirements are that make this necessary.
They run gcc in a fake chrooted sandbox, and I'm guessing that sandbox doesn't
permit threads.
> Also curious about what impact this has on the built-up compiler.
Me too! If I read the source correctly, the only effect of this is to replace
all methods on llvm's Mutex class with no-ops. This class isn't used at all in
tools/clang, and is only used in the JIT part of llvm (I think). I don't think
clang uses multiple threads when compiling.
I relanded this CL with a clang revision increment of 1, so if ld crashes again
on the waterfall, it's pretty likely it's caused by this configure change. So
far, everything looks good though.
Nico
> I relanded this CL with a clang revision increment of 1, so if ld ...
9 years, 3 months ago
(2011-08-28 00:53:29 UTC)
#7
> I relanded this CL with a clang revision increment of 1, so if ld crashes
again
> on the waterfall, it's pretty likely it's caused by this configure change. So
> far, everything looks good though.
I tracked down the ld crash, it's caused by this clang revision:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110822/045707.html
(see the tryjob results at http://codereview.chromium.org/7777001/ )
It looks like the crash is present with Xcode 3.2.2's ld, but fixed in Xcode
3.2.3's ld. (At least, I see the crash on the bots but not locally, and I have a
newer ld locally.) What's the best way forward here? Require people and bots to
use 3.2.3? Do you know how difficult it is to upgrade Xcode on the bots?
Mark Mentovai
thakis@chromium.org wrote: >> I relanded this CL with a clang revision increment of 1, so ...
9 years, 3 months ago
(2011-08-28 03:33:24 UTC)
#8
thakis@chromium.org wrote:
>> I relanded this CL with a clang revision increment of 1, so if ld crashes
>
> again
>>
>> on the waterfall, it's pretty likely it's caused by this configure change.
>> So
>> far, everything looks good though.
>
> I tracked down the ld crash, it's caused by this clang revision:
>
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110822/045707.html
> (see the tryjob results at http://codereview.chromium.org/7777001/ )
>
> It looks like the crash is present with Xcode 3.2.2's ld, but fixed in Xcode
> 3.2.3's ld. (At least, I see the crash on the bots but not locally, and I
> have a newer ld locally.) What's the best way forward here? Require people and
bots
> to use 3.2.3? Do you know how difficult it is to upgrade Xcode on the bots?
Bev, can you tell us which Xcode version the bots are using? We should
be on 3.2.6. I know we talked about this back in April but I’m not
sure if the upgrades were rolled out to the entire fleet.
bevc
On Sat, Aug 27, 2011 at 8:33 PM, Mark Mentovai <mark@chromium.org> wrote: > thakis@chromium.org wrote: ...
9 years, 3 months ago
(2011-08-28 17:07:18 UTC)
#9
On Sat, Aug 27, 2011 at 8:33 PM, Mark Mentovai <mark@chromium.org> wrote:
> thakis@chromium.org wrote:
> >> I relanded this CL with a clang revision increment of 1, so if ld
> crashes
> >
> > again
> >>
> >> on the waterfall, it's pretty likely it's caused by this configure
> change.
> >> So
> >> far, everything looks good though.
> >
> > I tracked down the ld crash, it's caused by this clang revision:
> >
>
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110822/045707.html
> > (see the tryjob results at http://codereview.chromium.org/7777001/ )
> >
> > It looks like the crash is present with Xcode 3.2.2's ld, but fixed in
> Xcode
> > 3.2.3's ld. (At least, I see the crash on the bots but not locally, and I
> > have a newer ld locally.) What's the best way forward here? Require
> people and bots
> > to use 3.2.3? Do you know how difficult it is to upgrade Xcode on the
> bots?
>
> Bev, can you tell us which Xcode version the bots are using? We should
> be on 3.2.6. I know we talked about this back in April but I’m not
> sure if the upgrades were rolled out to the entire fleet.
>
We're still on xcode 3.2.2. I can upgrade the entire fleet today.
Mark Mentovai
Bev Cristobal wrote: > We're still on xcode 3.2.2. I can upgrade the entire fleet ...
9 years, 3 months ago
(2011-08-28 17:32:35 UTC)
#10
Bev Cristobal wrote:
> We're still on xcode 3.2.2. I can upgrade the entire fleet today.
I think that’d be good.
We are on 10.6.8 now across the board, right?
bevc1
On Sun, Aug 28, 2011 at 10:32 AM, Mark Mentovai <mark@chromium.org> wrote: > Bev Cristobal ...
9 years, 3 months ago
(2011-08-28 17:59:53 UTC)
#11
On Sun, Aug 28, 2011 at 10:32 AM, Mark Mentovai <mark@chromium.org> wrote:
> Bev Cristobal wrote:
> > We're still on xcode 3.2.2. I can upgrade the entire fleet today.
>
> I think that’d be good.
>
> We are on 10.6.8 now across the board, right?
>
We will be by the end of the day.
Mark Mentovai
Bev Cristobal wrote: > On Sun, Aug 28, 2011 at 10:32 AM, Mark Mentovai <mark@chromium.org> ...
9 years, 3 months ago
(2011-08-28 18:02:48 UTC)
#12
Bev Cristobal wrote:
> On Sun, Aug 28, 2011 at 10:32 AM, Mark Mentovai <mark@chromium.org> wrote:
>> We are on 10.6.8 now across the board, right?
>
> We will be by the end of the day.
Awesome. Thanks, Bev!
Mark Mentovai
thakis@chromium.org wrote: > It looks like the crash is present with Xcode 3.2.2's ld, but ...
9 years, 3 months ago
(2011-08-28 18:20:49 UTC)
#13
thakis@chromium.org wrote:
> It looks like the crash is present with Xcode 3.2.2's ld, but fixed in Xcode
> 3.2.3's ld. (At least, I see the crash on the bots but not locally, and I have
a
> newer ld locally.) What's the best way forward here? Require people and bots
to
> use 3.2.3? Do you know how difficult it is to upgrade Xcode on the bots?
To answer Nico’s question more directly:
It’s perfectly reasonable to require 3.2.6.
Issue 7741039: roll clang 138187:138188
(Closed)
Created 9 years, 4 months ago by Nico
Modified 9 years, 3 months ago
Reviewers: hamaji, hans, Mark Mentovai, bevc, bevc1
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 20