danfiscus / factorpro

Simple program to help me with my math homework.
4 stars 1 forks source link

Doesn't build on Travis Linux #24

Closed danfiscus closed 8 years ago

danfiscus commented 8 years ago

Here's the log from Travis:

Using worker: worker-linux-docker-f481c17d.prod.travis-ci.org:travis-linux-6

Build system information
Build language: cpp
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb  5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:    12.04
Codename:   precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"

$ git clone --depth=50 --branch=master https://github.com/danfiscus/factorpro.git danfiscus/factorpro
Cloning into 'danfiscus/factorpro'...
remote: Counting objects: 116, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 116 (delta 21), reused 0 (delta 0), pack-reused 73
Receiving objects: 100% (116/116), 22.14 KiB | 0 bytes/s, done.
Resolving deltas: 100% (48/48), done.
Checking connectivity... done.

$ cd danfiscus/factorpro
$ git checkout -qf 453aa758743e70926336c9809830eaa580d1d25d

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
$ export CXX=g++
$ export CC=gcc
$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ make main
g++ -o main -Os main.cpp
main.cpp: In function ‘int inputconvert(std::string)’:
main.cpp:53:30: error: ‘stoi’ was not declared in this scope
main.cpp:55:11: error: expected type-specifier before ‘invalid_argument’
main.cpp:55:27: error: expected ‘)’ before ‘&’ token
main.cpp:55:27: error: expected ‘{’ before ‘&’ token
main.cpp:55:29: error: ‘e’ was not declared in this scope
main.cpp:55:30: error: expected ‘;’ before ‘)’ token
make: *** [main] Error 1

The command "make main" exited with 2.

Done. Your build exited with 1.
ChristopherKing42 commented 8 years ago

http://stackoverflow.com/questions/35110123/travis-ci-with-c14-and-linux

danfiscus commented 8 years ago

Build now fails on Clang Linux; GCC says "No language set". screen shot 2016-01-31 at 10 32 13 am Log:

Using worker: worker-linux-docker-0b91dd82.prod.travis-ci.org:travis-linux-1

Build system information
Build language: cpp
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb  5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:    12.04
Codename:   precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"

$ git clone --depth=50 --branch=master https://github.com/danfiscus/factorpro.git danfiscus/factorpro
Cloning into 'danfiscus/factorpro'...
remote: Counting objects: 139, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 139 (delta 7), reused 0 (delta 0), pack-reused 119
Receiving objects: 100% (139/139), 26.20 KiB | 0 bytes/s, done.
Resolving deltas: 100% (59/59), done.
Checking connectivity... done.

$ cd danfiscus/factorpro
$ git checkout -qf b7c0e6572b7eb9d2e380e0b083749d3681d1aff3
Adding APT Sources (BETA)
$ export DEBIAN_FRONTEND=noninteractive
$ curl -sSL "http://llvm.org/apt/llvm-snapshot.gpg.key" | sudo -E apt-key add -
OK

$ echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" | sudo tee -a /etc/apt/sources.list > /dev/null

$ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
gpg: keyring `/tmp/tmpsyjRwC/secring.gpg' created
gpg: keyring `/tmp/tmpsyjRwC/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpsyjRwC/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

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 clang-3.8
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  gcc-4.9-base gcc-5-base libasan1 libatomic1 libcilkrts5
  libclang-common-3.8-dev libclang1-3.8 libgcc-4.9-dev libgcc1 libgomp1
  libitm1 libllvm3.8 liblsan0 libobjc-4.9-dev libobjc4 libquadmath0
  libstdc++-4.9-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
  gnustep gnustep-devel clang-3.8-doc libstdc++-4.9-doc
Recommended packages:
  llvm-3.8-dev
The following NEW packages will be installed:
  clang-3.8 gcc-4.9-base gcc-5-base libasan1 libatomic1 libcilkrts5
  libclang-common-3.8-dev libclang1-3.8 libgcc-4.9-dev libitm1 libllvm3.8
  liblsan0 libobjc-4.9-dev libobjc4 libstdc++-4.9-dev libtsan0 libubsan0
The following packages will be upgraded:
  libgcc1 libgomp1 libquadmath0 libstdc++6
