Hello,
I am using HighTec IDE for cross building of MicroPython source code for TriCore Architecture. I am facing "asm" related errors in building the source code. I added all required files to the project.
The following is the error log..
18:52:12 **** Build of configuration Default for project minimal ****
make all
Building file: C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c
Invoking: Cross GCC Compiler
gcc -std=c99 -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"py/nlrx86.d" -MT"py/nlrx86.d" -o "py/nlrx86.o" "C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c"
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c: In function 'nlr_push_tail':
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:41:44: error: expected declaration specifiers before 'asm'
unsigned int nlr_push_tail(nlr_buf_t *nlr) asm("nlr_push_tail");
^~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:46:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
unsigned int nlr_push(nlr_buf_t *nlr) {
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:71:1: error: expected declaration specifiers before '__attribute__'
__attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr) {
^~~~~~~~~~~~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:78:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void nlr_pop(void) {
^
In file included from C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:27:0:
c:\users\sivaprakashreddy\desktop\micropython-1.9.2\py\mpconfig.h:1238:18: error: expected declaration specifiers before '__attribute__'
#define NORETURN __attribute__((noreturn))
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:83:1: note: in expansion of macro 'NORETURN'
NORETURN void nlr_jump(void *val) {
^~~~~~~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:111:1: error: expected '{' at end of input
}
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:111:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [py/nlrx86.o] Error 1
py/subdir.mk:638: recipe for target 'py/nlrx86.o' failed
18:52:13 Build Finished (took 1s.313ms)
Please, help me in resolving this kind of issues.
Thanks and Regards,
Siva Prakash Reddy
I am using HighTec IDE for cross building of MicroPython source code for TriCore Architecture. I am facing "asm" related errors in building the source code. I added all required files to the project.
The following is the error log..
18:52:12 **** Build of configuration Default for project minimal ****
make all
Building file: C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c
Invoking: Cross GCC Compiler
gcc -std=c99 -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"py/nlrx86.d" -MT"py/nlrx86.d" -o "py/nlrx86.o" "C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c"
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c: In function 'nlr_push_tail':
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:41:44: error: expected declaration specifiers before 'asm'
unsigned int nlr_push_tail(nlr_buf_t *nlr) asm("nlr_push_tail");
^~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:46:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
unsigned int nlr_push(nlr_buf_t *nlr) {
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:71:1: error: expected declaration specifiers before '__attribute__'
__attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr) {
^~~~~~~~~~~~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:78:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
void nlr_pop(void) {
^
In file included from C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:27:0:
c:\users\sivaprakashreddy\desktop\micropython-1.9.2\py\mpconfig.h:1238:18: error: expected declaration specifiers before '__attribute__'
#define NORETURN __attribute__((noreturn))
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:83:1: note: in expansion of macro 'NORETURN'
NORETURN void nlr_jump(void *val) {
^~~~~~~~
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:111:1: error: expected '{' at end of input
}
^
C:/Users/sivaprakashreddy/Desktop/micropython-1.9.2/py/nlrx86.c:111:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [py/nlrx86.o] Error 1
py/subdir.mk:638: recipe for target 'py/nlrx86.o' failed
18:52:13 Build Finished (took 1s.313ms)
Please, help me in resolving this kind of issues.
Thanks and Regards,
Siva Prakash Reddy