Repository: pantsbuild/pants

Issue #4436: Native engine bintray upload fails for linux
Created: 2017-04-06T22:54:01Z
The build for the most recent dev release did not successfully go out for linux: https://travis-ci.org/pantsbuild/pants/builds/218318629
It looks like the 1.3.0.dev14 release also failed to build in the same way: https://travis-ci.org/pantsbuild/pants/branches

Duplicate issue #4450: native engine fails to build for release_1.3.0.dev16 on linux on Travis
Created: 2017-04-08T23:51:50Z
The OSX native engine build worked fine and uploaded to bintray, all the linux shards though fail with:
�[32;1mchanges detected, packing new archive�[0m
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
running `casher push` took longer than 180 seconds and has been aborted

travis_time:end:123c3f75:start=1491684994247370236,finish=1491685175037388841,duration=180790018605
�[0Ktravis_fold:end:cache.2
�[0Ktravis_fold:start:after_success
�[0Ktravis_time:start:1f55d3e0
�[0K$ ./build-support/bin/native/generate-bintray-manifest.sh
�[1minfo: �(B�[mdownloading component 'rust-std' for 'i686-unknown-linux-gnu'
�[1minfo: �(B�[minstalling component 'rust-std' for 'i686-unknown-linux-gnu'
�(B�[m�[32m�[1m   Compiling�(B�[m void v1.0.2
�(B�[m�[32m�[1m   Compiling�(B�[m glob v0.2.11
�(B�[m�[32m�[1m   Compiling�(B�[m unreachable v0.1.1
�(B�[m�[32m�[1m   Compiling�(B�[m constant_time_eq v0.1.2
�(B�[m�[32m�[1m   Compiling�(B�[m blake2-rfc v0.2.17
�(B�[m�[32m�[1m   Compiling�(B�[m libc v0.2.21
�(B�[m�[32m�[1m   Compiling�(B�[m xattr v0.1.11
�(B�[m�[32m�[1m   Compiling�(B�[m rand v0.3.15
�(B�[m�[32m�[1m   Compiling�(B�[m fnv v1.0.5
�(B�[m�[32m�[1m   Compiling�(B�[m crossbeam v0.2.10
�(B�[m�[32m�[1m   Compiling�(B�[m filetime v0.1.10
�(B�[m�[32m�[1m   Compiling�(B�[m regex-syntax v0.4.0
�(B�[m�[32m�[1m   Compiling�(B�[m same-file v0.1.3
�(B�[m�[32m�[1m   Compiling�(B�[m walkdir v1.0.7
�(B�[m�[32m�[1m   Compiling�(B�[m fixedbitset v0.1.5
�(B�[m�[32m�[1m   Compiling�(B�[m thread-id v3.0.0
�(B�[m�[32m�[1m   Compiling�(B�[m utf8-ranges v1.0.0
�(B�[m�[32m�[1m   Compiling�(B�[m thread_local v0.3.3
�(B�[m�[32m�[1m   Compiling�(B�[m futures v0.1.13 (https://github.com/alexcrichton/futures-rs#ac4f467b)
�(B�[m�[32m�[1m   Compiling�(B�[m log v0.3.7
�(B�[m�[32m�[1m   Compiling�(B�[m engine v0.0.1 (file:///home/travis/build/pantsbuild/pants/src/rust/engine)
�(B�[m�[31m�[1merror:�(B�[m failed to run custom build command for `engine v0.0.1 (file:///home/travis/build/pantsbuild/pants/src/rust/engine)`
process didn't exit successfully: `/home/travis/build/pantsbuild/pants/src/rust/engine/target/release/build/engine-3da91a5290c14cc4/build-script-cffi_build` (exit code: 101)
--- stdout
TARGET = Some("i686-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("i686-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("i686-unknown-linux-gnu")
TARGET = Some("i686-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_i686-unknown-linux-gnu = None
CC_i686_unknown_linux_gnu = None
TARGET_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
CROSS_COMPILE = None
TARGET = Some("i686-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_i686-unknown-linux-gnu = None
CFLAGS_i686_unknown_linux_gnu = None
TARGET_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m32" "-march=i686" "-o" "/home/travis/build/pantsbuild/pants/src/rust/engine/target/i686-unknown-linux-gnu/release/build/engine-7e86c549adbce40c/out/src/cffi/native_engine.o" "-c" "src/cffi/native_engine.c"
cargo:warning=src/cffi/native_engine.c:2:20: fatal error: Python.h: No such file or directory
cargo:warning= #include <Python.h>
cargo:warning=                    ^
cargo:warning=compilation terminated.
ExitStatus(ExitStatus(256))


command did not execute successfully, got: exit code: 1



--- stderr
thread 'main' panicked at 'explicit panic', /home/travis/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.45/src/lib.rs:1152
note: Run with `RUST_BACKTRACE=1` for a backtrace.

�(B�[m�[31m�[1merror:�(B�[m build failed
�(B�[m�[32m�[1m   Compiling�(B�[m same-file v0.1.3
�(B�[m�[32m�[1m   Compiling�(B�[m glob v0.2.11
�(B�[m�[32m�[1m   Compiling�(B�[m libc v0.2.21
�(B�[m�[32m�[1m   Compiling�(B�[m memchr v1.0.1
�(B�[m�[32m�[1m   Compiling�(B�[m lazy_static v0.2.4
�(B�[m�[32m�[1m   Compiling�(B�[m void v1.0.2
�(B�[m�[32m�[1m   Compiling�(B�[m num_cpus v1.3.0
�(B�[m�[32m�[1m   Compiling�(B�[m unreachable v0.1.1
�(B�[m�[32m�[1m   Compiling�(B�[m fnv v1.0.5
�(B�[m�[32m�[1m   Compiling�(B�[m xattr v0.1.11
�(B�[m�[32m�[1m   Compiling�(B�[m walkdir v1.0.7
�(B�[m�[32m�[1m   Compiling�(B�[m constant_time_eq v0.1.2
�(B�[m�[32m�[1m   Compiling�(B�[m thread-id v3.0.0
�(B�[m�[32m�[1m   Compiling�(B�[m log v0.3.7
�(B�[m�[32m�[1m   Compiling�(B�[m thread_local v0.3.3
�(B�[m�[32m�[1m   Compiling�(B�[m fixedbitset v0.1.5
�(B�[m�[32m�[1m   Compiling�(B�[m aho-corasick v0.6.3
�(B�[m�[32m�[1m   Compiling�(B�[m filetime v0.1.10
�(B�[m�[32m�[1m   Compiling�(B�[m tar v0.4.10 (https://github.com/alexcrichton/tar-rs#f30ccbbe)
�(B�[m�[32m�[1m   Compiling�(B�[m regex-syntax v0.4.0
�(B�[m�[32m�[1m   Compiling�(B�[m crossbeam v0.2.10
�(B�[m�[32m�[1m   Compiling�(B�[m engine v0.0.1 (file:///home/travis/build/pantsbuild/pants/src/rust/engine)
�(B�[m�[31m�[1merror:�(B�[m failed to run custom build command for `engine v0.0.1 (file:///home/travis/build/pantsbuild/pants/src/rust/engine)`
process didn't exit successfully: `/home/travis/build/pantsbuild/pants/src/rust/engine/target/release/build/engine-3da91a5290c14cc4/build-script-cffi_build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-gnu")
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-o" "/home/travis/build/pantsbuild/pants/src/rust/engine/target/x86_64-unknown-linux-gnu/release/build/engine-7e86c549adbce40c/out/src/cffi/native_engine.o" "-c" "src/cffi/native_engine.c"
cargo:warning=src/cffi/native_engine.c:2:20: fatal error: Python.h: No such file or directory
cargo:warning= #include <Python.h>
cargo:warning=                    ^
cargo:warning=compilation terminated.
ExitStatus(ExitStatus(256))


command did not execute successfully, got: exit code: 1



--- stderr
thread 'main' panicked at 'explicit panic', /home/travis/.cache/pants/rust-toolchain/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.45/src/lib.rs:1152
note: Run with `RUST_BACKTRACE=1` for a backtrace.

�(B�[m�[31m�[1merror:�(B�[m build failed

travis_time:end:1f55d3e0:start=1491685175049594319,finish=1491685257550077113,duration=82500482794
...
failed to deploy
The issue being cargo:warning=src/cffi/native_engine.c:2:20: fatal error: Python.h: No such file or directory. Need some work on the .travis.yml to ensure the python headers exist and are findable by rust.

Closing comment (2017-04-09T19:55:42Z): dupe of #4436