Closed classicrocker883 closed 11 months ago
it must have something to do with src/HAL/HC32F46X because I tried using a previous older branch and it got farther in the build, it at least started to compile where as this recent one did not.
but 3 weeks ago or so I was able to build using actions fine. so somewhere in that timeframe, i believe it could be inside the HAL, but also it could be in a framework-arduino/ddl or platform....
hey were getting somewhere!
so as I suspected, it was in the hc32.ini file... I changed some things...
then got this error
Compiling .pio/build/HC32F460xCxx_AQUILA_V101/FrameworkArduino/CORE/IPAddress.cpp.o
In file included from /home/runner/.platformio/packages/framework-arduino-hc32f46x/cores/arduino/IPAddress.cpp:22:
/home/runner/.platformio/packages/framework-arduino-hc32f46x/cores/arduino/Arduino.h:73:10: fatal error: drivers/usart/Usart.h: No such file or directory
73 | #include "drivers/usart/Usart.h"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
what I did was comment out
#-D __CORE_DEBUG
#-D __DEBUG_SHORT_FILENAMES
#-D __CORE_DEBUG_SHORT_FILENAMES
#-D __CORE_DEBUG_OMIT_PANIC_MESSAGE
but most importantly, I removed the parentheses here -D F_CPU=SYSTEM_CLOCK_FREQUENCIES.pclk1
ill keep trying to see what works.
perhaps #include "drivers/usart/Usart.h"
should be renamed????
to #include "drivers/usart/usart.h"
also, inside framework-arduino-hc32f46x/cores/arduino/drivers/usart/usart.h
#include "drivers\usart\usart.h"
can be omitted?? because it is including itself which is a deadend ya know?
could you provide full logs for the workflow run, and the source of the workflow?
i'm not sure if github allows this, but you might be able to share a link to the workflow run.
the odd thing is the workflow worked normally before, despite the line in question causing the error now has been there the whole time.
8_Run PlatformIO.txt
this .txt is where the error shows.
0_Build BL-Touch ProUI Files (HC32).txt
this also like the same as first, error shows up near end of file.
logs_6384.zip
I just pulled two of the .txt files showing the error. here is the full log download if you wish to see the whole workflow.
you've mentioned that the workflow worked normally before. Do you happen to have logs of a previous (successfull) run?
i've started investigating now. All issues here are reproducible only on linux, windows works fine.
/bin/sh: 1: Syntax error: "(" unexpected
this seems to be caused because platformio runs all compiler commands in the sh
command interpreter, which for whatever reason tries to interpret it as more than just a literal string.
just removing the parentheses as you've suggested seems to work without any issues.
fatal error: drivers/usart/Usart.h: No such file or directory
this seems to be caused because on linux, filenames are case-sensitive, while on windows they are not.
And for some reason, the header drivers/usart/Usart.h
is spelled drivers/usart/usart.h
(lowercase 'U') on github.
this is really weird to me, because i've always spelled it with a uppercase 'U', and even in my local repo it's spelled that way... so really weird issue, but i'll just rename the file to be spelled correctly and that should be it.
also, inside framework-arduino-hc32f46x/cores/arduino/drivers/usart/usart.h
include "drivers\usart\usart.h" can be omitted?? because it is including itself which is a deadend ya know?
oops, i'll remove it
with these changes, i've sucessfully build the firmware on WSL, so there shouldn't be any issues building in a github action workflow.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
this I believe has more to do with platform and framework repo.
but I was trying to do a github action to build the firmware and it has always worked before, now I get this error
not sure where or what it means by syntax error. but apparently there is an extra "(" or something.
it compiles fine using VSCode, however not using github actions. not sure why or what changed.
Bug Timeline
No response
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
No response
Version of Marlin Firmware
recent version
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
I did receive this Output though in VSCode. it must be related somehow.
but it has since gone away after reloading the workspace.