-
Notifications
You must be signed in to change notification settings - Fork 145
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
[Debian] Compiler bug: genassym.c -> assym.S #38
Comments
below is my fix: osfmk/arm/genassym.c | 7 +++++-- diff --git a/osfmk/arm/genassym.c b/osfmk/arm/genassym.c
genassym.o:
assym.s: genassym.o
${SOBJS}: assym.s 2.7.4 |
@nightsuns, can you please post the patch in a code block so I can copy/paste it? GitHub's markdown took over it 😃 |
Hey @nightsuns, please paste a readable patch. |
I'm glad I got a notification from this issue. I was working with the GitHub API at the time and had the idea of just getting the raw message. I don't know how to escape backticks on Github and this patch appears to have some... so, I'll just show you how to get the raw answer.
It'd be under the body element in the JSON response. You'll have to replace \n with actual newlines. |
that's my patch |
Oh thanks @wargio, do you think it would be possible to emulate ios with this kernel? |
Somehow the kernel is still not building, I followed the instructions and the patch didn't work. The assym.s file is empty in the Build folder. I'm kinda new at this stuff.... |
try with my fork. |
It failed with the same error. I'm on macOS 10.12.6. I know enough c and I understand what the makefile template was trying to do, but i'm not fluent with unix commands. I checked the build without the patch:
And got some definitions which were incomplete or something, but when i tried with the patch:
assym.S ended up empty. |
I have a this problem on debian:
when i compile the assym.S is totally empty.
looks like the compiler removes the macro when it expands it.
file: https://github.com/darwin-on-arm/xnu/blob/master/osfmk/arm/genassym.c#L111
i fixed it in this way:
on that file it becomes:
and i changed the makefile template:
File: https://github.com/darwin-on-arm/xnu/blob/master/osfmk/conf/Makefile.template#L123
to
Anybody knows a better why to fix this?
The text was updated successfully, but these errors were encountered: