-
Notifications
You must be signed in to change notification settings - Fork 109
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
./install-common.sh: line 20: ./serial-macos-latest/serial: Bad CPU type in executable #124
Comments
The tool 'serial-macos-latest' in the
Effectively replacing the 'wrong' binary. |
It would be trivial to modify the install script(s) to handle that more elegantly. Could I trouble someone with an ARM based mac to post the output of: If there's interest in making both binaries available it would be just as easy to have the script download and use the correct one. |
|
Unfortunately @rbomze 's suggestion doesn't work, at least not as trivially as it seemed it might. The compile gets hung up on missing x86_64 symbols somewhere in/around So if @allpoints wants to hook us poor x86 Mac owners up with a working |
@thejoelpatrol thanks, I'm can fold that into the install once i get word on if #133 has been accepted. @rossgrady I'll see if I can find some time later today to do that |
Ran into this and got a successful install on an older MacBook (Intel dual core), running macOS 14.7.4. To get the replacement 'serial', these were my steps (vanilla MacBook):
Now, the Note: many thanks to Cooper Quintin for the help. |
Update (adding to the above from @wisxxx ): On my 2020 Intel Mac running Sequoia, something about my toolchain (I'm not a Rust dev but heaven only knows what's left lying around) was throwing a bunch of Since I'm building just-for-me and not for lowest-common-denominator distribution, Teh Internets helped me to realize I could do I now have a rooted Orbis device running Rayhunter. Thanks, y'all! |
ack, yeah this is unfortunately a limitation of the Github-hosted CI we're using to build our releases -- there's no (free) way to build for x86 macOS. i think for now, we'll add a section to the README covering what @wisxxx outlined. |
I tried the @wisxxx solution, but can't get it to link. I'm on a Intel MacBook running Sequoia 15.3.1.
|
@hoopgeek I ran into the same issue on MacOs 14.7.4. |
@mmilleror , solved. Add the following to ~/.cargo/config
Found this answer here: https://stackoverflow.com/questions/28124221/error-linking-with-cc-failed-exit-code-1 |
I successfully got this working on an Intel Mac (macOS 14.6.1). If anyone wants to see a step-by-step here's what worked:
[target.x86_64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
cd rayhunter-0.2.5/serial
cargo build --release --bin='serial'
cp target/release/serial /path/to/release/serial-macos-latest/serial
export ANDROID_SERIAL=<your_device_id> # Get ID from `adb devices`
./install-mac.sh Just as expected, the web interface is available at Credit to @hoopgeek for the Cargo config fix and @wisxxx for the initial compilation steps. |
@hoopgeek I had the same experience as @NyarlaCat. I was able to flash my device and collect packets. |
Running ./install-mac.sh on a 2019 Macbook Pro (2.6 GHz 6-Core Intel Core i7) I get the following error:
% ./install-mac.sh
Using adb at ./platform-tools/adb
Force a switch into the debug mode to enable ADB
./install-common.sh: line 20: ./serial-macos-latest/serial: Bad CPU type in executable
The text was updated successfully, but these errors were encountered: