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

Error compiling for board Arduino Due #76

Closed
Nerdsiah opened this issue Mar 19, 2018 · 3 comments
Closed

Error compiling for board Arduino Due #76

Nerdsiah opened this issue Mar 19, 2018 · 3 comments

Comments

@Nerdsiah
Copy link

Nerdsiah commented Mar 19, 2018

With versions 4.2.4 and 4.2.5 I get this compiling error.

In file included from C:\Users\Pmac\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/Arduino.h:31:0,

                 from C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.h:23,

                 from C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp:18:

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp: In member function 'NMEAGPS::decode_t NMEAGPS::parseCommand(const NMEAGPS::msg_table_t*, uint8_t, char)':

C:\Users\Pmac\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/avr/pgmspace.h:106:49: error: 'const void*' is not a pointer-to-object type

 #define pgm_read_ptr(addr) (*(const void *)(addr))

                                                 ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp:566:60: note: in expansion of macro 'pgm_read_ptr'

       const char *        table_i = (const char *        ) pgm_read_ptr( &table[i] );

                                                            ^

C:\Users\Pmac\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/avr/pgmspace.h:106:49: error: 'const void*' is not a pointer-to-object type

 #define pgm_read_ptr(addr) (*(const void *)(addr))

                                                 ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp:590:49: note: in expansion of macro 'pgm_read_ptr'

         const char *table_next = (const char *) pgm_read_ptr( &table[next_msg] );

                                                 ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp: In member function 'const __FlashStringHelper* NMEAGPS::string_for(NMEAGPS::nmea_msg_t) const':

C:\Users\Pmac\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/avr/pgmspace.h:106:49: error: 'const void*' is not a pointer-to-object type

 #define pgm_read_ptr(addr) (*(const void *)(addr))

                                                 ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp:651:52: note: in expansion of macro 'pgm_read_ptr'

       const char *        table_i = (const char *) pgm_read_ptr( &table[i] );

                                                    ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp: In static member function 'static void NMEAGPS::poll(Stream*, NMEAGPS::nmea_msg_t)':

C:\Users\Pmac\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\cores\arduino/avr/pgmspace.h:106:49: error: 'const void*' is not a pointer-to-object type

 #define pgm_read_ptr(addr) (*(const void *)(addr))

                                                 ^

C:\Users\Pmac\Documents\Arduino\libraries\NeoGPS\src\NMEAGPS.cpp:1997:37: note: in expansion of macro 'pgm_read_ptr'

       (const __FlashStringHelper *) pgm_read_ptr( &poll_msgs[msg-NMEA_FIRST_MSG] );

                                     ^

exit status 1
Error compiling for board Arduino Due (Programming Port).

I receive the same error using any of the provided examples. I've even opened a new sketch and #include <NEMAGPS.h> by its self and get the same error. Version 4.2.3 and older are the only stable versions that compile with no issues.

@SlashDevin
Copy link
Owner

This is actually an error in the Due core. :-/ I have added similar work-arounds for other platforms. I'll check in a new release shortly...

@djholt
Copy link

djholt commented Apr 8, 2018

FYI: I applied this same fix for the Arduino 101 board (identified as ARDUINO_ARC32_TOOLS). Now it works great on this board!

@SlashDevin
Copy link
Owner

Thanks, I'll add it to the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants