Skip to content

Instantly share code, notes, and snippets.

@koba-e964
Created April 18, 2019 13:18
Show Gist options
  • Save koba-e964/c9ff5ab39b0ef510d0a893af54f4c0a4 to your computer and use it in GitHub Desktop.
Save koba-e964/c9ff5ab39b0ef510d0a893af54f4c0a4 to your computer and use it in GitHub Desktop.
$ cargo build
Compiling libc v0.2.51
Compiling liberasurecode v1.0.2 (/Users/hiroki_kobayashi/srcview/rust-liberasurecode)
error: failed to run custom build command for `liberasurecode v1.0.2 (/Users/hiroki_kobayashi/srcview/rust-liberasurecode)`
process didn't exit successfully: `/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-03e82565d13e637a/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
--- stderr
+ BUILD_DIR=/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build
+ MAKE_FLAGS=
+ case "$(uname)" in
++ uname
++ sysctl -n hw.ncpu
+ MAKE_FLAGS=-j4
+ git clone https://github.com/ceph/gf-complete.git
Cloning into 'gf-complete'...
+ cd gf-complete/
+ git checkout a6862d1
Note: checking out 'a6862d1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at a6862d1 Merge branch 'wip-signed-integer-overflow-cppcheck' into 'master'
+ ./autogen.sh
configure.ac:12: installing './compile'
configure.ac:12: installing './config.guess'
configure.ac:12: installing './config.sub'
configure.ac:11: installing './install-sh'
configure.ac:11: installing './missing'
parallel-tests: installing './test-driver'
+ ./configure --disable-shared --with-pic --prefix /Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
+ make -j4 install
+ cd ../
+ git clone https://github.com/ceph/jerasure.git
Cloning into 'jerasure'...
+ cd jerasure/
+ git checkout de1739c
Note: checking out 'de1739c'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at de1739c Merge branch 'wip-signed-integer-overflow-cppcheck' into 'master'
+ autoreconf --force --install
configure.ac:18: installing 'build-aux/compile'
configure.ac:18: installing 'build-aux/config.guess'
configure.ac:18: installing 'build-aux/config.sub'
configure.ac:12: installing 'build-aux/install-sh'
configure.ac:12: installing 'build-aux/missing'
Examples/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
Makefile.am: installing './INSTALL'
+ CFLAGS=-I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/include
+ LDFLAGS=-L/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/lib
+ ./configure --disable-shared --enable-static --with-pic --prefix /Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build
configure: WARNING: gf_complete.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gf_complete.h: proceeding with the compiler's result
configure: WARNING: gf_general.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gf_general.h: proceeding with the compiler's result
configure: WARNING: gf_method.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gf_method.h: proceeding with the compiler's result
configure: WARNING: gf_rand.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gf_rand.h: proceeding with the compiler's result
+ make -j4 install
+ cd ../
+ git clone https://github.com/openstack/liberasurecode.git
Cloning into 'liberasurecode'...
+ cd liberasurecode/
+ git checkout 1.5.0
Note: checking out '1.5.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 24038b3 Merge "Release 1.5.0"
+ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:32: installing './compile'
configure.ac:35: installing './config.guess'
configure.ac:35: installing './config.sub'
configure.ac:34: installing './install-sh'
configure.ac:34: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
+ CFLAGS='-I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/jerasure/include -I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/include'
++ uname
+ '[' Darwin == Darwin ']'
+ CFLAGS='-I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/jerasure/include -I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/include -Wno-error=address-of-packed-member'
+ CFLAGS='-I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/jerasure/include -I/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/include -Wno-error=address-of-packed-member'
+ LIBS=-lJerasure
+ LDFLAGS=-L/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/lib
+ ./configure --disable-shared --with-pic --prefix /Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build
configure: error: in `/Users/hiroki_kobayashi/srcview/rust-liberasurecode/target/debug/build/liberasurecode-8278567ad8c5b89e/out/build/liberasurecode':
configure: error: C compiler cannot create executables
See `config.log' for more details
thread 'main' panicked at './install_deps.sh failed: exit-code=Some(77)', build.rs:28:17
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment