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

Raspberry PI Compile immediately Seg Faults #313

Open
jasonbrianhall opened this issue Mar 29, 2024 · 2 comments
Open

Raspberry PI Compile immediately Seg Faults #313

jasonbrianhall opened this issue Mar 29, 2024 · 2 comments

Comments

@jasonbrianhall
Copy link

I'm trying to get it working on my raspberry pi. It compiles just fine on raspian but immediately seg faults when I run the code. Not sure if it's the difference in architecture or what but it doesn't work.

@dstarosta
Copy link
Contributor

It has been about 8 years since I have compiled C++ code for Raspbrerry PI. It requires setting a few compiler flags to prevent illegal instruction errors. "march" and "mcpu" flags need to be set. It also uses hard floating point.

Here is what I found on stack exchange for older versions of it.
https://raspberrypi.stackexchange.com/questions/2046/which-cpu-flags-are-suitable-for-gcc-on-raspberry-pi

@vlasta-labsky
Copy link

Check #315

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

3 participants