Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Builds broken due to llvm package source changes #2407

Closed
jfirebaugh opened this issue Sep 24, 2015 · 8 comments
Closed

Builds broken due to llvm package source changes #2407

jfirebaugh opened this issue Sep 24, 2015 · 8 comments
Labels

Comments

@jfirebaugh
Copy link
Contributor

See conversation from #2391 (comment). Splitting out because it's an independent issue from that PR and affecting all builds now.

We've tried switching to clang-3.6 with both the llvm-toolchain-precise and llvm-toolchain-precise-3.6 sources without luck.

I emailed the maintainer of these sources, Sylvestre Ledru, and the llvm-dev mailing list:

Hi,

At Mapbox we have been using the llvm-toolchain-precise-3.5 package
source to install clang-3.5 on Travis CI VMs for testing purposes
(Travis VM images are Ubuntu 12.04). This has worked fairly well for
us; thanks for providing it. However, the 3.5 source seems to have
recently disappeared, breaking our builds. No problem, we thought,
we'll update to 3.6. However, this doesn't seem to work either. When
using either the llvm-toolchain-precise or llvm-toolchain-precise-3.6
sources, no clang-3.6 package can be found:

$ sudo -E apt-add-repository -y "deb http://llvm.org/apt/precise/
llvm-toolchain-precise main"
Installing APT Packages (BETA)
$ export DEBIAN_FRONTEND=noninteractive
$ sudo -E apt-get -yq update &>> ~/apt-get-update.log
$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends
--force-yes install gdb clang-3.6 libstdc++-4.9-dev libstdc++6
libllvm3.4 xutils-dev libxxf86vm-dev x11proto-xf86vidmode-dev
mesa-utils
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package clang-3.6

Full output here: https://travis-ci.org/mapbox/mapbox-gl-native/jobs/81888110
Similar output when using the llvm-toolchain-precise-3.6 source here:
https://travis-ci.org/mapbox/mapbox-gl-native/jobs/81865117

Are there packages missing from these sources? What version is the
unsuffixed llvm-toolchain-precise source expected to contain? And for
the future avoidance of unexpected build breakage, is there a setup we
can use where packages won't disappear from underneath us?

Thanks!

@jfirebaugh
Copy link
Contributor Author

Message approved for the mailing list: http://lists.llvm.org/pipermail/llvm-dev/2015-September/090712.html

@mikemorris
Copy link
Contributor

The llvm-toolchain-precise-3.5 repository was back up again and working fine this morning (#2391 (comment)), but it looks like -3.6 is down again now (#2416 (comment)).

@jfirebaugh
Copy link
Contributor Author

Current failure:

$ echo '"deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main"' | sudo tee -a /etc/apt/sources.list > /dev/null
Installing APT Packages (BETA)
$ export DEBIAN_FRONTEND=noninteractive
0.01s$ sudo -E apt-get -yq update &>> ~/apt-get-update.log
0.04s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gdb clang-3.5 libstdc++-4.9-dev libstdc++6 libllvm3.4 xutils-dev libxxf86vm-dev x11proto-xf86vidmode-dev mesa-utils
Reading package lists...
E: Type 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main' is not known on line 55 in source list /etc/apt/sources.list
E: The list of sources could not be read.
E: The package lists or status file could not be parsed or opened.

@mikemorris
Copy link
Contributor

From support@travis-ci.com:

Sorry for the continued issue. This appears to be something out of our reach at the moment. I am trying to find anyone who is involved in the LLVM project to see if we can resolve this problem soon.

@jfirebaugh
Copy link
Contributor Author

No response on the mailing list. I also opened an issue in the Travis source whitelist repo and cc'd some people who potentially have the same issue as us.

@jfirebaugh
Copy link
Contributor Author

The sources and packages are there. Travis just can't connect:

W: Failed to fetch http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.6/Release.gpg  Connection failed
W: Failed to fetch http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.6/Release  
W: Failed to fetch http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.6/main/binary-amd64/Packages  Unable to connect to llvm.org:http:
W: Failed to fetch http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.6/main/binary-i386/Packages  Unable to connect to llvm.org:http:

@jfirebaugh
Copy link
Contributor Author

http://llvm.org/apt/precise/dists/llvm-toolchain-precise-3.5/ still exists BTW, so we shouldn't necessarily need #2416. It's just no longer listed on http://llvm.org/apt/.

@jfirebaugh
Copy link
Contributor Author

So in the end all the failures were due to llvm.org being slow: #1828.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants