Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to get MacOS support. #1

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Attempt to get MacOS support. #1

merged 1 commit into from
Feb 1, 2017

Conversation

frewsxcv
Copy link
Member

No description provided.

@frewsxcv
Copy link
Member Author

Spoilers, this doesn't work:

> cargo run -- run
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/cargobomb run`
boom! program args: run
boom! running 4 tests
boom! creating temporary build dir for lazy_static-0.2.2 in ./work/local/test-source/default/stable
boom! copying ./work/shared/crates/reg/lazy_static-0.2.2 to ./work/local/test-source/default/stable
boom! using lockfile ./work/ex/default/lockfiles/lazy_static-0.2.2.lock
boom! logging to ./work/ex/default/res/stable/reg/lazy_static-0.2.2/log.txt
boom! testing lazy_static-0.2.2 against stable for default
boom! running: cargo +stable build --frozen
boom! creating container for: cargo +stable build --frozen
boom! running `docker create -v /Users/corey/dev/cargobomb/./work/local/test-source/default/stable:/source:ro -v /Users/corey/dev/cargobomb/./work/local/cargo-home:/cargo-home:ro -v /Users/corey/dev/cargobomb/./work/local/rustup-home:/rustup-home:ro -v /Users/corey/dev/cargobomb/./work/local/target-dirs/default/stable:/target:rw -e USER_ID=502 -e CMD=cargo +stable build --frozen cargobomb`
blam! 715928bc96db5f6e83b51d37ba0e2d46fca0d71d4111104048c0cd030234353e
boom! running `docker start -a 715928bc96db5f6e83b51d37ba0e2d46fca0d71d4111104048c0cd030234353e`
kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error
boom! running `docker rm -f 715928bc96db5f6e83b51d37ba0e2d46fca0d71d4111104048c0cd030234353e`
blam! 715928bc96db5f6e83b51d37ba0e2d46fca0d71d4111104048c0cd030234353e
boom! test result! ex: default, c: lazy_static-0.2.2, tc: stable, r: build-fail
boom! file: ./work/ex/default/res/stable/reg/lazy_static-0.2.2/results.txt
boom! progress: 1 / 4
boom! 1 crates tested in 2 s. 2.00 s/crate. 3 crates remaining. ~6 seconds
boom! results: 1 build-fail / 0 test-fail / 0 test-pass / 0 errors
boom! creating temporary build dir for lazy_static-0.2.2 in ./work/local/test-source/default/beta
boom! copying ./work/shared/crates/reg/lazy_static-0.2.2 to ./work/local/test-source/default/beta
boom! using lockfile ./work/ex/default/lockfiles/lazy_static-0.2.2.lock
boom! logging to ./work/ex/default/res/beta/reg/lazy_static-0.2.2/log.txt
boom! testing lazy_static-0.2.2 against beta for default
boom! running: cargo +beta build --frozen
boom! creating container for: cargo +beta build --frozen
boom! running `docker create -v /Users/corey/dev/cargobomb/./work/local/test-source/default/beta:/source:ro -v /Users/corey/dev/cargobomb/./work/local/cargo-home:/cargo-home:ro -v /Users/corey/dev/cargobomb/./work/local/rustup-home:/rustup-home:ro -v /Users/corey/dev/cargobomb/./work/local/target-dirs/default/beta:/target:rw -e USER_ID=502 -e CMD=cargo +beta build --frozen cargobomb`
blam! 60920845e108d81af7e4c5f3d0b8f649d121bdcb0f7734264a042289b07ed95f
boom! running `docker start -a 60920845e108d81af7e4c5f3d0b8f649d121bdcb0f7734264a042289b07ed95f`
kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error
boom! running `docker rm -f 60920845e108d81af7e4c5f3d0b8f649d121bdcb0f7734264a042289b07ed95f`
blam! 60920845e108d81af7e4c5f3d0b8f649d121bdcb0f7734264a042289b07ed95f
boom! test result! ex: default, c: lazy_static-0.2.2, tc: beta, r: build-fail
boom! file: ./work/ex/default/res/beta/reg/lazy_static-0.2.2/results.txt
boom! progress: 2 / 4
boom! 2 crates tested in 3 s. 1.50 s/crate. 2 crates remaining. ~2 seconds
boom! results: 2 build-fail / 0 test-fail / 0 test-pass / 0 errors
boom! creating temporary build dir for https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e in ./work/local/test-source/default/stable
boom! copying ./work/shared/crates/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e to ./work/local/test-source/default/stable
boom! logging to ./work/ex/default/res/stable/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e/log.txt
boom! testing https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e against stable for default
boom! running: cargo +stable build --frozen
boom! creating container for: cargo +stable build --frozen
boom! running `docker create -v /Users/corey/dev/cargobomb/./work/local/test-source/default/stable:/source:ro -v /Users/corey/dev/cargobomb/./work/local/cargo-home:/cargo-home:ro -v /Users/corey/dev/cargobomb/./work/local/rustup-home:/rustup-home:ro -v /Users/corey/dev/cargobomb/./work/local/target-dirs/default/stable:/target:rw -e USER_ID=502 -e CMD=cargo +stable build --frozen cargobomb`
blam! 00476b7742c3bc7b5f8efbdf77e046650ae7c37c7a50d86cb93396da49062e26
boom! running `docker start -a 00476b7742c3bc7b5f8efbdf77e046650ae7c37c7a50d86cb93396da49062e26`
kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error
boom! running `docker rm -f 00476b7742c3bc7b5f8efbdf77e046650ae7c37c7a50d86cb93396da49062e26`
blam! 00476b7742c3bc7b5f8efbdf77e046650ae7c37c7a50d86cb93396da49062e26
boom! test result! ex: default, c: https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e, tc: stable, r: build-fail
boom! file: ./work/ex/default/res/stable/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e/results.txt
boom! progress: 3 / 4
boom! 3 crates tested in 5 s. 1.67 s/crate. 1 crates remaining. ~1 seconds
boom! results: 3 build-fail / 0 test-fail / 0 test-pass / 0 errors
boom! creating temporary build dir for https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e in ./work/local/test-source/default/beta
boom! copying ./work/shared/crates/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e to ./work/local/test-source/default/beta
boom! logging to ./work/ex/default/res/beta/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e/log.txt
boom! testing https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e against beta for default
boom! running: cargo +beta build --frozen
boom! creating container for: cargo +beta build --frozen
boom! running `docker create -v /Users/corey/dev/cargobomb/./work/local/test-source/default/beta:/source:ro -v /Users/corey/dev/cargobomb/./work/local/cargo-home:/cargo-home:ro -v /Users/corey/dev/cargobomb/./work/local/rustup-home:/rustup-home:ro -v /Users/corey/dev/cargobomb/./work/local/target-dirs/default/beta:/target:rw -e USER_ID=502 -e CMD=cargo +beta build --frozen cargobomb`
blam! d7590747938c9130666a18cda0a849529be0e6ffda80fc088e3aa9afc2b9476e
boom! running `docker start -a d7590747938c9130666a18cda0a849529be0e6ffda80fc088e3aa9afc2b9476e`
kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error
boom! running `docker rm -f d7590747938c9130666a18cda0a849529be0e6ffda80fc088e3aa9afc2b9476e`
blam! d7590747938c9130666a18cda0a849529be0e6ffda80fc088e3aa9afc2b9476e
boom! test result! ex: default, c: https://github.com/brson/hello-rs#9da3b03b25c2dfa8a8b8a69db503c48dbd08610e, tc: beta, r: build-fail
boom! file: ./work/ex/default/res/beta/gh/brson.hello-rs.9da3b03b25c2dfa8a8b8a69db503c48dbd08610e/results.txt
boom! progress: 4 / 4
boom! 4 crates tested in 7 s. 1.75 s/crate. 0 crates remaining. ~0 seconds
boom! results: 4 build-fail / 0 test-fail / 0 test-pass / 0 errors
boom! command succeeded
boom! logs: ./work/ex/default/res/stable/reg/lazy_static-0.2.2/log.txt
boom! duration: 7s

In particular:

kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error

Thoughts on why this might be happening?

@brson
Copy link
Contributor

brson commented Feb 1, 2017

Wow! Thank you. You are brave for digging into the cargobomb source.

kablam! /run2.sh: line 9: /cargo-home/bin/cargo: cannot execute binary file: Exec format error

There is probably a hard-coded use of the Linux target for whatever it's doing.

@brson brson merged commit 847e62a into rust-lang:master Feb 1, 2017
@frewsxcv frewsxcv deleted the mac branch February 1, 2017 01:19
@frewsxcv
Copy link
Member Author

frewsxcv commented Feb 7, 2017

There is probably a hard-coded use of the Linux target for whatever it's doing.

Hmm, not sure I understand. I was just running the standard out-of-the-box cargo run -- run with whatever crates you specified to test on, so I'd assume that people on Linux hosts would also run into this issue. Maybe not, I'll have to look again at the source sometime. Very neat project :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants