diff mbox

travis: Install power8 simulator for make check

Message ID 1418952551-27575-1-git-send-email-joel@jms.id.au
State Accepted
Headers show

Commit Message

Joel Stanley Dec. 19, 2014, 1:29 a.m. UTC
This downloads and installs mambo, the power8 simulator, including some
dependencies to ensure it runs on Travis' ancient Ubuntu 12.04.

Without the newer libc, you'll see a warning like this:

 /opt/ibm/systemsim-p8/bin/systemsim-pegasus:
  /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not
  found (required by /opt/ibm/systemsim-p8/bin/systemsim-pegasus)

Where GLIBCXX_3.4.20 is GCC 4.9. This is why we require libstdc++ from the
ppa.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 .travis.yml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Stewart Smith Dec. 19, 2014, 2:41 a.m. UTC | #1
Joel Stanley <joel@jms.id.au> writes:
> This downloads and installs mambo, the power8 simulator, including some
> dependencies to ensure it runs on Travis' ancient Ubuntu 12.04.
>
> Without the newer libc, you'll see a warning like this:
>
>  /opt/ibm/systemsim-p8/bin/systemsim-pegasus:
>   /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not
>   found (required by /opt/ibm/systemsim-p8/bin/systemsim-pegasus)
>
> Where GLIBCXX_3.4.20 is GCC 4.9. This is why we require libstdc++ from the
> ppa.

Awesome! Merged.
diff mbox

Patch

diff --git a/.travis.yml b/.travis.yml
index 66fc1a6..5c7c1a6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,14 +3,13 @@  language: c
 before_install:
     - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
     - sudo apt-get update -qq
-    - sudo apt-get install -y gcc-4.8
+    - sudo apt-get install -y gcc-4.8 libstdc++6 valgrind expect xterm
     - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
-
-install:
-    - sudo apt-get install -y valgrind
     - wget https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.8.0/x86_64-gcc-4.8.0-nolibc_powerpc64-linux.tar.xz
     - sudo mkdir /opt/cross
     - sudo tar -C /opt/cross -xvf x86_64-gcc-4.8.0-nolibc_powerpc64-linux.tar.xz
+    - wget ftp://public.dhe.ibm.com/software/server/powerfuncsim/p8/packages/v1.0-2/systemsim-p8_1.0-2_amd64.deb
+    - sudo dpkg -i systemsim-p8_1.0-2_amd64.deb
 
 env:
     global: