Skip to contentSkip to conversation

ci: Update build environment to Ubuntu 18.04

PATCH New Jan Kiszka 1 participant 2 messages Sep 2, 2019 – Sep 3, 2019 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jan Kiszka

author
#1 lore raw

PATCH v2 1/1 ci: Update build environment to Ubuntu 18.04

From: Jan Kiszka <[email protected]>

This allows to switch to gcc 8 which may report issues earlier.

Powerpc does not build with gcc 8 and even also 7, so go with 6.

---

Changes in v2:
- switch back to gcc 6
- switch to gcc 8 for the rest

Steven, any chance we get ppc to a newer gcc? Are the issues

https://travis-ci.com/xenomai-ci/xenomai/jobs/229976797#L786
https://travis-ci.com/xenomai-ci/xenomai/jobs/229922504#L3071

fixed in newer 4.14 releases?

 .travis.yml | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
.travis.yml +5 -4
index 671c551f72..15efb7ccb1 100644
@@ -1,15 +1,16 @@
 language: c
-dist: xenial
+dist: bionic
 cache: ccache
  addons:
   apt:
     packages:
-      - gcc-aarch64-linux-gnu
+      - gcc-8
+      - gcc-8-aarch64-linux-gnu
       - libc6-dev-arm64-cross
-      - gcc-arm-linux-gnueabihf
+      - gcc-8-arm-linux-gnueabihf
       - libc6-dev-armhf-cross
-      - gcc-powerpc-linux-gnu
+      - gcc-6-powerpc-linux-gnu
       - libc6-dev-powerpc-cross
       - u-boot-tools
 @@ -20,6 +21,10 @@ env:
     - CCACHE_MAXSIZE=400M

install:

+  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800
+  - sudo update-alternatives --install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 800
+  - sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-8 800
+  - sudo update-alternatives --install /usr/bin/powerpc-linux-gnu-gcc powerpc-linux-gnu-gcc /usr/bin/powerpc-linux-gnu-gcc-6 800

- git clone --depth 1 --branch ${IPIPE_REV} ${IPIPE_KERNEL} ${KDIR}
before_script:
@@ -46,6 +51,8 @@ before_script:
- ln -s /usr/bin/ccache ~/ccache/arm-linux-gnueabihf-gcc
- ln -s /usr/bin/ccache ~/ccache/powerpc-linux-gnu-gcc
- export PATH=~/ccache:$PATH
+ - ${CROSS_COMPILE}gcc --version
+
- pushd ${KDIR}
- make -j $(nproc) ${KERNEL_DEFCONFIG}
-- 2.16.4

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 52277842.1e8b158zFm@omoikane

author
#5 lore raw

[moving to the right list - did a mistake on first posting]

Quoted 7 lines · steven.seeger flightsystems.net
Quoted 6 lines · EDT Jan Kiszka
Quoted 5 lines · Jan Kiszka

Steven, any chance we get ppc to a newer gcc? Are the issues

https://travis-ci.com/xenomai-ci/xenomai/jobs/229976797#L786
https://travis-ci.com/xenomai-ci/xenomai/jobs/229922504#L3071

Quoted 8 lines
Quoted 1 line
Quoted 1 line

fixed in newer 4.14 releases?

Strange. I build with gcc 7.3.0. I was going to try and get to some ppc stuff this week. I need to do some updates on the vendor board I have with 4.19 and then I will test with xenomai. Hopefully I can get to that later this week.

I have seen the error with missing symbol _restgpr_31_x but it's been so long I forget what the resolution was.

Maybe this helps:

https://lore.kernel.org/patchwork/patch/873596/

Do we have that change in the kernel we build? If not, can we get it by updating to a more recent 4.14 kernel?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux