-
Notifications
You must be signed in to change notification settings - Fork 134
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
Compile error with mingw64 / wsl (OCD-1042) #347
Comments
I can not try on windows now but can suggest you 2 solutions 1- Modify the
2 - Reconfigure the project by disabling the compiler error
Let me know if these solutions work for you. |
No I think the issue comes from the fact that --- src/target/espressif/esp_semihosting.c.orig 2024-11-22 16:39:58.688979902 +0100
+++ src/target/espressif/esp_semihosting.c 2024-11-22 16:41:50.689353023 +0100
@@ -726,10 +726,10 @@
}
retval = semihosting_read_fields(target, 1, fields);
if (retval == ERROR_OK) {
- int fd = semihosting_get_field(target, 0, fields);
- semihosting->result = FlushFileBuffers((uintptr_t)fd);
+ uint64_t fd = semihosting_get_field(target, 0, fields);
+ semihosting->result = fsync(fd);
semihosting->sys_errno = errno;
- LOG_DEBUG("fsync('%d')=%" PRId64, fd, semihosting->result);
+ LOG_DEBUG("fsync('%'" PRIu64 "')=%" PRId64, fd, semihosting->result);
}
break; By the way, really nice that Zephyr RTOS landed in the tree! |
Yes. Your solution is correct. We will fix the fd type there. Regarding Zephyr, it is not fully supported yet, but we do have an initial code base. We plan to improve it early next year. |
Fixed id a139429 |
Development Kit
esp32c6-devkitc
Module or chip used
esp32c6
Debug Adapter
ftdi
OpenOCD version
git
Operating System
Windows
Using an IDE ?
no
OpenOCD command line
no
JTAG Clock Speed
no
ESP-IDF version
no
Problem Description
Cross-compiling openocd-esp32 under wsl with x86_64-w64-mingw32 fails with the following error:
Debug Logs
No response
Expected behavior
Doesn't build.
Screenshots
No response
The text was updated successfully, but these errors were encountered: