Skip to content

fails to build for powerpc-unknown-linux-gnu #4880

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

Closed
Un1q32 opened this issue Nov 24, 2022 · 5 comments
Closed

fails to build for powerpc-unknown-linux-gnu #4880

Un1q32 opened this issue Nov 24, 2022 · 5 comments

Comments

@Un1q32
Copy link

Un1q32 commented Nov 24, 2022

AtomicU64 is not defined on that arch.

I tried fixing it for myself by manually changing all of them to AtomicU32, but then i get illegal hardware instruction when i try to run it. I have no idea what I'm doing so I can't do much more then that

@archseer
Copy link
Member

For reference, what device are you trying to run this on? I thought PowerPC was a dead architecture.

There's a single AtomicU64 you should be able to replace with a AtomicU32 here:

request_counter: AtomicU64,

I don't own a device to test this on so you'll need to provide more details on the error (with RUST_BACKTRACE if possible). It's probably SIMD instructions somewhere.

@Un1q32
Copy link
Author

Un1q32 commented Nov 25, 2022

@archseer powerpc IS a dead arch (except in some servers). I'm trying to run on very old hardware (older then me) an iMac G4

@Un1q32
Copy link
Author

Un1q32 commented Nov 25, 2022

RUST_BACKTRACE=1 ./hx gives illegal hardware instruction.

@gabydd
Copy link
Member

gabydd commented Nov 25, 2022

seems like you can useRUSTFLAGS="-Ctarget-cpu=e500" got it from here

@pascalkuthe
Copy link
Member

It seems like the solution by @gabydd should fix this so I am closing this issue.
If you are still having problems you can reopen the issue.

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

No branches or pull requests

4 participants