clang builds fail due to llvm apt down #6120

Closed
ahxxm opened this Issue Jun 1, 2016 · 10 comments

Projects

None yet

4 participants

@ahxxm
ahxxm commented Jun 1, 2016

when addons include clang, travis will try to fetch gpg key from http://llvm.org/apt/llvm-snapshot.gpg.key

which is down now, and blocks every build that relies on clang...

@TheGeorge TheGeorge referenced this issue in parapluu/nifty Jun 1, 2016
Merged

Unions #43

@daviddrysdale daviddrysdale added a commit to daviddrysdale/libxml2 that referenced this issue Jun 1, 2016
@daviddrysdale daviddrysdale Temporarily disable MSAN
The default version of clang in Travis is 3.4 and it gives a false
positive at the moment.  Later versions of clang should avoid this,
but cannot currently be used due to:
  travis-ci/travis-ci#6120
ddc9b13
@zanchey zanchey added a commit to fish-shell/fish-shell that referenced this issue Jun 2, 2016
@zanchey zanchey travis: disable clang build
Clang repositories currently offline, causing build errors.

Can be reverted once travis-ci/travis-ci#6120
is fixed.
22e0702
@dgasmith dgasmith referenced this issue in psi4/psi4 Jun 2, 2016
Merged

Stops clang CI builds until LLVM hosts their compilers again #397

