Skip to content

platformio-build-esp32.py is incomplete after build finishes #94

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

Closed
jcwren opened this issue Nov 13, 2022 · 4 comments
Closed

platformio-build-esp32.py is incomplete after build finishes #94

jcwren opened this issue Nov 13, 2022 · 4 comments

Comments

@jcwren
Copy link

jcwren commented Nov 13, 2022

Using esp-idf v4.4, when build.sh completes, the file ./out/tools/platformio-build-esp32.py is missing everything prior to the ASFLAGS line, and everything after then "_POSIX_READER_WRITER_LOCKS", line in the CPPDEFINES section.

I'll be happy to provide any additional information, but I'm not sure what's necessary to diagnose this.

components_arduino_tools_platformio-build-esp32.py.txt
out_tools_platformio-build-esp32.py.txt

@me-no-dev
Copy link
Member

you probably got some errors during build, like bad arguments for sed. Installing gsed and using that can help. What OS are you on?

@jcwren
Copy link
Author

jcwren commented Nov 14, 2022

Building on a Mac, using Homebrew. gsed is installed. It appears that it's choking on something about awk. I'd tell you what version it is, but there's no -v or --version option for it. It's in /usr/bin, so I suspect it's the Mac OS version. gawk is not installed.

IDF_TARGET: esp32s3, MEMCONF: qio_qspi, PWD: /Users/jcw/Projects/esp32-arduino-lib-builder, OUT: /Users/jcw/Projects/esp32-arduino-lib-builder/out/tools/sdk/esp32s3
Renaming 'mbedtls' to 'mbedtls_2': /Users/jcw/Projects/esp32-arduino-lib-builder/build/esp-idf/mbedtls/mbedtls/library/libmbedtls.a
awk: syntax error at source line 1
 context is
   >>> /ASFLAGS=\[/{n++}{print>n"pio_start.txt" <<<
awk: illegal statement at source line 1
awk: syntax error at source line 1
 context is
   >>> /"ARDUINO_ARCH_ESP32"/{n++}{print>n"pio_end.txt" <<<
awk: illegal statement at source line 1
cat: pio_start.txt: No such file or directory
rm: pio_end.txt: No such file or directory
rm: 1pio_start.txt: No such file or directory
rm: pio_start.txt: No such file or directory
cat: 1pio_end.txt: No such file or directory
rm: 1pio_end.txt: No such file or directory
awk: syntax error at source line 1
 context is
   >>> /compiler.cpreprocessor.flags.esp32s3=/{n++}{print>n"platform_start.txt" <<<
awk: illegal statement at source line 1
gsed: can't read 1platform_start.txt: No such file or directory
awk: syntax error at source line 1
 context is
   >>> /compiler.ar.flags.esp32s3=/{n++}{print>n"platform_mid.txt" <<<
awk: illegal statement at source line 1
cat: platform_start.txt: No such file or directory
cat: 1platform_mid.txt: No such file or directory

@me-no-dev
Copy link
Member

you need gawk also. I guess this needs to be checked and added to the scripts and docs :)

@jcwren
Copy link
Author

jcwren commented Nov 14, 2022

OK, installed gawk, builds correctly now. I'd advocate documenting that, and aborting the script on any errors.

HamzaHajeir pushed a commit to HamzaHajeir/esp32-arduino-lib-builder that referenced this issue May 21, 2024
Revert "S3 OPI tweak LCD RGB parallel speed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants