Skip to content

Instantly share code, notes, and snippets.

@kshaa
Created February 16, 2021 09:17
Show Gist options
  • Save kshaa/966de992c53d2f75fb71dee24a9e95dc to your computer and use it in GitHub Desktop.
Save kshaa/966de992c53d2f75fb71dee24a9e95dc to your computer and use it in GitHub Desktop.
Failed MansOS ATMega build
$ make atmega
CC main.c
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:50:3: error: redeclaration of enumerator ‘I2C_NO_ACK’
I2C_NO_ACK = 0,
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:34:3: note: previous definition of ‘I2C_NO_ACK’ was here
I2C_NO_ACK = 0,
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:51:3: error: redeclaration of enumerator ‘I2C_ACK’
I2C_ACK = 1,
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:35:3: note: previous definition of ‘I2C_ACK’ was here
I2C_ACK = 1,
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:52:3: error: conflicting types for ‘i2cAck_t’
} i2cAck_t;
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:36:3: note: previous declaration of ‘i2cAck_t’ was here
} i2cAck_t;
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:56:3: error: redeclaration of enumerator ‘I2C_OK’
I2C_OK = 0,
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:40:3: note: previous definition of ‘I2C_OK’ was here
I2C_OK = 0,
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:57:3: error: redeclaration of enumerator ‘I2C_ACK_ERROR’
I2C_ACK_ERROR = 1,
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:41:3: note: previous definition of ‘I2C_ACK_ERROR’ was here
I2C_ACK_ERROR = 1,
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:58:3: error: redeclaration of enumerator ‘I2C_OTHER’
I2C_OTHER = 2,
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:42:3: note: previous definition of ‘I2C_OTHER’ was here
I2C_OTHER = 2,
^
In file included from ./../../../mos/arch/avr/i2c_hal.h:32:0,
from ./../../../mos/include/i2c.h:36,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/chips/atmega/atmega_2wire.h:59:3: error: conflicting types for ‘i2cError_t’
} i2cError_t;
^
In file included from ./../../../mos/include/i2c.h:34:0,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/i2c_types.h:43:3: note: previous declaration of ‘i2cError_t’ was here
} i2cError_t;
^
In file included from ./../../../mos/include/spi.h:37:0,
from ./../../../mos/include/stdmansos.h:36,
from main.c:28:
./../../../mos/include/errors.h:140:7: error: conflicting types for ‘strerror’
char *strerror(int_t errno);
^
In file included from ./../../../mos/include/defines.h:35:0,
from ./../../../mos/include/stdmansos.h:31,
from main.c:28:
/usr/lib/avr/include/string.h:611:14: note: previous declaration of ‘strerror’ was here
extern char *strerror(int errnum);
^
In file included from ./../../../mos/include/stdmansos.h:62:0,
from main.c:28:
./../../../mos/include/print.h:38:20: warning: inline function ‘PRINTF’ declared but never defined
extern inline void PRINTF(char *format, ...) PRINTF_LIKE;
^
In file included from ./../../../mos/include/stdmansos.h:37:0,
from main.c:28:
./../../../mos/include/light.h:43:20: warning: inline function ‘lightInit’ declared but never defined
extern inline void lightInit(void);
^
./../../../mos/include/light.h:38:24: warning: inline function ‘lightRead’ declared but never defined
extern inline uint16_t lightRead(void);
^
./../../../mos/include/light.h:36:20: warning: inline function ‘lightOff’ declared but never defined
extern inline void lightOff(void);
^
./../../../mos/include/light.h:34:20: warning: inline function ‘lightOn’ declared but never defined
extern inline void lightOn(void);
^
In file included from ./../../../mos/include/i2c_soft.h:43:0,
from ./../../../mos/include/i2c.h:35,
from ./../../../mos/include/stdmansos.h:35,
from main.c:28:
./../../../mos/include/delay.h:46:20: warning: inline function ‘mdelay’ declared but never defined
extern inline void mdelay(uint16_t miliseconds);
^
./../../../mos/include/delay.h:39:20: warning: inline function ‘udelay’ declared but never defined
extern inline void udelay(uint16_t microseconds);
^
In file included from ./../../../mos/include/stdmansos.h:32:0,
from main.c:28:
./../../../mos/include/sleep.h:47:20: warning: inline function ‘yield’ declared but never defined
extern inline void yield(void);
^
In file included from ./../../../mos/include/stdmansos.h:31:0,
from main.c:28:
./../../../mos/include/defines.h:50:20: warning: inline function ‘ATOMIC_END’ declared but never defined
extern inline void ATOMIC_END(Handle_t handle);
^
./../../../mos/include/defines.h:46:20: warning: inline function ‘ATOMIC_START’ declared but never defined
extern inline void ATOMIC_START(Handle_t handle);
^
./../../../mos/include/defines.h:42:20: warning: inline function ‘DISABLE_INTS’ declared but never defined
extern inline void DISABLE_INTS(void);
^
./../../../mos/include/defines.h:39:20: warning: inline function ‘ENABLE_INTS’ declared but never defined
extern inline void ENABLE_INTS(void);
^
/home/kshaa/Code/bst/MansOS/apps/demo/Blink/../../../mos/make/Makefile:375: recipe for target 'build/atmega/main.o' failed
make: *** [build/atmega/main.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment