z-uno compiler error

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Hillie
Posts: 20
Joined: 15 Nov 2018 14:11

z-uno compiler error

Post by Hillie »

I am using Arduino IDE 1.8.13 and I installed the software version 2.1.7.

I get the error below. The files Stream.cpp and the generated code Stream_sdcpp_.cpp misses #include <ArduinoTypes.h>.

Please, I need some help.

Cheers,
Gerald.

Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_526647\Custom.c with SDCPP...

Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_526647\Stream.cpp with SDCPP...
Compiling C:\Users\Gerald\AppData\Local\Temp\arduino_build_526647\Stream_sdcpp_.cpp ...
Stream_sdcpp_.cpp:16:26:error:unknown type name 'uint32_t'
Stream_sdcpp_.cpp:19:25:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:22:31:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:22:42:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:24:26:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:38:5:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:39:5:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:43:23:error:expected class name
Stream_sdcpp_.cpp:53:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:54:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:65:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:68:27:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:69:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:69:30:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:75:18:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:77:32:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:77:67:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:87:3:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:87:35:error:unknown type name 'size_t'Unknown error:'NoneType' object has no attribute 'name' uCxx returned error code:-1

exit status 1
Error compiling for board Z-Wave>ME Z-Uno.

p0lyg0n1
Posts: 187
Joined: 04 Aug 2016 07:14

Re: z-uno compiler error

Post by p0lyg0n1 »

Hi,
It's strange, because it already has #include "Print.h" which includes Arduino_types.h
Please provide an example (sketch code). I didn't see this issue before.

Best regards,
Alex.

Hillie
Posts: 20
Joined: 15 Nov 2018 14:11

Re: z-uno compiler error

Post by Hillie »

This is the build result:

C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242/zuno_SimpleDimmer.ino
***************************************************

--- USING a list of libraries from:
C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.7\libraries
E:\Users\Gerald\Documents\Arduino\libraries
*** Collecting prototypes...
Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Custom.c with SDCPP...

Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Stream.cpp with SDCPP...
Compiling C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Stream_sdcpp_.cpp ...
Stream_sdcpp_.cpp:16:26:error:unknown type name 'uint32_t'
Stream_sdcpp_.cpp:19:25:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:22:31:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:22:42:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:24:26:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:38:5:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:39:5:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:43:23:error:expected class name
Stream_sdcpp_.cpp:53:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:54:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:65:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:68:27:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:69:13:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:69:30:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:75:18:error:unknown type name 'uint8_t'
Stream_sdcpp_.cpp:77:32:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:77:67:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:87:3:error:unknown type name 'size_t'
Stream_sdcpp_.cpp:87:35:error:unknown type name 'size_t'Unknown error:'NoneType' object has no attribute 'name' uCxx returned error code:-1

exit status 1

Hillie
Posts: 20
Joined: 15 Nov 2018 14:11

Re: z-uno compiler error

Post by Hillie »

This is Custom_sdcpp_.cpp which does not include the header files. I have made the code shorted with "..." and I have deleted some empty lines.

-----------------------------------

# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\Custom.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\Custom.c"

# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_legacy_channels.h" 1

# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ArduinoTypes.h" 1

# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h" 1
# 94 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h"
enum {
ZUNO_FUNC_PIN_MODE,
ZUNO_FUNC_DIGITAL_WRITE,
...
};

enum{
FW_AUTH_FAIL = 0x00,
FW_AUTH_START = 0x01,
FW_AUTH_DONE = 0xFF
};
enum{
ZUNO_LOGGING_EVENT_START = 0x00,
...
};

enum
{
ZUNO_WAKEUP_REASON_HARDRESET,
ZUNO_WAKEUP_REASON_WUT,
...
};

enum
{
ZUNO_CFG_BYTE_ADC_RES,
ZUNO_CFG_BYTE_ADC_REF,
...
};

enum {
ZUNO_JUMP_TABLE_SETUP,
ZUNO_JUMP_TABLE_LOOP,
ZUNO_JUMP_TABLE_CALLBACK,
};

enum {
ZUNO_SWITCH_BINARY_CHANNEL_NUMBER = 1,
ZUNO_SWITCH_MULTILEVEL_CHANNEL_NUMBER,
...
};

enum
{
ZUNO_FWUPGRADE_AUTHRADIO_LOCKED = 0,
ZUNO_FWUPGRADE_AUTHRADIO_ANY = 0xFFFFFFFF
};


enum
{
CC_BASIC = 0x20,
CC_SWITCH_BINARY = 0x25,
...
};

enum
{
ZUNO_ISR_INT0,
ZUNO_ISR_INT1,
...
};

enum{
SYSCLOCK_NORMAL = 0,
SYSCLOCK_BOOST = 1
};
# 751 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h"
enum {
ZUNO_ASSOC_BASIC_SET_NUMBER = 1,
ZUNO_ASSOC_BASIC_SET_AND_DIM_NUMBER,
...
};
# 777 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h"
enum {
ZUNO_MODE_ALWAYS_LISTENING_NUMBER,
ZUNO_MODE_WAKE_UP_NUMBER,
ZUNO_MODE_FLIRS_NUMBER,
};
# 855 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h"
enum
{
ZUNO_CONFIG_DEFAULT,
ZUNO_CONFIG_PREVIOUS,
ZUNO_CONFIG_CURRENT
};

enum {
ZUNO_PRODUCTTYPE_DEFAULT,
ZUNO_PRODUCTTYPE_AUTO,
ZUNO_PRODUCTTYPE_CUSTOM
};
# 903 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_Definitions.h"
enum {
ZUNO_CALLBACK_COMMANDHANDLER_BASIC_SET,
ZUNO_CALLBACK_COMMANDHANDLER_BASIC_GET,
...
};
# 4 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ArduinoTypes.h" 2

typedef unsigned char boolean;
typedef unsigned char uint8_t;
typedef unsigned char s_pin;
typedef unsigned int uint16_t;
typedef unsigned long uint32_t;

typedef char int8_t;
typedef int int16_t;
typedef long int32_t;

typedef unsigned int size_t;
typedef unsigned char BYTE;
typedef unsigned int WORD;
typedef unsigned long DWORD;
typedef unsigned char XBYTE;
typedef unsigned char CCBYTE;

typedef unsigned char byte;
typedef unsigned int word;
typedef unsigned long dword;

typedef unsigned long time_t;

struct tmElements_s {
uint8_t Second;
uint8_t Minute;
uint8_t Hour;
uint8_t Wday;
uint8_t Day;
uint8_t Month;
uint8_t Year;
};

typedef struct tmElements_s tmElements_t;
typedef enum tmElementsFields{
tmSecond, tmMinute, tmHour, tmWday, tmDay,tmMonth, tmYear, tmNbrFields
}tmElementsFields_t;

# 1 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/string.h" 1
# 57 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/string.h"
extern void *memcpy (void * dest, const void * src, size_t n);
extern void *memmove (void *dest, const void *src, size_t n);
extern char *strcpy (char * dest, const char * src);
extern char *strncpy(char * dest, const char * src, size_t n);

extern char *strcat (char * dest, const char * src);
extern char *strncat(char * dest, const char * src, size_t n);

extern int memcmp (const void *s1, const void *s2, size_t n);
extern int strcmp (const char *s1, const char *s2);

extern int strncmp(const char *s1, const char *s2, size_t n);
extern size_t strxfrm(char *dest, const char *src, size_t n);

extern void *memchr (const void *s, int c, size_t n);

extern char *strchr (const char *s, int c);

extern size_t strcspn(const char *s, const char *reject);
extern char *strpbrk(const char *s, const char *accept);

extern char *strrchr(const char *s, int c);

extern size_t strspn (const char *s, const char *accept);
extern char *strstr (const char *haystack, const char *needle);
extern char *strtok (char * str, const char * delim);

extern size_t strlen (const char *s);
# 55 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ArduinoTypes.h" 2
# 4 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\/ZUNO_legacy_channels.h" 2

typedef void * GENERIC_POINTER;

typedef struct _ZUNO_CHANNEL_PROPERTIES_DESCRIPTION
{
BYTE channel_cmd_class;
...
} ZUNO_CHANNEL_PROPERTIES_DESCRIPTION;

typedef struct _ZUNO_ASSOCIATION_PROPERTIES_DESCRIPTION
{
BYTE association_type;
BYTE association_param;
} ZUNO_ASSOCIATION_PROPERTIES_DESCRIPTION;

typedef struct _ZUNO_SLEEPING_MODE_PROPERTIES_DESCRIPTION
{
BYTE current_mode;
BYTE parameter;
GENERIC_POINTER handler;
} ZUNO_SLEEPING_MODE_PROPERTIES_DESCRIPTION;
# 7 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\Custom.c" 2
# 19 "C:\\Users\\Gerald\\AppData\\Local\\Temp\\arduino_build_722242\\Custom.c"
extern unsigned char ledLevel;
extern unsigned char lastDimmerLevel;

byte getterLED();

byte getter();

void setterLED(byte value);

void setter(byte value);

char zunoDisableList[] = "NO_MULTIBINARY_SWITCH0";
ZUNO_CHANNEL_PROPERTIES_DESCRIPTION zunoChannelSetupArray[]= { {ZUNO_SWITCH_BINARY_CHANNEL_NUMBER, 0, 0, (void*)getterLED, (void*)setterLED, (void*)0, (void*)0}, {ZUNO_SWITCH_MULTILEVEL_CHANNEL_NUMBER, 0, 0, (void*)getter, (void*)setter, (void*)0, (void*)0}, };

ZUNO_ASSOCIATION_PROPERTIES_DESCRIPTION zunoAssociationSetupArray[]= { {0,0}, };

ZUNO_SLEEPING_MODE_PROPERTIES_DESCRIPTION zunoSleepingModeSetupStruct = {ZUNO_MODE_ALWAYS_LISTENING_NUMBER, 0, 0};

BYTE ___dummy_freq;

BYTE zunoDebugParameter = 0;

Hillie
Posts: 20
Joined: 15 Nov 2018 14:11

Re: z-uno compiler error

Post by Hillie »

See also "Latest Java update causes prerpocessing error" topic here in forum.

Hillie
Posts: 20
Joined: 15 Nov 2018 14:11

Re: z-uno compiler error

Post by Hillie »

This is the log file.

DEBUG [2020-11-20 12:07:52,207]
Starting on Windows.
ARGS:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler arduino_preproc C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\sketch\zuno_SimpleDimmer.ino.cpp -r C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.7 -DARDUINO_LIB_DISCOVERY_PHASE
VERSION:1.21b1 MD5:f60175422be690273c8cad00725cf5a2 MY_FULLNAME:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler.exe g_base:None
DEBUG [2020-11-20 12:07:52,720]
Starting on Windows.
ARGS:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler arduino_preproc C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\sketch\zuno_SimpleDimmer.ino.cpp -r C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.7 -DARDUINO_LIB_DISCOVERY_PHASE
VERSION:1.21b1 MD5:f60175422be690273c8cad00725cf5a2 MY_FULLNAME:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler.exe g_base:None
DEBUG [2020-11-20 12:07:52,729] PREPROC:
from directory:C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\sketch
files:[]
copied:[]
dst directory:C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242
INFO [2020-11-20 12:07:52,729]
DEBUG [2020-11-20 12:07:53,334]
Starting on Windows.
ARGS:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler build C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242/zuno_SimpleDimmer.ino -r C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.7 -i1_8 -idv 10813
VERSION:1.21b1 MD5:f60175422be690273c8cad00725cf5a2 MY_FULLNAME:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/compiler.exe g_base:None
DEBUG [2020-11-20 12:07:53,338] buildFunc
INFO [2020-11-20 12:07:53,782] File path was changed due to "-i_18" option:C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242/zuno_SimpleDimmer.ino
INFO [2020-11-20 12:07:53,782] --- Script path: C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain SDCC_PATH:C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.82/zuno_toolchain/sdcc/
INFO [2020-11-20 12:07:53,782] --- Library path: ['C:\\Users\\Gerald\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\hardware\\zw8051\\2.1.7\\libraries', 'E:\\Users\\Gerald\\Documents\\Arduino\\libraries']
INFO [2020-11-20 12:07:53,790]
************* Building Arduino Sketch *************
C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242/zuno_SimpleDimmer.ino
***************************************************

INFO [2020-11-20 12:07:53,790]
--- USING a list of libraries from:
INFO [2020-11-20 12:07:53,790]
C:\Users\Gerald\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.7\libraries
INFO [2020-11-20 12:07:53,792]
E:\Users\Gerald\Documents\Arduino\libraries
INFO [2020-11-20 12:07:53,792]
*** Collecting prototypes...
INFO [2020-11-20 12:07:54,917]
Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Custom.c with SDCPP...

INFO [2020-11-20 12:07:54,956]
INFO [2020-11-20 12:07:55,053]
Preprocessing file: C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Stream.cpp with SDCPP...

INFO [2020-11-20 12:07:55,073] Compiling C:\Users\Gerald\AppData\Local\Temp\arduino_build_722242\Stream_sdcpp_.cpp ...
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:16:26:error:unknown type name 'uint32_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:19:25:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:22:31:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:22:42:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:24:26:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:38:5:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,137]
Stream_sdcpp_.cpp:39:5:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:43:23:error:expected class name
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:53:13:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:54:13:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:65:13:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:68:27:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:69:13:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:69:30:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:75:18:error:unknown type name 'uint8_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:77:32:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:77:67:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:87:3:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138]
Stream_sdcpp_.cpp:87:35:error:unknown type name 'size_t'
INFO [2020-11-20 12:07:55,138] Unknown error:'NoneType' object has no attribute 'name'
ERROR [2020-11-20 12:07:55,138] uCxx returned error code:-1

Post Reply