retro-esp32 / RetroESP32

Retro ESP32 is a turbo charged Odroid Go Launcher, Emulator and ROM Manager
Creative Commons Attribution Share Alike 4.0 International
603 stars 93 forks source link

Menu crashes trying to list files in Sega Master System and Sega Game Gear #22

Closed shockdesign closed 4 years ago

shockdesign commented 5 years ago

Describe the bug When shifting right to view the games in the SMS column, it'll crash trying to load the list of games.

To Reproduce Place some SMS roms into the correct directory (SMS). With the SDCard back in the device, try to navigate to view the ROMs available for the Sega Master System. The menu crashes and starts again.

Expected behavior Should expect a list of ROMs to appear.

Device: ODROID GO

Is there a better way to debug this issue?

32teeth commented 5 years ago

@shockdesign Can you maybe tell me how many games you have in thors folders? We have an open issue for more than 1024 files in a folder

Additionally, can you tell me if there are files with special characters like coma, tilda, and such? A screen shot of the folder directory (from your laptop) would be great insight

Thanks Here is our version with (a few) games

IMG_1355

shockdesign commented 5 years ago

@32teeth There are only 264 roms in the SMS directory and 319 in the GG directory, a few too many to take a screenshot :) My NES directory has more with 785 and GB with 622.

As far as special characters, yes, there are commas, brackets (both open and close) and apostrophe's. However all those characters appear in the directories that work and those that don't.

I've attached the directory listing from the SMS directory. sms.txt

Let me know if that helps.

shockdesign commented 5 years ago

@32teeth Out of curiosity, are there any crash logs written to the SDCard? (Also the crash looks like a reboot of the front end (same as when you exit a game)).

32teeth commented 5 years ago

if you are familiar with the ptyhon / esp32 sdk, you can take a look at the monitor using make monitor or alternatively you can simply open arduino and open the serial port

i have been looking at it here it is most likely either

  1. Some unaccounted for special character
  2. Unable to sort the files

But most likely #1 above

Thanks for the text dump you sent, there are already a few i know i've missed

Will keep you posted

PS. The reboot is a panic restart... ...this is intentional

shockdesign commented 5 years ago

@32teeth Awesome, I can happily remove those special characters if need be!

32teeth commented 5 years ago

Testing at home. I added the whole 539 Sega - Master System Mark III library i have at home

Odroid Go IMG_1405 IMG_1406

Retro ESP32 IMG_1407

Game List sms.txt

Can you confirm if you are running the latest firmware?

shockdesign commented 5 years ago

Can confirm I'm running the latest, have md5 sum'ed the firmware from what is stored on my SDCard compared to the latest (downloaded) and they match cfb7a8200eae9e03e736afc0e111c77d

shockdesign commented 5 years ago

@32teeth Okay a bit more information. I deleted all the ROMS, added them back and it seemed to work at least on SMS, GameGear kind of works, but switching out then switching back to it seems to reboot it, then it works again..

ezgif-5-e656a7fe8f70

32teeth commented 5 years ago

@shockdesign can you dump a txt of your GG folder

ls > gg.txt

Do you mean switching as in running the game then back, or just back and forth between sms and gg?

shockdesign commented 5 years ago

Just switching back and forth between sms and gg..

gg.txt

32teeth commented 5 years ago

https://github.com/retro-esp32/RetroESP32/releases/tag/v.1.0.8-Folders

shockdesign commented 5 years ago

@32teeth Thanks, that didn't help though :( Also noticed PC Engine is odd for me as well.. As in I can scroll through the list of ROMs, but clicking on one it won't show the run button, it will then reboot whilst partially showing the button..

I do wonder if it could be an issue with my memory card?

It's a Sandisk Ultra Class 10 card? Potentially too fast?

32teeth commented 5 years ago

PC Engine is odd for me as well.. As in I can scroll through the list of ROMs, but clicking on one it won't show the run button, it will then reboot whilst partially showing the button..

I'll take a look tonight. Thanks for the update

shockdesign commented 5 years ago

PC Engine is odd for me as well.. As in I can scroll through the list of ROMs, but clicking on one it won't show the run button, it will then reboot whilst partially showing the button..

I'll take a look tonight. Thanks for the update

Also I've plugged the device in to Arduino to check the serial logger..

)⸮N⸮!⸮⸮!⸮⸮⸮⸮
SBS9⸮!⸮⸮⸮9⸮=o⸮⸮⸮o⸮
⸮N⸮BBB⸮⸮⸮⸮⸮⸮⸮@cA⸮J⸮⸮O⸮֢fBm⸮ǀ⸮⸮oG⸮ 
⸮!⸮⸮⸮)⸮k允⸮vR⸮z⸮#kR⸮j⸮bR⸮C⸮BǼCR!B⸮cB⸮⸮BD⸮ȅ⸮BB1SC⸮RB@⸮⸮B⸮)"⸮掄RB"⸮⸮!CBa ⸮RG⸮BR⸮ˆBBH ⸮b⸮⸮bB⸮1C⸮bB⸮Cc⸮⸮g⸮c⸮⸮i⸮⸮⸮⸮B⸮⸮b⸮⸮⸮Rb1C⸮s⸮J⸮Rb7C⸮b̷B⸮C⸮k⸮J⸮⸮⸮i⸮R⸮1⸮DbL⸮9
S@⸮⸮v⸮`k⸮f"⸮⸮D⸮⸮b⸮⸮"k⸮s⸮ɭՇ⸮⸮i⸮5-⸮555⸮⸮|⸮⸮⸮⸮Ĝ%j%J⸮⸮O⸮⸮DHc⸮v⸮@⸮⸮b⸮9C⸮RD⸮⸮3⸮允J⸮OB⸮dž⸮B)1⸮⸮⸮RB"⸮⸮!⸮BBDHBRBR⸮fBE⸮BBDs⸮DCBB1⸮m!BBB⸮⸮
⸮⸮RB⸮B⸮Ba ̆⸮⸮RB⸮J^⸮bB9⸮S⸮⸮⸮bBD⸮R^RbB⸮Cc⸮⸮⸮Rb3CLCb⸮⸮⸮B⸮⸮b⸮⸮⸮
⸮⸮⸮B⸮J⸮Rb7CSb⸮⸮Rj!⸮⸮⸮⸮⸮⸮O⸮⸮
⸮Χ⸮⸮
⸮c⸮/!⸮⸮1⸮9⸮⸮⸮
⸮⸮!!)
⸮⸮⸮⸮
Ō
9⸮*⸮H0Հ⸮H⸮⸮⸮Ɩ⸮⸮⸮
ż)W⸮⸮⸮⸮⸮!@⸮!v⸮⸮M⸮⸮⸮!⸮⸮⸮⸮)p⸮⸮!⸮1⸮⸮⸮⸮)9⸮⸮⸮⸮⸮P!⸮݌⸮⸮j"⸮Ƭc⸮R⸮iݧ7⸮⸮⸮1
<ň!*⸮!⸮⸮0⸮
⸮⸮⸮⸮!⸮!E⸮

@32teeth it's slightly unreadable tho :( I guess I need to work out what character set it's trying to send data?

32teeth commented 5 years ago

Run the arduino Serial Monitor @ 115200

shockdesign commented 5 years ago

@32teeth: that seems to work a bit better... in regards to the GameGear issue..

path:/sd/roms/sms
***ERROR*** A stack overflow in task launcher has been detected.
abort() was called at PC 0x4008c764 on core 1

Backtrace: 0x4008c524:0x3ffe7ed0 0x4008c74d:0x3ffe7ef0 0x4008c764:0x3ffe7f10 0x40089c30:0x3ffe7f30 0x4008b4f0:0x3ffe7f50 0x4008b4a6:0x3ffe7f70 0x400d639a:0x00000000

Rebooting...
ets Jun  8 2016 00:22:57

And for the PC Engine issue

path:/sd/roms/pceGuru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400ec1af  PS      : 0x00060230  A0      : 0x800d6792  A1      : 0x3ffe81d0  
A2      : 0x00000000  A3      : 0x3ffdc4e4  A4      : 0x3ffdd6b0  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x800d7d4c  A9      : 0x3ffe81b0  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x3ffd37ac  A13     : 0x00000003  
A14     : 0x00000013  A15     : 0x3ffdc4e4  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x40090748  LEND    : 0x40090776  LCOUNT  : 0x00000000  

Backtrace: 0x400ec1af:0x3ffe81d0 0x400d678f:0x3ffe81f0 0x400d67a6:0x3ffe8410 0x400d6a3c:0x3ffe8430 0x400d7677:0x3ffe8450 0x400887f1:0x3ffe8570

Rebooting...
ets Jun  8 2016 00:22:57

All with the latest 1.0.8 firmware!

32teeth commented 5 years ago

That helps alot more. Do you have anything in the PCE folder? or is it empty?

shockdesign commented 5 years ago

@32teeth it's not empty, I've attached the file listing below.

Mind you I can look at the ROMS on the device for the PCE emu, I just cannot run them..

pce.txt

shockdesign commented 5 years ago

Let me know if there is anything else I can do to help debug this!

32teeth commented 5 years ago

The only thing i can think of that i am doing differently is that i am flashing the device directly instead of using firmware.

You can do this as well, but be aware that it will write over the Odroid Firmware (You can always put it back later)

If you are familiar with the espressif framework and have it all up and running

https://docs.espressif.com/projects/esp-idf/en/latest/get-started/

The you can run the ota script in the software branch of this repo

https://github.com/retro-esp32/RetroESP32/tree/Software

Follow the instructions on installation and give it a go. This is what i run on my odroid go

shockdesign commented 5 years ago

@32teeth

This line is currently failing git submodule foreach git pull origin master

due to

Entering 'Emulators/odroid-go-pcengine-huexpress'
fatal: couldn't find remote ref master
fatal: run_command returned non-zero status for Emulators/odroid-go-pcengine-huexpress

Still safe to run the OTA script?

32teeth commented 5 years ago

@shockdesign

dang, @pelle7 may have changed the branch name run ./branches

Emulators/odroid-go-pcengine-huexpress

Should be on develop branch

then run ./ota

ill see if i can adjust on my end

shockdesign commented 5 years ago

@32teeth running git submodule update --recursive --remote instead ... will try again now..

Last time it wiped the firmware clean and didn't build anything properly, only the bootloader.bin

shockdesign commented 5 years ago

@32teeth Out of curiosity, is there a better medium to chat about this process? i.e a slack or discord channel? :)

shockdesign commented 5 years ago

@32teeth Okay looks like the builds are failing.. hmm

Click to expand logs ``` from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:466:12: error: '_vfscanf_r' was not declared in this scope int _EXFUN(_vfscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:466:12: note: suggested alternative: '_mstats_r' int _EXFUN(_vfscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~ _mstats_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:466:25: error: expected primary-expression before 'struct' int _EXFUN(_vfscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:466:25: error: expected ')' before 'struct' int _EXFUN(_vfscanf_r, (struct _reent *, FILE *__restrict, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:468:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:468:12: error: '_viprintf_r' was not declared in this scope int _EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:468:12: note: suggested alternative: '__eprintf' int _EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:468:26: error: expected primary-expression before 'struct' int _EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:468:26: error: expected ')' before 'struct' int _EXFUN(_viprintf_r, (struct _reent *, const char *, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:470:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:470:12: error: '_viscanf_r' was not declared in this scope int _EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:470:12: note: suggested alternative: '_mstats_r' int _EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST) ^~~~~~~~~~ _mstats_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:470:25: error: expected primary-expression before 'struct' int _EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:470:25: error: expected ')' before 'struct' int _EXFUN(_viscanf_r, (struct _reent *, const char *, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:472:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:472:12: error: '_vprintf_r' was not declared in this scope int _EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:472:12: note: suggested alternative: '__eprintf' int _EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:472:25: error: expected primary-expression before 'struct' int _EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:472:25: error: expected ')' before 'struct' int _EXFUN(_vprintf_r, (struct _reent *, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:474:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:474:12: error: '_vscanf_r' was not declared in this scope int _EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:474:12: note: suggested alternative: '_mstats_r' int _EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~~~~ _mstats_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:474:24: error: expected primary-expression before 'struct' int _EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:474:24: error: expected ')' before 'struct' int _EXFUN(_vscanf_r, (struct _reent *, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:476:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST) ^~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:476:12: error: '_vsiprintf_r' was not declared in this scope int _EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST) ^~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:476:12: note: suggested alternative: '__eprintf' int _EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST) ^~~~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:476:27: error: expected primary-expression before 'struct' int _EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:476:27: error: expected ')' before 'struct' int _EXFUN(_vsiprintf_r, (struct _reent *, char *, const char *, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:478:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST) ^~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:478:12: error: '_vsiscanf_r' was not declared in this scope int _EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST) ^~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:478:26: error: expected primary-expression before 'struct' int _EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:478:26: error: expected ')' before 'struct' int _EXFUN(_vsiscanf_r, (struct _reent *, const char *, const char *, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:480:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST) ^~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:480:12: error: '_vsniprintf_r' was not declared in this scope int _EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST) ^~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:480:12: note: suggested alternative: '__eprintf' int _EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST) ^~~~~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:480:28: error: expected primary-expression before 'struct' int _EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:480:28: error: expected ')' before 'struct' int _EXFUN(_vsniprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:482:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST) ^~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:482:12: error: '_vsnprintf_r' was not declared in this scope int _EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST) ^~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:482:12: note: suggested alternative: '__eprintf' int _EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST) ^~~~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:482:27: error: expected primary-expression before 'struct' int _EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:482:27: error: expected ')' before 'struct' int _EXFUN(_vsnprintf_r, (struct _reent *, char *__restrict, size_t, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:484:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:484:12: error: '_vsprintf_r' was not declared in this scope int _EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:484:12: note: suggested alternative: '__eprintf' int _EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~~ __eprintf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:484:26: error: expected primary-expression before 'struct' int _EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:484:26: error: expected ')' before 'struct' int _EXFUN(_vsprintf_r, (struct _reent *, char *__restrict, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:486:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:486:12: error: '_vsscanf_r' was not declared in this scope int _EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:486:12: note: suggested alternative: '_mstats_r' int _EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST) ^~~~~~~~~~ _mstats_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:486:25: error: expected primary-expression before 'struct' int _EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST) ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:486:25: error: expected ')' before 'struct' int _EXFUN(_vsscanf_r, (struct _reent *, const char *__restrict, const char *__restrict, __VALIST) ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:491:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(fpurge, (FILE *)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:491:12: error: 'fpurge' was not declared in this scope int _EXFUN(fpurge, (FILE *)); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:491:12: note: suggested alternative: 'free' int _EXFUN(fpurge, (FILE *)); ^~~~~~ free /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:491:26: error: expected primary-expression before '*' token int _EXFUN(fpurge, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:491:27: error: expected primary-expression before ')' token int _EXFUN(fpurge, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:492:16: error: conflicting declaration 'ssize_t _EXFUN' ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); ^~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:492:16: error: '__getdelim' was not declared in this scope ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:492:29: error: expected primary-expression before 'char' ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); ^~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:492:29: error: expected ')' before 'char' ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); ~^~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:493:16: error: conflicting declaration 'ssize_t _EXFUN' ssize_t _EXFUN(__getline, (char **, size_t *, FILE *)); ^~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:493:16: error: '__getline' was not declared in this scope ssize_t _EXFUN(__getline, (char **, size_t *, FILE *)); ^~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:493:28: error: expected primary-expression before 'char' ssize_t _EXFUN(__getline, (char **, size_t *, FILE *)); ^~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:493:28: error: expected ')' before 'char' ssize_t _EXFUN(__getline, (char **, size_t *, FILE *)); ~^~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:496:13: error: variable or field '_EXFUN' declared void void _EXFUN(clearerr_unlocked, (FILE *)); ^~~~~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:496:13: error: 'clearerr_unlocked' was not declared in this scope /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:496:13: note: suggested alternative: 'getchar_unlocked' void _EXFUN(clearerr_unlocked, (FILE *)); ^~~~~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:496:38: error: expected primary-expression before '*' token void _EXFUN(clearerr_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:496:39: error: expected primary-expression before ')' token void _EXFUN(clearerr_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:497:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(feof_unlocked, (FILE *)); ^~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:497:12: error: 'feof_unlocked' was not declared in this scope int _EXFUN(feof_unlocked, (FILE *)); ^~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:497:12: note: suggested alternative: 'getchar_unlocked' int _EXFUN(feof_unlocked, (FILE *)); ^~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:497:33: error: expected primary-expression before '*' token int _EXFUN(feof_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:497:34: error: expected primary-expression before ')' token int _EXFUN(feof_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:498:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(ferror_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:498:12: error: 'ferror_unlocked' was not declared in this scope int _EXFUN(ferror_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:498:12: note: suggested alternative: 'getchar_unlocked' int _EXFUN(ferror_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:498:35: error: expected primary-expression before '*' token int _EXFUN(ferror_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:498:36: error: expected primary-expression before ')' token int _EXFUN(ferror_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:499:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(fileno_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:499:12: error: 'fileno_unlocked' was not declared in this scope int _EXFUN(fileno_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:499:12: note: suggested alternative: 'getchar_unlocked' int _EXFUN(fileno_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:499:35: error: expected primary-expression before '*' token int _EXFUN(fileno_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:499:36: error: expected primary-expression before ')' token int _EXFUN(fileno_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:500:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(fflush_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:500:12: error: 'fflush_unlocked' was not declared in this scope int _EXFUN(fflush_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:500:12: note: suggested alternative: 'getchar_unlocked' int _EXFUN(fflush_unlocked, (FILE *)); ^~~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:500:35: error: expected primary-expression before '*' token int _EXFUN(fflush_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:500:36: error: expected primary-expression before ')' token int _EXFUN(fflush_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:501:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(fgetc_unlocked, (FILE *)); ^~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:501:12: error: 'fgetc_unlocked' was not declared in this scope int _EXFUN(fgetc_unlocked, (FILE *)); ^~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:501:12: note: suggested alternative: 'getchar_unlocked' int _EXFUN(fgetc_unlocked, (FILE *)); ^~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:501:34: error: expected primary-expression before '*' token int _EXFUN(fgetc_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:501:35: error: expected primary-expression before ')' token int _EXFUN(fgetc_unlocked, (FILE *)); ^ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:502:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(fputc_unlocked, (int, FILE *)); ^~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:502:12: error: 'fputc_unlocked' was not declared in this scope int _EXFUN(fputc_unlocked, (int, FILE *)); ^~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:502:12: note: suggested alternative: 'putchar_unlocked' int _EXFUN(fputc_unlocked, (int, FILE *)); ^~~~~~~~~~~~~~ putchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:502:29: error: expected primary-expression before 'int' int _EXFUN(fputc_unlocked, (int, FILE *)); ^~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:502:29: error: expected ')' before 'int' int _EXFUN(fputc_unlocked, (int, FILE *)); ~^~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:15: error: conflicting declaration 'size_t _EXFUN' size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ^~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:15: error: 'fread_unlocked' was not declared in this scope size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ^~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:15: note: suggested alternative: 'getchar_unlocked' size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ^~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:32: error: '_PTR' was not declared in this scope size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ^~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:56: error: expected primary-expression before '_size' size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ^~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:503:55: error: expected ')' before '_size' size_t _EXFUN(fread_unlocked, (_PTR __restrict, size_t _size, size_t _n, FILE *__restrict)); ~ ^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:504:15: error: conflicting declaration 'size_t _EXFUN' size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *)); ^~~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:504:15: error: 'fwrite_unlocked' was not declared in this scope size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *)); ^~~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:504:15: note: suggested alternative: 'getchar_unlocked' size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *)); ^~~~~~~~~~~~~~~ getchar_unlocked /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:504:33: error: expected primary-expression before 'const' size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *)); ^~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:504:33: error: expected ')' before 'const' size_t _EXFUN(fwrite_unlocked, (const _PTR __restrict , size_t _size, size_t _n, FILE *)); ~^~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:538:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(__srget_r, (struct _reent *, FILE *)); ^~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:538:12: error: '__srget_r' was not declared in this scope int _EXFUN(__srget_r, (struct _reent *, FILE *)); ^~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:538:12: note: suggested alternative: '_free_r' int _EXFUN(__srget_r, (struct _reent *, FILE *)); ^~~~~~~~~ _free_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:538:24: error: expected primary-expression before 'struct' int _EXFUN(__srget_r, (struct _reent *, FILE *)); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:538:24: error: expected ')' before 'struct' int _EXFUN(__srget_r, (struct _reent *, FILE *)); ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:539:12: error: conflicting declaration 'int _EXFUN' int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *)); ^~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:539:12: error: '__swbuf_r' was not declared in this scope int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *)); ^~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:539:12: note: suggested alternative: '__sbuf' int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *)); ^~~~~~~~~ __sbuf /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:539:24: error: expected primary-expression before 'struct' int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *)); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:539:24: error: expected ')' before 'struct' int _EXFUN(__swbuf_r, (struct _reent *, int, FILE *)); ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:562:14: error: conflicting declaration 'FILE* _EXFUN' FILE *_EXFUN(funopen,(const _PTR __cookie, ^~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:562:14: error: 'funopen' was not declared in this scope FILE *_EXFUN(funopen,(const _PTR __cookie, ^~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:562:14: note: suggested alternative: 'fwopen' FILE *_EXFUN(funopen,(const _PTR __cookie, ^~~~~~~ fwopen /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:562:23: error: expected primary-expression before 'const' FILE *_EXFUN(funopen,(const _PTR __cookie, ^~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:562:23: error: expected ')' before 'const' FILE *_EXFUN(funopen,(const _PTR __cookie, ~^~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:569:14: error: conflicting declaration 'FILE* _EXFUN' FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie, ^~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:569:14: error: '_funopen_r' was not declared in this scope FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie, ^~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:569:14: note: suggested alternative: '_findenv_r' FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie, ^~~~~~~~~~ _findenv_r /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:569:26: error: expected primary-expression before 'struct' FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie, ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:569:26: error: expected ')' before 'struct' FILE *_EXFUN(_funopen_r,(struct _reent *, const _PTR __cookie, ~^~~~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:602:14: error: conflicting declaration 'FILE* _EXFUN' FILE *_EXFUN(fopencookie,(void *__cookie, ^~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:602:14: error: 'fopencookie' was not declared in this scope FILE *_EXFUN(fopencookie,(void *__cookie, ^~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:602:27: error: expected primary-expression before 'void' FILE *_EXFUN(fopencookie,(void *__cookie, ^~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:602:27: error: expected ')' before 'void' FILE *_EXFUN(fopencookie,(void *__cookie, ~^~~~ ) /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:604:14: error: conflicting declaration 'FILE* _EXFUN' FILE *_EXFUN(_fopencookie_r,(struct _reent *, void *__cookie, ^~~~~~~~~~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/sys-include/stdlib.h:18, from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdlib:75, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:1: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/sys/reent.h:779:19: note: previous declaration as '_reent* _EXFUN' struct _reent * _EXFUN(__getreent, (void)); ^~~~~~ In file included from /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:42, from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:604:14: error: '_fopencookie_r' was not declared in this scope FILE *_EXFUN(_fopencookie_r,(struct _reent *, void *__cookie, ^~~~~~~~~~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:604:30: error: expected primary-expression before 'struct' FILE *_EXFUN(_fopencookie_r,(struct _reent *, void *__cookie, ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/newlib/include/stdio.h:604:30: error: expected ')' before 'struct' FILE *_EXFUN(_fopencookie_r,(struct _reent *, void *__cookie, ~^~~~~~ ) In file included from /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:2: /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:101:11: error: '::clearerr' has not been declared using ::clearerr; ^~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:102:11: error: '::fclose' has not been declared using ::fclose; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:103:11: error: '::feof' has not been declared using ::feof; ^~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:104:11: error: '::ferror' has not been declared using ::ferror; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:105:11: error: '::fflush' has not been declared using ::fflush; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:106:11: error: '::fgetc' has not been declared using ::fgetc; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:107:11: error: '::fgetpos' has not been declared using ::fgetpos; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:108:11: error: '::fgets' has not been declared using ::fgets; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:109:11: error: '::fopen' has not been declared using ::fopen; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:110:11: error: '::fprintf' has not been declared using ::fprintf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:111:11: error: '::fputc' has not been declared using ::fputc; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:112:11: error: '::fputs' has not been declared using ::fputs; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:113:11: error: '::fread' has not been declared using ::fread; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:114:11: error: '::freopen' has not been declared using ::freopen; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:115:11: error: '::fscanf' has not been declared using ::fscanf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:116:11: error: '::fseek' has not been declared using ::fseek; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:117:11: error: '::fsetpos' has not been declared using ::fsetpos; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:118:11: error: '::ftell' has not been declared using ::ftell; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:119:11: error: '::fwrite' has not been declared using ::fwrite; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:120:11: error: '::getc' has not been declared using ::getc; ^~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:121:11: error: '::getchar' has not been declared using ::getchar; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:124:11: error: '::gets' has not been declared using ::gets; ^~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:126:11: error: '::perror' has not been declared using ::perror; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:127:11: error: '::printf' has not been declared using ::printf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:128:11: error: '::putc' has not been declared using ::putc; ^~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:129:11: error: '::putchar' has not been declared using ::putchar; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:130:11: error: '::puts' has not been declared using ::puts; ^~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:131:11: error: '::remove' has not been declared using ::remove; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:132:11: error: '::rename' has not been declared using ::rename; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:133:11: error: '::rewind' has not been declared using ::rewind; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:134:11: error: '::scanf' has not been declared using ::scanf; ^~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:135:11: error: '::setbuf' has not been declared using ::setbuf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:136:11: error: '::setvbuf' has not been declared using ::setvbuf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:137:11: error: '::sprintf' has not been declared using ::sprintf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:138:11: error: '::sscanf' has not been declared using ::sscanf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:139:11: error: '::tmpfile' has not been declared using ::tmpfile; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:141:11: error: '::tmpnam' has not been declared using ::tmpnam; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:143:11: error: '::ungetc' has not been declared using ::ungetc; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:144:11: error: '::vfprintf' has not been declared using ::vfprintf; ^~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:145:11: error: '::vprintf' has not been declared using ::vprintf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:146:11: error: '::vsprintf' has not been declared using ::vsprintf; ^~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:175:11: error: '::snprintf' has not been declared using ::snprintf; ^~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:176:11: error: '::vfscanf' has not been declared using ::vfscanf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:177:11: error: '::vscanf' has not been declared using ::vscanf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:178:11: error: '::vsnprintf' has not been declared using ::vsnprintf; ^~~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:179:11: error: '::vsscanf' has not been declared using ::vsscanf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:185:22: error: '__gnu_cxx::snprintf' has not been declared using ::__gnu_cxx::snprintf; ^~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:186:22: error: '__gnu_cxx::vfscanf' has not been declared using ::__gnu_cxx::vfscanf; ^~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:187:22: error: '__gnu_cxx::vscanf' has not been declared using ::__gnu_cxx::vscanf; ^~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:188:22: error: '__gnu_cxx::vsnprintf' has not been declared using ::__gnu_cxx::vsnprintf; ^~~~~~~~~ /Users/rajesh/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/cstdio:189:22: error: '__gnu_cxx::vsscanf' has not been declared using ::__gnu_cxx::vsscanf; ^~~~~~~ CC build/coap/libcoap/src/encode.o CC build/bootloader/bootloader_support/src/bootloader_clock.o CC build/bootloader_support/src/flash_encrypt.o /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp: In function 'void __cxx_fatal_exception_message(const char*)': /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:24:5: error: 'printf' was not declared in this scope printf("%s%s\n", FATAL_EXCEPTION, msg); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:24:5: note: 'printf' is defined in header ''; did you forget to '#include '? /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:6:1: +#include /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:24:5: printf("%s%s\n", FATAL_EXCEPTION, msg); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp: In function 'void __cxx_fatal_exception_int(int)': /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:35:5: error: 'printf' was not declared in this scope printf("%s (%d)\n", FATAL_EXCEPTION, i); ^~~~~~ /Users/rajesh/src/RetroESP32/Tools/esp-idf/components/cxx/cxx_exception_stubs.cpp:35:5: note: 'printf' is defined in header ''; did you forget to '#include '? CC build/driver/gpio.o make[1]: *** [cxx_exception_stubs.o] Error 1 make[1]: *** Waiting for unfinished jobs.... CC build/esp-tls/esp_tls.o CC build/bootloader/bootloader_support/src/bootloader_common.o CC build/coap/libcoap/src/hashkey.o CC build/coap/libcoap/src/mem.o CC build/bootloader_support/src/flash_partitions.o CC build/bootloader/bootloader_support/src/bootloader_flash.o make: *** [component-cxx-build] Error 2 make: *** Waiting for unfinished jobs.... CC build/bootloader_support/src/flash_qio_mode.o CC build/bootloader/log/log.o CC build/coap/libcoap/src/net.o CC build/bootloader/bootloader_support/src/bootloader_init.o AR build/bootloader/log/liblog.a CC build/bootloader_support/src/secure_boot.o AR build/esp-tls/libesp-tls.a CC build/driver/i2c.o CC build/coap/libcoap/src/option.o CC build/driver/i2s.o CC build/bootloader_support/src/secure_boot_signatures.o CC build/bootloader/bootloader_support/src/bootloader_random.o AR build/console/libconsole.a AR build/bootloader_support/libbootloader_support.a CC build/bootloader/bootloader_support/src/bootloader_sha.o CC build/bootloader/spi_flash/spi_flash_rom_patch.o CC build/driver/ledc.o CC build/coap/libcoap/src/pdu.o CC build/bootloader/micro-ecc/micro-ecc/uECC.o CC build/bootloader/bootloader_support/src/bootloader_utility.o AR build/bootloader/spi_flash/libspi_flash.a CC build/driver/mcpwm.o CC build/coap/libcoap/src/resource.o CC build/bootloader/bootloader_support/src/efuse.o CC build/bootloader/bootloader_support/src/esp_image_format.o CC build/bootloader/soc/esp32/cpu_util.o CC build/bootloader/soc/esp32/gpio_periph.o CC build/coap/libcoap/src/str.o CC build/bootloader/bootloader_support/src/flash_encrypt.o CC build/bootloader/soc/esp32/rtc_clk.o CC build/bootloader/main/bootloader_start.o CC build/driver/pcnt.o AR build/bootloader/micro-ecc/libmicro-ecc.a AR build/bootloader/main/libmain.a CC build/coap/libcoap/src/subscribe.o CC build/driver/periph_ctrl.o CC build/bootloader/bootloader_support/src/flash_partitions.o CC build/coap/libcoap/src/uri.o CC build/bootloader/bootloader_support/src/flash_qio_mode.o CC build/bootloader/soc/esp32/rtc_clk_init.o CC build/coap/port/coap_io_socket.o CC build/bootloader/bootloader_support/src/secure_boot.o CC build/bootloader/soc/esp32/rtc_init.o CC build/bootloader/bootloader_support/src/secure_boot_signatures.o CC build/bootloader/soc/esp32/rtc_periph.o CC build/bootloader/soc/esp32/rtc_pm.o CC build/driver/rmt.o CC build/driver/rtc_module.o CC build/bootloader/soc/esp32/rtc_sleep.o AR build/bootloader/bootloader_support/libbootloader_support.a CC build/driver/sdio_slave.o CC build/bootloader/soc/esp32/rtc_time.o CC build/driver/sdmmc_host.o make[1]: *** [asio/asio/src/asio.o] Error 1 make: *** [component-asio-build] Error 2 CC build/driver/sdmmc_transaction.o AR build/coap/libcoap.a CC build/bootloader/soc/esp32/rtc_wdt.o CC build/bootloader/soc/esp32/sdio_slave_periph.o CC build/driver/sdspi_crc.o CC build/bootloader/soc/esp32/sdmmc_periph.o CC build/driver/sdspi_host.o CC build/bootloader/soc/esp32/soc_memory_layout.o CC build/driver/sdspi_transaction.o CC build/bootloader/soc/esp32/spi_periph.o CC build/driver/sigmadelta.o CC build/bootloader/soc/src//memory_layout_utils.o CC build/driver/spi_common.o CC build/driver/spi_master.o AR build/bootloader/soc/libsoc.a CC build/driver/spi_slave.o LD build/bootloader/bootloader.elf CC build/driver/timer.o CC build/driver/uart.o esptool.py v2.6 AR build/driver/libdriver.a cp: ./build/partitions.bin: No such file or directory cp: ./build/retro-esp32.bin: No such file or directory -------------------------------------------------------------------------- 🐙 Recompile Emulators? [y/N] -------------------------------------------------------------------------- -------------------------------------------------------------------------- 🐼 Creating Retro ESP32 Firmware -------------------------------------------------------------------------- Building mkfw gcc -g main.c crc32.c -o mkfw main.c:87:21: warning: passing 'uint8_t [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(part.label, label, sizeof(part.label)); ^~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy' __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) ^~~~ 1 warning generated. ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100 Input #0, jpeg_pipe, from '/Users/rajesh/src/RetroESP32/Firmware/Assets/retro-esp32.jpg': Duration: N/A, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 86x48, 25 tbr, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native)) Press [q] to stop, [?] for help [swscaler @ 0x10e56c000] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x10e56c000] full chroma interpolation for destination format 'rgb565le' not yet implemented Output #0, rawvideo, to '/Users/rajesh/src/RetroESP32/Firmware/Assets/retro-esp32.raw': Metadata: encoder : Lavf58.20.100 Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 86x48, q=2-31, 1651 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc58.35.100 rawvideo frame= 1 fps=0.0 q=-0.0 Lsize= 8kB time=00:00:00.04 bitrate=1651.2kbits/s speed=22.5x video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% HEADER='ODROIDGO_FIRMWARE_V00_01' FirmwareDescription='Retro ESP32' tile: wrote 8256 bytes. [0] type=0, subtype=16, length=524288, label=retro-esp32 ./firmware: line 40: 70536 Abort trap: 6 $MKFW_PATH/mkfw "${NAME}" $FIRMWARE_PATH/Assets/${TILE}.raw 0 16 524288 ${BIN} $FIRMWARE_PATH/Bins/${BIN}.bin 0 17 786432 nesemu-go $FIRMWARE_PATH/Bins/nesemu-go.bin 0 18 720896 gnuboy-go $FIRMWARE_PATH/Bins/gnuboy-go.bin 0 19 1441792 smsplusgx-go $FIRMWARE_PATH/Bins/smsplusgx-go.bin 0 20 1703936 stella-go $FIRMWARE_PATH/Bins/stella-go.bin 0 21 786432 prosystem-go $FIRMWARE_PATH/Bins/prosystem-go.bin 0 22 1507328 handy-go $FIRMWARE_PATH/Bins/handy-go.bin 0 23 720896 pcengine-go $FIRMWARE_PATH/Bins/pcengine-go.bin -------------------------------------------------------------------------- 🦄 GOODBYE -------------------------------------------------------------------------- ```
32teeth commented 5 years ago

@shockdesign

I edited your comment to add a collapsable section to the terminal dump Hope you don't mind

shockdesign commented 5 years ago

@32teeth if you can build the binaries for an ODROID, and dump a zip of it, should be able to get the ./ota script to work!

32teeth commented 5 years ago

Unzip the attached Put them in

[GitHub Repo Folder]/Firmware/Bins/

Navigate to

[GitHub Repo Folder]/Scripts/

Run ./ota

Answer N or NO To all questions

It will run this (which will take about 2 minutes to upload)

esptool.py \
--chip esp32 \
--port ${PORT} \
--baud ${BAUD} \
--before default_reset \
--after hard_reset write_flash -z \
--flash_mode dio \
--flash_freq 80m \
--flash_size detect \
0x1000 $FIRMWARE_PATH/Bins/bootloader.bin \
0x8000 $FIRMWARE_PATH/Bins/partitions.bin \
0x10000 $FIRMWARE_PATH/Bins/${BIN}.bin \
0x200000 $FIRMWARE_PATH/Bins/${BIN}.bin \
0x280000 $FIRMWARE_PATH/Bins/nesemu-go.bin \
0x340000 $FIRMWARE_PATH/Bins/gnuboy-go.bin \
0x3F0000 $FIRMWARE_PATH/Bins/smsplusgx-go.bin \
0x550000 $FIRMWARE_PATH/Bins/stella-go.bin \
0x6F0000 $FIRMWARE_PATH/Bins/prosystem-go.bin \
0x7B0000 $FIRMWARE_PATH/Bins/handy-go.bin \
0x890000 $FIRMWARE_PATH/Bins/pcengine-go.bin

Bins.zip

shockdesign commented 5 years ago

@32teeth Okay have done that... still exhibiting the same issues...

***ERROR*** A stack overflow in task launcher has been detected.
abort() was called at PC 0x4008c764 on core 1

Backtrace: 0x4008c524:0x3ffe6500 0x4008c74d:0x3ffe6520 0x4008c764:0x3ffe6540 0x40089bfa:0x3ffe6560 0x4008b4f0:0x3ffe6580 0x4008b4a6:0x00000000

Rebooting...
ets Jun  8 2016 00:22:57

(When navigating to the GameGear..)

path:/sd/roms/pceGuru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400ec1af  PS      : 0x00060230  A0      : 0x800d6792  A1      : 0x3ffe81d0  
A2      : 0x00000000  A3      : 0x3ffdc53c  A4      : 0x3ffdd708  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x800d7d4c  A9      : 0x3ffe81b0  
A10     : 0x00000000  A11     : 0x00000000  A12     : 0x3ffd37ac  A13     : 0x00000003  
A14     : 0x00000013  A15     : 0x3ffdc53c  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x40090748  LEND    : 0x40090776  LCOUNT  : 0x00000000  

Backtrace: 0x400ec1af:0x3ffe81d0 0x400d678f:0x3ffe81f0 0x400d67a6:0x3ffe8410 0x400d6a3c:0x3ffe8430 0x400d7677:0x3ffe8450 0x400887f1:0x3ffe8570

Rebooting...
ets Jun  8 2016 00:22:57

(When clicking on a PCE Rom)

So sorry this is a PITA.. I hope it's not something dodgy with the h/w on this particular ODROID Go or something....

Saying that, flashing it this way did actually flash properly this time.. so that was a start..

Going to try again by erasing the flash, and flashing at a slower speed.

32teeth commented 5 years ago

@shockdesign No worries, others may have this as well

The Odroid Go site, and Other Crash's recommendation are min 16GB U1 Sd Card. I am using 32GB HC U1, will try older one

mattkj commented 5 years ago

I'm having the same issue, as mentioned on Reddit.

gg.txt sms.txt

32teeth commented 5 years ago

@jinlucky @gabozepocaio

Using

#!/bin/bash
EXT=gg
LIST=~/Downloads/${EXT}.txt
echo $LIST

cat $LIST | while read FILE; do
  touch "${FILE%.*}.${EXT}"
done

I have created folders (attached zip files) with empty files with the appropriate extensions to test @mattkj and @shockdesign issue

Please test gg.zip [Uploading sms.zip…]()

32teeth commented 5 years ago

@mattkj did you flash this using firmware or via bash script ./ota?

Am unable to reproduce using ./ota will attempt to flash as firmware

mattkj commented 5 years ago

@32teeth

firmware

32teeth commented 4 years ago

Solution and download in #30

file_nes files_gb files_gbc files_gg