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

addpatch: freehdl #4454

Merged
merged 1 commit into from
Jan 18, 2025
Merged

addpatch: freehdl #4454

merged 1 commit into from
Jan 18, 2025

Conversation

cybaol
Copy link
Contributor

@cybaol cybaol commented Jan 17, 2025

No description provided.

@Xeonacid
Copy link
Collaborator

Could you leave some comment why these changes is needed to help maintaining? Please also try to upstream them if applicable. Thanks.

freehdl/riscv64.patch Outdated Show resolved Hide resolved
Comment on lines 7 to 14
- rm ieee/math_real.cc \
- ieee/numeric_bit.cc \
- ieee/numeric_std.cc \
- ieee/std_logic_1164.cc \
- ieee/std_logic_arith.cc \
- ieee/std_logic_signed.cc \
- ieee/std_logic_unsigned.cc \
- ieee/vital_timing.cc
Copy link
Collaborator

@Xeonacid Xeonacid Jan 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this? Is the removal needed on x86_64?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not must, I have compiled on x86_64, all passed,
If removed, It will occurs some errors on both x86_64 and riscv64.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If removed, It will occurs some errors on both x86_64 and riscv64.

What error would occur? Removing some source code deserves an explanation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove some source code, here is build log: freehdl-0.0.8-13-riscv64-build.log

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove some source code, here is build log: freehdl-0.0.8-13-riscv64-build.log

Could you point out which line indicates the related error? I'm really confused. 😕

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically, our principle is to be as consistent as we can with the original build script, or give a concrete sound reason why they are different (not just that there will be core dumped).

In the original build script, they were already rm these .cc files, after reading the discussion thread, I also still get confused why you want to remove the rm .cc lines.

Copy link
Contributor

@SpriteOvO SpriteOvO Jan 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If these .cc files are supposed to be regenerated, and freehdl_v2cc will 'core dumped', then we should figure out why it crashes and try to fix that, instead of leaving an unknown bug there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm keeping these rm .cc lines now, looking for another way to eliminate core dump or directly report to upstream.

Copy link
Contributor Author

@cybaol cybaol Jan 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I read the codebase and figured this should have no bad effects, so let's try it! Thanks for the explanation.

BTW may you try to register an account on Arch Linux GitLab to report the issue? We don't want to steal your patch. :)

OK, I register an account to report to upstream.

Copy link
Collaborator

@Xeonacid Xeonacid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block here until the conversation above get resolved.

Copy link
Contributor

@SpriteOvO SpriteOvO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see you fixed the bug. If you have time, it would be nice to contact the package & Arch upstream to apply the fix in their repo.

Thanks for your work on this!

@felixonmars felixonmars merged commit 09472f4 into felixonmars:master Jan 18, 2025
1 check passed
@cybaol cybaol deleted the freehdl branch January 19, 2025 01:19
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.

4 participants