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

Is our TinyCC build on Windows setting -march correctly? #10856

Closed
Jarred-Sumner opened this issue May 6, 2024 · 1 comment · Fixed by #10884
Closed

Is our TinyCC build on Windows setting -march correctly? #10856

Jarred-Sumner opened this issue May 6, 2024 · 1 comment · Fixed by #10884
Assignees
Labels
crash An issue that could cause a crash windows An issue that only occurs on Windows

Comments

@Jarred-Sumner
Copy link
Collaborator

Where are we setting C flags when building TinyCC? How are we making sure that baseline builds are working correctly with TinyCC?

Run clang-cl -DTCC_TARGET_PE -DTCC_TARGET_X86_64 config.h -DC2STR -o c2str.exe conftest.c
Run .\c2str.exe .\include\tccdefs.h tccdefs_.h
# TODO: -MT
Run clang-cl libtcc.c -o tcc.obj "-DTCC_TARGET_PE" "-DTCC_TARGET_X86_64" "-O2" "-W2" "-Zi" "-MD" "-GS-" "-c"
Run lib "tcc.obj" "-OUT:tcc.lib"

It feels highly suspicious that so many of the "Illegal instruction" errors include a stack trace that points to TinyCC. Either something is going wrong while generating the stacktrace, or something is wrong with the TinyCC build.

Related issues:

@Jarred-Sumner Jarred-Sumner added the windows An issue that only occurs on Windows label May 6, 2024
@paperdave paperdave added the crash An issue that could cause a crash label May 7, 2024
@jexroid
Copy link

jexroid commented May 9, 2024

will this problem fixed in the next version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash windows An issue that only occurs on Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants