Skip to content
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 for EMU_SMS #35

Open
ulisesoliva opened this issue Apr 30, 2021 · 1 comment
Open

compile error for EMU_SMS #35

ulisesoliva opened this issue Apr 30, 2021 · 1 comment

Comments

@ulisesoliva
Copy link

hello, i need help with this error.
compile error for EMU_SMS(only for EMU_SMS)

In file included from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:0:
sketch\src/video_out.h:41:15: warning: extra tokens at end of #ifdef directive
#ifdef IR_PIN || NES_CTRL_LATCH
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino: In function 'void emu_task(void*)':
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:43: warning: 'uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:368:10: note: declared here
uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:43: warning: 'uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:368:10: note: declared here
uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:66: warning: 'rtc_cpu_freq_t rtc_clk_cpu_freq_get()' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:357:16: note: declared here
rtc_cpu_freq_t rtc_clk_cpu_freq_get() attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:66: warning: 'rtc_cpu_freq_t rtc_clk_cpu_freq_get()' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:357:16: note: declared here
rtc_cpu_freq_t rtc_clk_cpu_freq_get() attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:87: warning: 'rtc_cpu_freq_t rtc_clk_cpu_freq_get()' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:357:16: note: declared here
rtc_cpu_freq_t rtc_clk_cpu_freq_get() attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:84:88: warning: 'uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
_emu->name.c_str(),xPortGetCoreID(),rtc_clk_cpu_freq_value(rtc_clk_cpu_freq_get()));
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:368:10: note: declared here
uint32_t rtc_clk_cpu_freq_value(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino: In function 'void setup()':
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:145:3: warning: 'void rtc_clk_cpu_freq_set(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_240M);
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:319:6: note: declared here
void rtc_clk_cpu_freq_set(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:145:3: warning: 'void rtc_clk_cpu_freq_set(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_240M);
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:319:6: note: declared here
void rtc_clk_cpu_freq_set(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:145:41: warning: 'void rtc_clk_cpu_freq_set(rtc_cpu_freq_t)' is deprecated [-Wdeprecated-declarations]
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_240M);
^
In file included from sketch\src/video_out.h:25:0,
from C:\Users\ulises\Downloads\esp_8_bit2\esp_8_bit\esp_8_bit.ino:26:
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc/soc/rtc.h:319:6: note: declared here
void rtc_clk_cpu_freq_set(rtc_cpu_freq_t cpu_freq) attribute((deprecated));
^
sketch\src\atari800\afile.c: In function 'AFILE_OpenFile':
sketch\src\atari800\afile.c:211:50: warning: implicit declaration of function 'UI_SelectCartType' [-Wimplicit-function-declaration]
CARTRIDGE_SetTypeAutoReboot(&CARTRIDGE_main, UI_SelectCartType(r));
^
sketch\src\atari800\atari.c: In function 'load_roms':
sketch\src\atari800\atari.c:322:76: warning: passing argument 2 of 'SYSROM_LoadImage' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
MEMORY_have_basic = basic_ver != -1 && SYSROM_LoadImage(basic_ver, MEMORY_basic);
^
In file included from sketch\src\atari800\atari.c:87:0:
sketch\src\atari800\sysrom.h:144:5: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
int SYSROM_LoadImage(int id, UBYTE *buffer);
^
sketch\src\atari800\atari.c: In function 'Atari800_Initialise':
sketch\src\atari800\atari.c:880:38: warning: implicit declaration of function 'UI_SelectCartType' [-Wimplicit-function-declaration]
CARTRIDGE_SetType(&CARTRIDGE_main, UI_SelectCartType(CARTRIDGE_main.size));
^
sketch\src\atari800\atari.c: In function 'Atari800_Frame':
sketch\src\atari800\atari.c:1292:3: warning: implicit declaration of function 'UI_Run' [-Wimplicit-function-declaration]
UI_Run();
^
sketch\src\atari800\cfg.c: In function 'CFG_LoadConfig':
sketch\src\atari800\cfg.c:320:13: warning: implicit declaration of function 'Colours_ReadConfig' [-Wimplicit-function-declaration]
else if (Colours_ReadConfig(string, ptr)) {
^
sketch\src\atari800\cfg.c: In function 'CFG_WriteConfig':
sketch\src\atari800\cfg.c:467:2: warning: implicit declaration of function 'Colours_WriteConfig' [-Wimplicit-function-declaration]
Colours_WriteConfig(fp);
^
sketch\src\atari800\gtia.c: In function 'GTIA_PutByte':
sketch\src\atari800\gtia.c:1294:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
grafp_ptr[0] = grafp_lookup[byte & 3];
^
sketch\src\atari800\gtia.c:1299:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
grafp_ptr[1] = grafp_lookup[byte & 3];
^
sketch\src\atari800\gtia.c:1304:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
grafp_ptr[2] = grafp_lookup[byte & 3];
^
sketch\src\atari800\gtia.c:1309:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
grafp_ptr[3] = grafp_lookup[byte & 3];
^
sketch\src\atari800\memory.c: In function 'MEMORY_StateRead':
sketch\src\atari800\memory.c:590:23: warning: passing argument 1 of 'StateSav_ReadUBYTE' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
StateSav_ReadUBYTE(&MEMORY_basic[0], 8192);
^
In file included from sketch\src\atari800\memory.c:44:0:
sketch\src\atari800\statesav.h:15:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
void StateSav_ReadUBYTE(UBYTE *data, int num);
^
sketch\src\atari800\memory.c:594:23: warning: passing argument 1 of 'StateSav_ReadUBYTE' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
StateSav_ReadUBYTE(&MEMORY_os[0], 16384);
^
In file included from sketch\src\atari800\memory.c:44:0:
sketch\src\atari800\statesav.h:15:6: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
void StateSav_ReadUBYTE(UBYTE *data, int num);
^
sketch\src\atari800\sio.c: In function 'SIO_StateRead':
sketch\src\atari800\sio.c:1703:23: warning: iteration 2u invokes undefined behavior [-Waggressive-loop-optimizations]
SIO_drive_status[i] = (SIO_UnitStatus)saved_drive_status;
^
sketch\src\atari800\sio.c:1698:2: note: containing loop
for (i = 0; i < 8; i++) {
^
sketch\src\atari800\util.c: In function 'Util_sleep':
sketch\src\atari800\util.c:514:3: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration]
nanosleep(&ts, NULL);
^
sketch\src\nofrendo\bitmap.c: In function '_make_bitmap':
sketch\src\nofrendo\bitmap.c:64:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
bitmap->line[0] = (uint8 *) (((long long)bitmap->data + overdraw + 3) & ~3);
^
sketch\src\nofrendo\bitmap.c:64:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
bitmap->line[0] = (uint8 *) (((long long)bitmap->data + overdraw + 3) & ~3);
^
sketch\src\nofrendo\nofrendo.c: In function 'internal_insert':
sketch\src\nofrendo\nofrendo.c:152:23: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
console.filename = strdup(filename);
^
sketch\src\nofrendo\nofrendo.c:152:23: warning: incompatible implicit declaration of built-in function 'strdup'
sketch\src\nofrendo\nofrendo.c: In function 'main_insert':
sketch\src\nofrendo\nofrendo.c:198:27: warning: incompatible implicit declaration of built-in function 'strdup'
console.nextfilename = strdup(filename);
^
sketch\src\nofrendo\nofrendo.c: In function 'main_loop':
sketch\src\nofrendo\nofrendo.c:244:27: warning: incompatible implicit declaration of built-in function 'strdup'
console.nextfilename = strdup(filename);
^
sketch\src\emu.cpp:271:0: warning: "BUF_SIZE" redefined
#define BUF_SIZE 0x8000
^
sketch\src\emu.cpp:150:0: note: this is the location of the previous definition
#define BUF_SIZE 4096
^
In file included from sketch\src\atari800/sound.h:7:0,
from sketch\src\emu_atari800.cpp:24:
sketch\src\atari800/atari.h:31:0: warning: "ULONG" redefined
#define ULONG unsigned int
^
In file included from sketch\src\emu_atari800.cpp:23:0:
sketch\src\atari800/libatari800.h:18:0: note: this is the location of the previous definition
#define ULONG uint32_t
^
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c: In function 'spiTransferBytesNL':
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
C:\Users\ulises\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
^
c:/users/ulises/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\ulises\AppData\Local\Temp\arduino_build_387376/esp_8_bit.ino.elf section .dram0.bss' will not fit in region dram0_0_seg'
c:/users/ulises/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: DRAM segment data does not fit.
c:/users/ulises/appdata/local/arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-97-gc752ad5-5.2.0/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld.exe: region `dram0_0_seg' overflowed by 40 bytes
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compilando para la tarjeta ESP32 Dev Module.

@CornN64
Copy link

CornN64 commented May 5, 2021

You seem to get the same problem which was discussed here -> #34
From what I could tell it was some old residual libraries that caused the issue but I am not sure...

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