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

Fixup build on modern gcc #26

Merged
merged 2 commits into from
Jul 20, 2024
Merged

Fixup build on modern gcc #26

merged 2 commits into from
Jul 20, 2024

Conversation

neochapay
Copy link
Contributor

No description provided.

@Ralim
Copy link
Collaborator

Ralim commented Jan 21, 2023

This is excellent, have you tested flashing after build and all features working ?

Which modern gcc did you use ?

@neochapay
Copy link
Contributor Author

This is excellent, have you tested flashing after build and all features working ?

I'm scared. I only have one buds ^_^

Which modern gcc did you use ?

gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04)

@Ralim
Copy link
Collaborator

Ralim commented Jan 22, 2023

Thats fair enough; happy to do the testing here.

Sad to report that while this does make the build work; the resulting file wont run on the buds. They just refuse to boot the program.

I'm suspect that something changes the start of the file that the bootloader is looking at to decide if it starts the file or not.
That is my guess though (not certain; have not dug into it)

@shymega
Copy link
Collaborator

shymega commented Jun 7, 2023

I'm not sure what the issue is here either. Maybe it's specific to your buds, @Ralim?

I would test this PR myself, but I don't have any buds yet.

I'm looking to base my PR for conversion to CMake on this PR. So if we could rebase it against mainline, that'd be great. Or I could do that, and push, if I had access (not that I'm asking for it, but I'd be happy to rebase this PR against main and get it ready for testing).

Cheers.

@Ralim
Copy link
Collaborator

Ralim commented Jun 9, 2023

@shymega
This is not buds specific sadly and should not be used as a base. This also fails for me on my buds and dev board, with the BES entirely refusing to boot rom.
It will need time to investigate which of the precisely placed structures is being moved into a bad location or optimised out.

Would basically need to make build as deterministic as possible then run it on both compilers and compare the output section by section to find it.

In the past when I ran into this, cleaning up the compiler chain helped flush out the quirks that caused these issues.

shymega added a commit to shymega/OpenPineBuds that referenced this pull request Jul 2, 2023
Closes pine64#26, this is the rebased and newer version.

Co-authored-by: Dom Rodriguez <[email protected]>
shymega added a commit to shymega/OpenPineBuds that referenced this pull request Oct 28, 2023
Closes pine64#26, this is the rebased and newer version.

Co-authored-by: Dom Rodriguez <[email protected]>
@shymega
Copy link
Collaborator

shymega commented Nov 5, 2023

@neochapay I want to get your opinion on something. I opened #55 because I didn't want to mess up your PR, but it messes the tracker.

Do you mind if we force-push your PR to fix the merge conflicts? I'm not keen on opening yet another PR to rebase.

I am looking forward to your response.

@neochapay neochapay force-pushed the build_fix branch 3 times, most recently from 9d6d64c to faa37ca Compare November 6, 2023 07:40
@neochapay
Copy link
Contributor Author

@shymega i was update and fix all conflicts

@shymega
Copy link
Collaborator

shymega commented Nov 10, 2023

@neochapay Thanks. However, my query was more relating to whenever we, maintainers, can edit your PR. I see we can push, but I want to get your explicit approval.

shymega added a commit that referenced this pull request May 12, 2024
Closes #26, this is the rebased and newer version.

Co-authored-by: Dom Rodriguez <[email protected]>
@shymega
Copy link
Collaborator

shymega commented Jul 19, 2024

Rebased against main.

@Ralim Can we get this merged once tests pass?

@Ralim Ralim enabled auto-merge July 20, 2024 05:49
@Ralim Ralim merged commit da7de39 into pine64:main Jul 20, 2024
1 check passed
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.

3 participants