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

Fix regal build after recent clang change. NFC #21885

Merged
merged 1 commit into from
May 2, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented May 2, 2024

There appears to be a typo in Regal's linear.h:

linear.h:585:26: error: no member named 'negate' in 'Vec4<T>'; did you mean 'Negate'?
  585 |       Vec4 rv(*this); rv.negate(); return rv;
      |                          ^~~~~~
      |                          Negate
linear.h:534:11: note: 'Negate' declared here
  534 |     void  Negate() {

This was not an issue until llvm/llvm-project#90152 landed.

Adding -fdelayed-template-parsing seems to fix the issue.

There appears to be a typo in Regal's linear.h:

```
linear.h:585:26: error: no member named 'negate' in 'Vec4<T>'; did you mean 'Negate'?
  585 |       Vec4 rv(*this); rv.negate(); return rv;
      |                          ^~~~~~
      |                          Negate
linear.h:534:11: note: 'Negate' declared here
  534 |     void  Negate() {
```

This was not an issue until llvm/llvm-project#90152
landed.

Adding `-fdelayed-template-parsing` seems to fix the issue.
@sbc100 sbc100 requested a review from dschuff May 2, 2024 21:52
@sbc100
Copy link
Collaborator Author

sbc100 commented May 2, 2024

Separately I wonder if we should just delete the regal port: nigels-com/regal#4

@sbc100 sbc100 merged commit b94001f into emscripten-core:main May 2, 2024
12 of 29 checks passed
@sbc100 sbc100 deleted the fix_regal branch May 2, 2024 22:20
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 6, 2024
The regal project seems like its been dead for many years and the repo
from which it was forked doesn't seem to exist anymore:
https://github.com/p3/regal

I'm not sure we want to continue supporting it as first class thing if
there is nobody upstream to report issues to.  If it turns out that
there are folks who really depend on this we can consider moving it into
`tools/ports/conrib`.

See emscripten-core#21885
@sbc100 sbc100 mentioned this pull request May 6, 2024
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.

None yet

2 participants