Closed Bug 656806 Opened 13 years ago Closed 13 years ago

Install a clang-3.0 snapshot on Linux, OSX build machines

Categories

(Release Engineering :: General, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehsan.akhgari, Assigned: catlee)

Details

Attachments

(3 files, 3 obsolete files)

We need clang builds on Linux as well.  Rafael told me that we need to use a clang 3.0 snapshot in order to compile Firefox on Linux.  I'm sure he can point us to the correct snapshot.

I'm not sure if I need to file another bug in order to set up the clang builds or if this bug can cover both tasks.
Need instructions for which snapshot to use, where to get it, how to build it, etc.
Assignee: nobody → respindola
I can give instructions now, but the existing bots on OS X already found some issues I am working on. Would you mind if I fixed those first? I should have something this week, with that we can deploy a single version on all platforms.
The following should do it. Is it too much work to also install this on OS X 10.5 and 10.6? I have fixed the initial issues that were found and it would be really nice to try the same version on the 3 platforms.

If this is automated, I would be happy to write the CLs if you point me to the documentation.

-------------------
REPO_REV=131621

svn co -r $REPO_REV http://llvm.org/svn/llvm-project/llvm/trunk
svn co -r $REPO_REV http://llvm.org/svn/llvm-project/cfe/trunk

cd llvm/tools/clang
ln -s ../../clang
cd ../../..
mkdir build
mkdir inst
DIR=$(pwd)
cd build
../llvm/configure --enable-optimized --prefix="$DIR/inst"
make -j8
make install
------------


Thanks!
hopefully I can get to this tomorrow.
Assignee: respindola → catlee
Priority: -- → P2
/tools/clang-3.0 has this build on the following slaves:

linux64-ix-slave02, moz2-linux-slave10, moz2-darwin10-slave02, moz2-darwin9-slave68

I don't think I'll have time to package this up into dmgs/rpms, test and deploy it.  Back into the pool!
Assignee: catlee → nobody
Attached patch untested manifests (obsolete) — Splinter Review
it's important to include svn revision in the package version somewhere, since I imagine we'll be updating this in the future.
dmgs for mac are on staging-puppet:/N/staging/darwin{9,10}-i386/build/DMGs
works on darwin9,darwin10
Attachment #534089 - Attachment is obsolete: true
Assignee: nobody → catlee
Summary: Install a clang-3.0 snapshot on Linux build machines → Install a clang-3.0 snapshot on Linux, OSX build machines
Attachment #536423 - Flags: review?(dustin)
Attached patch rpm spec for clang (obsolete) — Splinter Review
Attachment #536424 - Flags: review?(rail)
Comment on attachment 536424 [details] [diff] [review]
rpm spec for clang

>+%define toplevel_dir clang-3.0-r132336

What about
%define toplevel_dir %{name}-%{version}-%{release}

>+%define install_dir /tools/%{toplevel_dir}

Do you really want to install it to /tools/%{toplevel_dir}? I think, that /tools/%{name}-%{version} would be cleaner and you won't need to update symlinks in the future after every revision update.

>+%define REPO_REV 132336

Move it to the top and use for Revision:
Revision: r%{REPO_REV}

Otherwise good.
Attachment #536424 - Flags: review?(rail) → review-
Attachment #536423 - Flags: review?(dustin)
Attachment #536424 - Attachment is obsolete: true
Attachment #536590 - Flags: review?(rail)
Attachment #536590 - Flags: review?(rail) → review+
Attachment #536423 - Attachment is obsolete: true
Attachment #536622 - Flags: review?(dustin)
Comment on attachment 536622 [details] [diff] [review]
clang snapshot puppet manifests

I don't think you meant to include this hunk:

+node "linux64-slave02.build.sjc1.mozilla.com" inherits "centos5-x86_64-build" {
+    include staging-buildslave, vm
+}

since the box is both dead and mis-named :(

Without that hunk, r+
Attachment #536622 - Flags: review?(dustin) → review+
Attachment #536590 - Flags: checked-in+
Attachment #536622 - Flags: checked-in+
This is now being deployed to the build machines. It is available at /tools/clang-3.0/bin/clang
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: