-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
cc1plus.exe fatal error #4682
Comments
- Sorry, the same error occurs
El lun, 3 jul 2023 a las 14:58, Ivan Kravets ***@***.***>)
escribió:
… Could you try a direct declaration using interpolation? See docs and
examples here
https://docs.platformio.org/en/latest/projectconf/interpolation.html
Try the next:
[env:myenv]build_flags =
-D USER_SETUP_LOADED=1
-include ${platformio.libdeps_dir}/${this.__env__}/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
—
Reply to this email directly, view it on GitHub
<#4682 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE7JITD4WNXQUOBE5TCDEJDXOK6WLANCNFSM6AAAAAAZ3AV74A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This works under linux and windows: -include .pio/libdeps/${PIOENV}/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h |
only this works under linux and windows:
…-include
.pio/libdeps/${PIOENV}/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
El lun, 3 jul 2023 a las 16:25, Roberto Fernandez ***@***.***>)
escribió:
- Sorry, the same error occurs
El lun, 3 jul 2023 a las 14:58, Ivan Kravets ***@***.***>)
escribió:
> Could you try a direct declaration using interpolation? See docs and
> examples here
> https://docs.platformio.org/en/latest/projectconf/interpolation.html
>
> Try the next:
>
> [env:myenv]build_flags =
> -D USER_SETUP_LOADED=1
> -include ${platformio.libdeps_dir}/${this.__env__}/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
>
> —
> Reply to this email directly, view it on GitHub
> <#4682 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AE7JITD4WNXQUOBE5TCDEJDXOK6WLANCNFSM6AAAAAAZ3AV74A>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Sorry, I deleted my previous comment. This is actually a bug and we will fix it ASAP. |
Thanks for the report. Please re-test with |
I've tested with
However, the build system prepends the builder path directory as an absolute path to the include file, when it is actually in our
Build output
Should I open a new issue for this or keep it here? |
Could you provide a simple project (zip archive attached here) to reproduce this issue? |
I apologize for my error, but I have misspoken in my previous message. The builder does properly support it if I supply an absolute path for the include file via a variable, but does not leave relative paths alone. It expands the relative path into the builder directory. I do not have a simple project to supply. I can work around this in our project by supplying the full path the The builder code here does not fire because the relative path does not exist (
|
Please provide the 1 line from |
working
not working (what we had before
|
You need
The |
Oh I see! I appreciate that. In 6.1.8 it worked though, and for years it has worked. Not to be too snarky because I appreciate your help, but
This file is in the include path and therefore should have no issue being included, so long as an absolute path was not added to it. Is there any way this can not be processed and have a bogus path added to it? |
I think we can improve this behavior. I reopen this issue. |
Or, could I ask you to create a new issue and refer to this one? It's better for history. |
Can do, will tag this issue in it too. |
Hello.
I have this error compiling one proyect in windows 10.:
My platformio.ini has this flag that complile ok under linux :
build_flags =
${common.build_flags}
-D USER_SETUP_LOADED=1
-include /$PROJECT_LIBDEPS_DIR/$PIOENV/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
If I changue this line:
-include /$PROJECT_LIBDEPS_DIR/$PIOENV/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
by this other:
-include $PROJECT_LIBDEPS_DIR/$PIOENV/TFT_eSPI/User_Setups/Setup25_TTGO_T_Display.h
The proyect compile under windows 10 + vscode +platformio.
But not compile under linux. It is neccesary to put " / " to compile it.
There is an issue with platformio that cause this fault?
I asked here for this bug: https://community.platformio.org/t/cc1plus-exe-fatal-error/34551
Thanks.
Robert.
The text was updated successfully, but these errors were encountered: