Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang builds fail due to llvm apt down #6120

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

Comments

Projects
None yet
4 participants
@ahxxm
Copy link

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 Jun 1, 2016

Merged

Unions #43

daviddrysdale added a commit to daviddrysdale/libxml2 that referenced this issue Jun 1, 2016

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

@amjames amjames referenced this issue Jun 1, 2016

Merged

Reorganization of roa driver #395

4 of 4 tasks complete

zanchey added a commit to fish-shell/fish-shell that referenced this issue Jun 2, 2016

travis: disable clang build
Clang repositories currently offline, causing build errors.

Can be reverted once travis-ci/travis-ci#6120
is fixed.

@BanzaiMan BanzaiMan changed the title build fail due to llvm apt down clang builds fail due to llvm apt down Jun 2, 2016

BanzaiMan added a commit to travis-ci/docs-travis-ci-com that referenced this issue Jun 2, 2016

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
@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Jun 2, 2016

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

This comment has been minimized.

Copy link
Member

commented Jun 2, 2016

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

johnmcfarlane added a commit to johnmcfarlane/fixed_point that referenced this issue Jun 5, 2016

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
@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Jun 6, 2016

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
@nlohmann

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Author

commented Jun 7, 2016

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

@nlohmann

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link

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

efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016

otbe added a commit to otbe/dwatch that referenced this issue Jun 8, 2016

efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016

efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016

efidler added a commit to efidler/rapidjson that referenced this issue Jun 8, 2016

gdbelvin added a commit to gdbelvin/certificate-transparency that referenced this issue Jun 8, 2016

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))

gdbelvin added a commit to gdbelvin/certificate-transparency that referenced this issue Jun 9, 2016

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))

tcbrindle added a commit to tcbrindle/modern-io that referenced this issue Jun 9, 2016

nabijaczleweli added a commit to ThePhD/infoware that referenced this issue Jun 9, 2016

tfussell added a commit to tfussell/xlnt that referenced this issue Jun 11, 2016

Minoru added a commit to akrennmair/newsbeuter that referenced this issue Jun 11, 2016

Minoru added a commit to akrennmair/newsbeuter that referenced this issue Jun 11, 2016

@JohanEngelen

This comment has been minimized.

Copy link

commented Jun 11, 2016

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

@travis-ci travis-ci locked and limited conversation to collaborators Jun 12, 2016

@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Jun 27, 2016

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.
You can’t perform that action at this time.