2 of 2 tasks complete
@BanzaiMan BanzaiMan changed the title from build fail due to llvm apt down to clang builds fail due to llvm apt down Jun 2, 2016
@BanzaiMan BanzaiMan added a commit to travis-ci/docs-travis-ci-com that referenced this issue Jun 2, 2016
@BanzaiMan BanzaiMan Remove mention of llvm in Node.js doc
llvm.org has pulled APT repos (http://lists.llvm.org/pipermail/llvm-foundation/2016-May/000020.html)
so using this snippet causes the bild to fail.

See travis-ci/travis-ci#6120
007e8ba
@BanzaiMan BanzaiMan referenced this issue in travis-ci/docs-travis-ci-com Jun 2, 2016
Merged

Remove mention of llvm in Node.js doc #599

@BanzaiMan
Member

Hello. I worked a bit to get recent versions of LLVM to work on Trusty.

https://travis-ci.org/BanzaiMan/travis_production_test/builds/134879963#L181 (See the corresponding .travis.yml)

My work is undoubtedly naïve, only up to showing clang++ --version. If there are other steps necessary to make other parts of LLVM working, please let us know.

@BanzaiMan
Member

Needless to say, the apt addon should be removed before the steps above are able to run.

@johnmcfarlane johnmcfarlane added a commit to johnmcfarlane/fixed_point that referenced this issue Jun 5, 2016
@johnmcfarlane johnmcfarlane fixes Travis build
- issue: travis-ci/travis-ci#6120
- solution: (as hinted in thread) upgrade to Trusty
  - this very neatly simplifies things as Trusty was the dev environment
    for quite some time and is still a target platform
  - particularly, compilers no longer need to be installed
  - now only CMake needs to be upgraded explicitly

thanks to @BanzaiMan for the pointer
e1d6aa8
@BanzaiMan
Member

For completeness, here is an excerpt of the configuration:

sudo: required
dist: trusty

env:
  global:
    - LLVM_VERSION=3.7.0
    - LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz

before_install:
  - wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
  - mkdir $HOME/clang+llvm
  - tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang+llvm --strip-components 1
  - export PATH=$HOME/clang+llvm/bin:$PATH
@miloyip miloyip referenced this issue in miloyip/rapidjson Jun 7, 2016
Merged

Fix undefined behaviour #646

@nlohmann
nlohmann commented Jun 7, 2016

I tried this fix, but I cannot get Clang to compile C++11 code. I'm using the same Makefile as before, but the compiler chokes on a non-void version of std::vector::insert (see https://travis-ci.org/nlohmann/json/jobs/135778102). I tried with LLVM 3.7.0 and 3.8.0. Any ideas? Any flags needed for a standard library?

@ahxxm
ahxxm commented Jun 7, 2016

it seems travis still use headers from gcc4.8 according to your build log, try specify -I?

@nlohmann
nlohmann commented Jun 7, 2016

Thanks @ahxxm - I oversaw this. Now (https://travis-ci.org/nlohmann/json/jobs/135802200) I am passing the correct header path, but get a link error, because libc++.so.1 cannot be found.

@ahxxm
ahxxm commented Jun 7, 2016

I guess you'll need to modify LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$HOME/clang+llvm/lib:$LD_LIBRARY_PATH .. or ln that file to existing library path. Or install prebuilt-binaries other than just decompress it.

@nlohmann
nlohmann commented Jun 7, 2016

That works. Thanks @ahxxm and sorry for my stupid questions. FYI, here is my configuration:

- os: linux
  env:
    - LLVM_VERSION=3.8.0
    - LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
    - CXX=$HOME/clang-$LLVM_VERSION/bin/clang++
    - CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
    - CXXFLAGS=-lc++
    - LD_LIBRARY_PATH=$HOME/clang-$LLVM_VERSION/lib:$LD_LIBRARY_PATH
  before_install:
   - wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
   - mkdir $HOME/clang-$LLVM_VERSION
   - tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
@mtorpey mtorpey referenced this issue in gap-packages/Semigroups Jun 8, 2016
Merged

Travis: remove clang tests #185

@efidler efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016
@efidler efidler switch Clang from broken Ubuntu PPA to upstream binary release
This should fix the Travis clang builds

travis-ci/travis-ci#6120
210a1b7
@otbe otbe added a commit to otbe/dwatch that referenced this issue Jun 8, 2016
@otbe otbe try to fix failing builds on linux de500f1
@efidler efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016
@efidler efidler switch Clang from broken Ubuntu PPA to upstream binary release
This should fix the Travis clang builds

travis-ci/travis-ci#6120
01e094d
@efidler efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016
@efidler efidler switch Clang from broken Ubuntu PPA to upstream binary release
This should fix the Travis clang builds

travis-ci/travis-ci#6120
0503f57
@efidler efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016
@efidler efidler switch Clang from broken Ubuntu PPA to upstream binary release
This should fix the Travis clang builds

travis-ci/travis-ci#6120
5954057
@gdbelvin gdbelvin added a commit to gdbelvin/certificate-transparency that referenced this issue Jun 8, 2016
@gdbelvin gdbelvin Fix travis
The LLVM APT repo has been turned off due to excessive load.
To avoid pulling directly from the LLVM APT repo, use a version of
Ubuntu that contains the nesseary compilers. Xenial is the next LTS
version of Ubuntu and
[contains](http://packages.ubuntu.com/Xenial/devel/) clang 3.6

This patch follows the suggestion
[here](travis-ci/travis-ci#6120 (comment))
2c5c135
@gdbelvin gdbelvin added a commit to gdbelvin/certificate-transparency that referenced this issue Jun 9, 2016
@gdbelvin gdbelvin Fix travis
The LLVM APT repo has been turned off due to excessive load.
To avoid pulling directly from the LLVM APT repo, use a version of
Ubuntu that contains the nesseary compilers. Xenial is the next LTS
version of Ubuntu and
[contains](http://packages.ubuntu.com/Xenial/devel/) clang 3.6

This patch follows the suggestion
[here](travis-ci/travis-ci#6120 (comment))
59d9a03
@danluu danluu referenced this issue in BitFunnel/NativeJIT Jun 9, 2016
Closed

Yet another bogus Travis CI failure #51

@tcbrindle tcbrindle added a commit to tcbrindle/modern-io that referenced this issue Jun 9, 2016
@tcbrindle tcbrindle [travis] Temporarily disable Clang builds on Linux
The required repo is currently down:

travis-ci/travis-ci#6120
c3d86e4
@nabijaczleweli nabijaczleweli added a commit to ThePhD/infoware that referenced this issue Jun 9, 2016
@nabijaczleweli nabijaczleweli Fix Travis temporarily e94765f
@cuviper cuviper referenced this issue in dyninst/dyninst Jun 11, 2016
Merged

Simplify INTERP logic for better consistency #84

@Minoru Minoru added a commit to akrennmair/newsbeuter that referenced this issue Jun 11, 2016
@Minoru Minoru Re-enable Clang on Linux Travis builds 038451d
@Minoru Minoru added a commit to akrennmair/newsbeuter that referenced this issue Jun 11, 2016
@Minoru Minoru Re-enable Clang on Linux Travis builds 35a4ed1
@JohanEngelen
JohanEngelen commented Jun 11, 2016 edited

Please cache the downloads from llvm.org.
Here is how we do this in our travis.yml: https://github.com/ldc-developers/ldc/blob/master/.travis.yml

matrix:
  include:
    - os: linux
      d: ldc
      env: LLVM_VERSION=3.8.0

cache:
  directories:
    - llvm-3.8.0

before_install:
  -
    if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
      if [ -z "$(ls -A llvm-$LLVM_VERSION)" ]; then
        wget -O llvm-$LLVM_VERSION.tar.xz http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz;
        mkdir llvm-$LLVM_VERSION;
        xzcat llvm-$LLVM_VERSION.tar.xz | tar -xvf - --strip 1 -C llvm-$LLVM_VERSION;
      fi;
      llvm-$LLVM_VERSION/bin/llvm-config --version;
      export LLVM_CONFIG="llvm-$LLVM_VERSION/bin/llvm-config";
    fi
@BanzaiMan BanzaiMan locked and limited conversation to collaborators Jun 12, 2016
@BanzaiMan
Member

LLVM APT repository is back online. #6217

@BanzaiMan BanzaiMan closed this Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.