clang does not know -fuse-ld=gold. It only needs -flto, which
automatically adds to the linker command line, but
this does not work on Travis-CI because the gold linker plugin is not

    /usr/bin/ld: /usr/local/clang-3.9.0/bin/../lib/ error
    loading plugin: /usr/local/clang-3.9.0/bin/../lib/
    cannot open shared object file: No such file or directory

Disable in the build matrix the combination of linking with special
linkers with using clang.

Signed-off-by: Nicolas Iooss <>
 .travis.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 27c0013d6e9e..1b761496dd12 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,6 +29,13 @@ env:
     - PYVER=python3.6 RUBYLIBVER=2.2
     - PYVER=python3.6 RUBYLIBVER=2.3
+  exclude:
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=gold
+    - compiler: clang
+      env: PYVER=python3.6 RUBYLIBVER=2.4 LINKER=bfd
 # Use Travis-CI Ubuntu 14.04 Trusty infrastructure, "full image" variant
 sudo: required
 dist: trusty

Reply via email to