[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CI: run on xenial
From: |
Akim Demaille |
Subject: |
CI: run on xenial |
Date: |
Sun, 25 Nov 2018 13:24:45 +0100 |
I still can't get GCC8 to work with UBSAN, I get this error (in config.log):
https://travis-ci.com/akimd/bison/jobs/160650997:
> configure:4967: checking whether the C compiler works
> configure:4989: gcc-8 -fsanitize=undefined,address -fno-omit-frame-pointer
> conftest.c >&5
> /usr/bin/ld: --push-state--no-as-needed: unknown option
> /usr/bin/ld: use the --help option for usage information
> collect2: error: ld returned 1 exit status
> configure:4993: $? = 1
> configure:5031: result: no
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "GNU Bison"
> | #define PACKAGE_TARNAME "bison"
> | #define PACKAGE_VERSION "3.0"
> | #define PACKAGE_STRING "GNU Bison 3.0"
> | #define PACKAGE_BUGREPORT "address@hidden"
> | #define PACKAGE_URL "http://www.gnu.org/software/bison/"
> | #define PACKAGE_COPYRIGHT_YEAR 2018
> | #define PACKAGE "bison"
> | #define VERSION "3.0"
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> |
> | ;
> | return 0;
> | }
> configure:5036: error: in `/home/travis/build/akimd/bison':
> configure:5038: error: C compiler cannot create executables
If someone sees how to fix this, please let me know.
I've had to unset _JAVA_OPTIONS, see
https://travis-ci.com/akimd/bison/jobs/160494362 for details.
commit 3a203e2e56b0838a66354c5876cce9fb24fa67ff
Author: Akim Demaille <address@hidden>
Date: Fri Nov 23 13:20:41 2018 +0100
CI: run on xenial
Xenial (Ubuntu 16.04) is finally available on Travis. Let's use it.
Among the changes:
- Automake 1.14.1 -> 1.15.0
- Doxygen 1.8.6 -> 1.8.11
- Flex 2.5.35 -> 2.6.0, with plenty of new compiler warnings
- Gettext 0.18.3 -> 0.19.7
- Graphviz 2.36.0 -> 2.38.0
- Texinfo 5.2 -> 6.1
* .travis.yml: here.
diff --git a/.travis.yml b/.travis.yml
index bce070e7..16853304 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,6 +21,7 @@ matrix:
- name: "GCC 7 -O3"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -34,10 +35,11 @@ matrix:
# Travis if we run all the tests in on go. Run in two parts.
- name: "Clang 7 libc++ and ASAN part 1"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-7
+ - llvm-toolchain-xenial-7
- ubuntu-toolchain-r-test
packages:
- clang-7
@@ -49,10 +51,11 @@ matrix:
- name: "Clang 7 libc++ and ASAN part 2"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-7
+ - llvm-toolchain-xenial-7
- ubuntu-toolchain-r-test
packages:
- clang-7
@@ -64,6 +67,7 @@ matrix:
- name: "ICC"
os: linux
+ dist: xenial
env:
# ICC's warnings are often very wrong (e.g., it thinks foo ?
# "bar" : "baz" is char* instead of const char*), so don't try
@@ -78,6 +82,7 @@ matrix:
#- name: "GCC 8 with sanitizers"
# os: linux
+ # dist: xenial
# addons:
# apt:
# sources:
@@ -87,11 +92,15 @@ matrix:
# env:
# # Can't use UBSAN: I get:
# # configure:4951: gcc-8 -fsanitize=undefined,address
-fno-omit-frame-pointer conftest.c
- # # /usr/bin/ld: unrecognized option '--push-state'
+ # # /usr/bin/ld: unrecognized option '--push-state' (on trusty)
+ # # /usr/bin/ld: unrecognized option '--push-state--no-as-needed' (on
xenial)
+ # #
+ # # https://stackoverflow.com/questions/50024731/ suggests using the
gold linker.
# - MATRIX_EVAL="CC='gcc-8 -fsanitize=undefined,address
-fno-omit-frame-pointer' CXX='g++-8 -fsanitize=undefined,address
-fno-omit-frame-pointer'"
- name: "GCC 6"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -103,6 +112,7 @@ matrix:
- name: "GCC 5"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -114,6 +124,7 @@ matrix:
- name: "GCC 4.9"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -125,6 +136,7 @@ matrix:
- name: "GCC 4.8"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -136,6 +148,7 @@ matrix:
- name: "GCC 4.7"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -147,6 +160,7 @@ matrix:
- name: "GCC 4.6"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -162,10 +176,11 @@ matrix:
- name: "Clang 6 -O3 and libc++"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-6.0
+ - llvm-toolchain-xenial-6.0
- ubuntu-toolchain-r-test
packages:
- clang-6.0
@@ -176,10 +191,11 @@ matrix:
- name: "Clang 5"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-5.0
+ - llvm-toolchain-xenial-5.0
packages:
- clang-5.0
- libc++-dev
@@ -188,10 +204,11 @@ matrix:
- name: "Clang 4"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-4.0
+ - llvm-toolchain-xenial-4.0
packages:
- clang-4.0
env:
@@ -199,10 +216,11 @@ matrix:
- name: "Clang 3.9"
os: linux
+ dist: xenial
addons:
apt:
sources:
- - llvm-toolchain-trusty-3.9
+ - llvm-toolchain-xenial-3.9
packages:
- clang-3.9
env:
@@ -210,6 +228,7 @@ matrix:
- name: "Clang 3.8"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -222,6 +241,7 @@ matrix:
- name: "CLang 3.7"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -234,6 +254,7 @@ matrix:
- name: "Clang 3.6"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -246,6 +267,7 @@ matrix:
- name: "Clang 3.5"
os: linux
+ dist: xenial
addons:
apt:
sources:
@@ -258,6 +280,8 @@ matrix:
- name: "Clang 3.4"
os: linux
+ # Not available on Xenial.
+ dist: trusty
addons:
apt:
packages:
@@ -269,6 +293,8 @@ matrix:
- name: "Clang 3.3"
os: linux
+ # Not available on Xenial.
+ dist: trusty
addons:
apt:
packages:
@@ -295,6 +321,7 @@ before_install:
- gettext --version
- dot -V
- help2man --version
+ - ld --version
- m4 --version
- makeinfo --version
@@ -304,6 +331,10 @@ script:
# so `git describe` fails, so bootstrap fails.
- git describe || git tag v3.0 -m "Fake version 3.0."
- git describe
+ # Unset this variable, otherwise, Java programs' stderr is cluttered
+ # with `Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m`, which makes
+ # the test suite fail.
+ - unset _JAVA_OPTIONS
- ./bootstrap
- if [[ -f ~/.bashrc ]]; then source ~/.bashrc; fi
- ./configure --enable-gcc-warnings CC="$CC" CXX="$CXX" $CONFIGUREFLAGS || {
cat config.log && false; }
- CI: run on xenial,
Akim Demaille <=