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

SWEB no longer compiles with GCC 13 #292

Open
Ferdi265 opened this issue Mar 24, 2023 · 3 comments
Open

SWEB no longer compiles with GCC 13 #292

Ferdi265 opened this issue Mar 24, 2023 · 3 comments

Comments

@Ferdi265
Copy link
Contributor

Ferdi265 commented Mar 24, 2023

GCC 13 will break SWEB again: GCC 13 Changelog

  • support for STABS will be removed
    (this breaks some debug info stuff still used by x86_32 and arm targets; this would require porting over to DWARF debug info, if STABS is still used there)
  • GCC now supports __is_convertible as a builtin
    (this breaks <ustl/uttraits.h>, but is easily fixed by using the code path already used for clang)

Tested with GCC snapshot builds from here: https://jwakely.github.io/pkg-gcc-latest/

@Woazboat
Copy link
Contributor

STABS is already deprecated since at least 12 afaik? (Which already caused SWEB compilation to fail due to Werror)

Haven't tested with GCC 13, but those problems should be fixed by #287 by switching to DWARF and replacing the ustl.

@Ferdi265
Copy link
Contributor Author

Ferdi265 commented Mar 24, 2023

That sounds great!

The quick fix with ustl is mainly stated here for completeness and for students of the current semester that develop on Arch, Fedora, or OpenSUSE Tumbleweed, which will probably get GCC 13 soon.

Woazboat added a commit to Woazboat/sweb that referenced this issue Mar 25, 2023
@Woazboat
Copy link
Contributor

I created a PR with a fix for the builtin in the meantime

dgruss pushed a commit that referenced this issue May 19, 2023
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

2 participants