4 upgraded, 17 newly installed, 0 to remove and 227 not upgraded.
Need to get 63.5 MB of archives.
After this operation, 177 MB of additional disk space will be used.
Get:1 http://llvm.org/apt/precise/ llvm-toolchain-precise/main libllvm3.8 amd64 1:3.8~svn257166-1~exp1 [14.6 MB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main gcc-5-base amd64 5.2.1-23ubuntu1~12.04 [17.9 kB]
Get:3 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libgcc1 amd64 1:5.2.1-23ubuntu1~12.04 [44.9 kB]
Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libstdc++6 amd64 5.2.1-23ubuntu1~12.04 [382 kB]
Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main gcc-4.9-base amd64 4.9.2-0ubuntu1~12.04 [17.7 kB]
Get:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libasan1 amd64 4.9.2-0ubuntu1~12.04 [246 kB]
Get:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libatomic1 amd64 5.2.1-23ubuntu1~12.04 [10.5 kB]
Get:8 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libcilkrts5 amd64 5.2.1-23ubuntu1~12.04 [48.5 kB]
Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libgomp1 amd64 5.2.1-23ubuntu1~12.04 [63.7 kB]
Get:10 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libitm1 amd64 5.2.1-23ubuntu1~12.04 [33.6 kB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main liblsan0 amd64 5.2.1-23ubuntu1~12.04 [128 kB]
Get:12 http://llvm.org/apt/precise/ llvm-toolchain-precise/main libclang1-3.8 amd64 1:3.8~svn257166-1~exp1 [5,934 kB]
Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libtsan0 amd64 5.2.1-23ubuntu1~12.04 [309 kB]
Get:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libubsan0 amd64 5.2.1-23ubuntu1~12.04 [116 kB]
Get:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libquadmath0 amd64 5.2.1-23ubuntu1~12.04 [145 kB]
Get:16 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libgcc-4.9-dev amd64 4.9.2-0ubuntu1~12.04 [3,789 kB]
Get:17 http://llvm.org/apt/precise/ llvm-toolchain-precise/main libclang-common-3.8-dev amd64 1:3.8~svn257166-1~exp1 [417 kB]
Get:18 http://llvm.org/apt/precise/ llvm-toolchain-precise/main clang-3.8 amd64 1:3.8~svn257166-1~exp1 [34.4 MB]
Get:19 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libstdc++-4.9-dev amd64 4.9.2-0ubuntu1~12.04 [1,859 kB]
Get:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libobjc4 amd64 5.2.1-23ubuntu1~12.04 [161 kB]
Get:21 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main libobjc-4.9-dev amd64 4.9.2-0ubuntu1~12.04 [780 kB]
Fetched 63.5 MB in 1s (40.9 MB/s)
Selecting previously unselected package gcc-5-base.
(Reading database ... 71420 files and directories currently installed.)
Unpacking gcc-5-base (from .../gcc-5-base_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Processing triggers for ccache ...
Updating symlinks in /usr/lib/ccache ...
Setting up gcc-5-base (5.2.1-23ubuntu1~12.04) ...
(Reading database ... 71427 files and directories currently installed.)
Preparing to replace libgcc1 1:4.6.3-1ubuntu5 (using .../libgcc1_1%3a5.2.1-23ubuntu1~12.04_amd64.deb) ...
Unpacking replacement libgcc1 ...
Setting up libgcc1 (1:5.2.1-23ubuntu1~12.04) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 71427 files and directories currently installed.)
Preparing to replace libstdc++6 4.6.3-1ubuntu5 (using .../libstdc++6_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Unpacking replacement libstdc++6 ...
Setting up libstdc++6 (5.2.1-23ubuntu1~12.04) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package gcc-4.9-base.
(Reading database ... 71440 files and directories currently installed.)
Unpacking gcc-4.9-base (from .../gcc-4.9-base_4.9.2-0ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libasan1.
Unpacking libasan1 (from .../libasan1_4.9.2-0ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libatomic1.
Unpacking libatomic1 (from .../libatomic1_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libcilkrts5.
Unpacking libcilkrts5 (from .../libcilkrts5_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libllvm3.8.
Unpacking libllvm3.8 (from .../libllvm3.8_1%3a3.8~svn257166-1~exp1_amd64.deb) ...
Preparing to replace libgomp1 4.6.3-1ubuntu5 (using .../libgomp1_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Unpacking replacement libgomp1 ...
Selecting previously unselected package libitm1.
Unpacking libitm1 (from .../libitm1_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package liblsan0.
Unpacking liblsan0 (from .../liblsan0_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libtsan0.
Unpacking libtsan0 (from .../libtsan0_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libubsan0.
Unpacking libubsan0 (from .../libubsan0_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Preparing to replace libquadmath0 4.6.3-1ubuntu5 (using .../libquadmath0_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Unpacking replacement libquadmath0 ...
Selecting previously unselected package libgcc-4.9-dev.
Unpacking libgcc-4.9-dev (from .../libgcc-4.9-dev_4.9.2-0ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libstdc++-4.9-dev.
Unpacking libstdc++-4.9-dev (from .../libstdc++-4.9-dev_4.9.2-0ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libobjc4.
Unpacking libobjc4 (from .../libobjc4_5.2.1-23ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libobjc-4.9-dev.
Unpacking libobjc-4.9-dev (from .../libobjc-4.9-dev_4.9.2-0ubuntu1~12.04_amd64.deb) ...
Selecting previously unselected package libclang1-3.8.
Unpacking libclang1-3.8 (from .../libclang1-3.8_1%3a3.8~svn257166-1~exp1_amd64.deb) ...
Selecting previously unselected package libclang-common-3.8-dev.
Unpacking libclang-common-3.8-dev (from .../libclang-common-3.8-dev_1%3a3.8~svn257166-1~exp1_amd64.deb) ...
Selecting previously unselected package clang-3.8.
Unpacking clang-3.8 (from .../clang-3.8_1%3a3.8~svn257166-1~exp1_amd64.deb) ...
Processing triggers for ccache ...
Updating symlinks in /usr/lib/ccache ...
Processing triggers for man-db ...
Setting up gcc-4.9-base (4.9.2-0ubuntu1~12.04) ...
Setting up libasan1 (4.9.2-0ubuntu1~12.04) ...
Setting up libatomic1 (5.2.1-23ubuntu1~12.04) ...
Setting up libcilkrts5 (5.2.1-23ubuntu1~12.04) ...
Setting up libllvm3.8 (1:3.8~svn257166-1~exp1) ...
Setting up libgomp1 (5.2.1-23ubuntu1~12.04) ...
Setting up libitm1 (5.2.1-23ubuntu1~12.04) ...
Setting up liblsan0 (5.2.1-23ubuntu1~12.04) ...
Setting up libtsan0 (5.2.1-23ubuntu1~12.04) ...
Setting up libubsan0 (5.2.1-23ubuntu1~12.04) ...
Setting up libquadmath0 (5.2.1-23ubuntu1~12.04) ...
Setting up libgcc-4.9-dev (4.9.2-0ubuntu1~12.04) ...
Setting up libstdc++-4.9-dev (4.9.2-0ubuntu1~12.04) ...
Setting up libobjc4 (5.2.1-23ubuntu1~12.04) ...
Setting up libobjc-4.9-dev (4.9.2-0ubuntu1~12.04) ...
Setting up libclang1-3.8 (1:3.8~svn257166-1~exp1) ...
Setting up libclang-common-3.8-dev (1:3.8~svn257166-1~exp1) ...
Setting up clang-3.8 (1:3.8~svn257166-1~exp1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
$ export CXX=clang++
$ export CC=clang
$ clang --version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ export CXX="clang++-3.8"

$ export CXXFLAGS="-Os -std=c++14"

$ make main
clang++-3.8 -o main -Os -std=c++14 main.cpp
main.cpp:56:23: error: unknown type name 'invalid_argument'
                catch(invalid_argument& e) {
                      ^
1 error generated.
make: *** [main] Error 1

The command "make main" exited with 2.

Done. Your build exited with 1.
ChristopherKing42 commented 8 years ago

Best to put a link to the log rather than copy and paste the log.

ChristopherKing42 commented 8 years ago

It looks like it found an error in the code.

ChristopherKing42 commented 8 years ago

Here is the line it doesn't like: https://github.com/danfiscus/factorpro/blob/b7c0e6572b7eb9d2e380e0b083749d3681d1aff3/main.cpp#L56

danfiscus commented 8 years ago

@TheKing42 I'm on it.