clang toolchain doesn't failing to compile properly
Sigvart Hovland
https://github.com/zephyrproject-rtos/zephyr/blob/e3d39032eb91973c6fc696696d442fa0f61f92c4/arch/arm/core/aarch32/thread.c#L449
toggle quoted messageShow quoted text
Pretty sure it was around here. Could be that I'm wrong(haven't found the code that worked I think I deleted the branch) where start_of_main_stack would disappear when I used Clang in combination with GNU tools. Or it was one of _current = main_thread; since it worked when you turned of multi-threading. My biggest gut feeling is that it is start_of_main_stack since it only has assignments and would be viewed from the compiler as never used if it does not look at the assembly.
-----Original Message-----
From: Kumar Gala <kumar.gala@linaro.org> Sent: Thursday, February 6, 2020 4:58 PM To: Hovland, Sigvart <Sigvart.Hovland@nordicsemi.no> Cc: akira.kato@biosensics.com; devel@lists.zephyrproject.org Subject: Re: [Zephyr-devel] clang toolchain doesn't failing to compile properly Sigvart, I’d really appreciate if you could try and remember where you might have added that print to deal with the in-line asm getting optimized away. - k On Jan 31, 2020, at 5:54 AM, Sigvart Hovland <sigvart.hovland@nordicsemi.no> wrote:
|
|
Kumar Gala
Sigvart,
toggle quoted messageShow quoted text
I’d really appreciate if you could try and remember where you might have added that print to deal with the in-line asm getting optimized away. - k
On Jan 31, 2020, at 5:54 AM, Sigvart Hovland <sigvart.hovland@nordicsemi.no> wrote:
|
|
Sigvart Hovland
What target are you trying to compile for?
From: devel@... <devel@...>
On Behalf Of Akira Kato via Lists.Zephyrproject.Org
Sent: Thursday, January 30, 2020 7:13 PM To: devel@... Cc: devel@... Subject: [Zephyr-devel] clang toolchain doesn't failing to compile properly
Hi, I don't know if this is the proper place to ask technical question about zephyr but I have tried stackoverflow and started github issue with no help. I am new to zephyr so I followed the getting started guide. Here's the post I made: https://stackoverflow.com/questions/59976179/zephyr-error-using-llvm-works-fine-with-default-toolchain The problem is described there with the error logs. Thanks, Akira
|
|