Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
MicroPython
1.9.4 编译错误问题
发布于 2019-01-14 13:48:36 浏览:3812
订阅该版
![Snipaste_2019-01-14_13-45-25.png](/uploads/201901/14/134701narts53qj3kb5rbb.png)![Snipaste_2019-01-14_13-45-37.png](/uploads/201901/14/134701lvxz8ssz06pa0rot.png)![Snipaste_2019-01-14_13-46-01.png](/uploads/201901/14/134702p6064wwhiiu20b3w.png) 最新的 MicroPython V1.9.4 版本,编译后出现如图所示错误,用的是最新 Clone下来的代码,是什么问题呢?
查看更多
8
个回答
默认排序
按发布时间排序
armink
2019-01-14
这家伙很懒,什么也没写!
最近更新了官方 1.9.4 最新版,在 GCC 下测试过了,MDK/IAR 刚刚适配好了。你再试试哈
hxcnz
2019-01-15
这家伙很懒,什么也没写!
>最近更新了官方 1.9.4 最新版,在 GCC 下测试过了,MDK/IAR 刚刚适配好了。你再试试哈 ... --- 还是有1个error和104个 warning:funk: *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'rt-thread' compiling clock.c... compiling cpu.c... compiling components.c... compiling device.c... compiling idle.c... compiling ipc.c... compiling irq.c... compiling kservice.c... compiling mem.c... compiling memheap.c... compiling mempool.c... compiling object.c... compiling scheduler.c... compiling signal.c... compiling thread.c... compiling timer.c... compiling system_SWM320.c... compiling SWM320_adc.c... compiling SWM320_can.c... compiling SWM320_crc.c... compiling SWM320_dma.c... compiling SWM320_exti.c... compiling SWM320_flash.c... compiling SWM320_gpio.c... compiling SWM320_i2c.c... compiling SWM320_lcd.c... compiling SWM320_norflash.c... compiling SWM320_port.c... compiling SWM320_pwm.c... compiling SWM320_rtc.c... compiling SWM320_sdio.c... compiling SWM320_sdram.c... compiling SWM320_spi.c... compiling SWM320_timr.c... assembling startup_SWM320.s... compiling SWM320_uart.c... compiling main.c... compiling SWM320_wdt.c... compiling board.c... compiling drv_gpio.c... compiling drv_uart.c... compiling argcheck.c... compiling asmarm.c... compiling asmbase.c... compiling asmthumb.c... compiling asmx64.c... compiling asmx86.c... compiling asmxtensa.c... compiling bc.c... compiling binary.c... compiling builtinevex.c... compiling builtinhelp.c... compiling builtinimport.c... compiling emitbc.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitbc.c(838): warning: #68-D: integer conversion resulted in a change of sign emit_bc_pre(emit, -1 + n_args); packages\micropython-latest\py\emitbc.c(843): warning: #68-D: integer conversion resulted in a change of sign emit_bc_pre(emit, -1 + n_left + n_right + 1); packages\micropython-latest\py\emitbc.c: 3 warnings, 0 errors compiling emitcommon.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitcommon.c(35): warning: #188-D: enumerated type mixed with another type id_info_t *id = scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitcommon.c: 2 warnings, 0 errors compiling compile.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\compile.c(416): warning: #68-D: integer conversion resulted in a change of sign uint have_star_index = -1; packages\micropython-latest\py\compile.c(501): warning: #111-D: statement is unreachable break; packages\micropython-latest\py\compile.c(1222): warning: #188-D: enumerated type mixed with another type id_info_t *id_info = scope_find_or_add_id(comp->scope_cur, qst, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\compile.c(1262): warning: #546-D: transfer of control bypasses initialization of: variable "n_elif" (declared at line 1280) goto done; ^ packages\micropython-latest\py\compile.c(2018): warning: #546-D: transfer of control bypasses initialization of: variable "pns1" (declared at line 1931) variable "kind" (declared at line 1932) goto plain_assign; ^ packages\micropython-latest\py\compile.c(2133): warning: #188-D: enumerated type mixed with another type mp_binary_op_t binary_op = MP_BINARY_OP_OR + P_PARSE_NODE_STRUCT_KIND(pns) - PN_expr; packages\micropython-latest\py\compile.c(2148): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(pns->nodes[i]); packages\micropython-latest\py\compile.c(2169): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(pns->nodes[0]); packages\micropython-latest\py\compile.c(2739): warning: #188-D: enumerated type mixed with another type MIT_ARG(load_const_tok, arg); packages\micropython-latest\py\compile.c(2838): warning: #188-D: enumerated type mixed with another type id_info_t *id_info = scope_find_or_add_id(comp->scope_cur, param_name, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\compile.c(3035): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(comp->scope_cur, qstr_arg, ID_INFO_KIND_LOCAL); packages\micropython-latest\py\compile.c(3075): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, MP_QSTR___class__, ID_INFO_KIND_LOCAL); packages\micropython-latest\py\compile.c: 13 warnings, 0 errors compiling emitglue.c... compiling emitinlinethumb.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitinlinethumb.c: 1 warning, 0 errors compiling emitinlinextensa.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitinlinextensa.c: 1 warning, 0 errors compiling emitnarm.c... compiling emitnthumb.c... compiling emitnative.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitnative.c: 1 warning, 0 errors compiling emitnx64.c... compiling emitnx86.c... compiling emitnxtensa.c... compiling formatfloat.c... compiling frozenmod.c... compiling gc.c... compiling malloc.c... compiling lexer.c... packages\micropython-latest\py\lexer.c(551): warning: #188-D: enumerated type mixed with another type lex->tok_kind = MP_TOKEN_KW_FALSE + i; packages\micropython-latest\py\lexer.c(658): warning: #188-D: enumerated type mixed with another type lex->tok_kind = tok_enc_kind[tok_enc_index]; packages\micropython-latest\py\lexer.c: 2 warnings, 0 errors compiling map.c... compiling modarray.c... compiling modbuiltins.c... packages\micropython-latest\py\modbuiltins.c(278): warning: #188-D: enumerated type mixed with another type if (best_obj == P_OBJ_NULL || (mp_binary_op(op, key, best_key) == mp_const_true)) { packages\micropython-latest\py\modbuiltins.c(298): warning: #188-D: enumerated type mixed with another type if (best_obj == P_OBJ_NULL || (mp_binary_op(op, key, best_key) == mp_const_true)) { packages\micropython-latest\py\modbuiltins.c: 2 warnings, 0 errors compiling modcmath.c... compiling modcollections.c... compiling modgc.c... compiling modio.c... compiling modmath.c... compiling modmicropython.c... compiling modstruct.c... compiling modsys.c... compiling modthread.c... compiling moduerrno.c... compiling mpprint.c... compiling mpstate.c... compiling mpy_scheduler.c... compiling nativeglue.c... compiling mpz.c... compiling nlr.c... compiling nlrsetjmp.c... compiling nlrthumb.c... compiling nlrx64.c... compiling nlrx86.c... compiling nlrxtensa.c... compiling obj.c... compiling objarray.c... packages\micropython-latest\py\objarray.c(407): warning: #546-D: transfer of control bypasses initialization of: variable "src_slice" (declared at line 393) goto compat_error; ^ packages\micropython-latest\py\objarray.c(427): warning: #546-D: transfer of control bypasses initialization of: variable "src_slice" (declared at line 393) goto compat_error; ^ packages\micropython-latest\py\objarray.c(495): warning: #940-D: missing return statement at end of non-void function "array_subscr" } packages\micropython-latest\py\objarray.c: 3 warnings, 0 errors compiling objattrtuple.c... compiling objbool.c... compiling objcell.c... compiling objboundmeth.c... compiling objclosure.c... compiling objdeque.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\objdeque.c: 8 warnings, 0 errors compiling objcomplex.c... compiling objdict.c... compiling objenumerate.c... compiling objexcept.c... packages\micropython-latest\py\objexcept.c(109): warning: #188-D: enumerated type mixed with another type mp_print_kind_t k = kind & ~PRINT_EXC_SUBCLASS; packages\micropython-latest\py\objexcept.c: 1 warning, 0 errors compiling objfilter.c... compiling objfloat.c... compiling objfun.c... compiling objgenerator.c... packages\micropython-latest\py\objgenerator.c(141): warning: #170-D: pointer points outside of underlying object if (self->code_state.sp == self->code_state.state - 1) { packages\micropython-latest\py\objgenerator.c(291): warning: #170-D: pointer points outside of underlying object if (self->code_state.sp == self->code_state.state - 1) { packages\micropython-latest\py\objgenerator.c: 2 warnings, 0 errors compiling objgetitemiter.c... compiling objint.c... packages\micropython-latest\py\objint.c(109): warning: #61-D: integer operation result is out of range if ((e & ~(1 << P_FLOAT_SIGN_SHIFT_I32)) == 0) { packages\micropython-latest\py\objint.c: 1 warning, 0 errors compiling objint_longlong.c... compiling objint_mpz.c... packages\micropython-latest\py\objint_mpz.c(201): warning: #546-D: transfer of control bypasses initialization of: variable "res" (declared at line 209) goto zero_division_error; ^ packages\micropython-latest\py\objint_mpz.c(319): warning: #940-D: missing return statement at end of non-void function "mp_obj_int_binary_op" } packages\micropython-latest\py\objint_mpz.c: 2 warnings, 0 errors compiling objmap.c... compiling objlist.c... compiling objmodule.c... compiling objnone.c... compiling objnamedtuple.c... compiling objobject.c... compiling objpolyiter.c... compiling objproperty.c... compiling objrange.c... compiling objreversed.c... compiling objset.c... compiling objsingleton.c... compiling objslice.c... compiling objstringio.c... compiling objstrunicode.c... compiling objstr.c... packages\micropython-latest\py\objstr.c(210): warning: #546-D: transfer of control bypasses initialization of: variable "len_in" (declared at line 246) variable "iterable" (declared at line 255) goto wrong_args; ^ packages\micropython-latest\py\objstr.c(224): warning: #546-D: transfer of control bypasses initialization of: variable "len_in" (declared at line 246) variable "iterable" (declared at line 255) goto wrong_args; ^ packages\micropython-latest\py\objstr.c(709): warning: #546-D: transfer of control bypasses initialization of: variable "p" (declared at line 712) goto out_error; ^ packages\micropython-latest\py\objstr.c(1413): warning: #546-D: transfer of control bypasses initialization of: variable "flags" (declared at line 1442) variable "fill" (declared at line 1443) variable "alt" (declared at line 1444) variable "width" (declared at line 1457) variable "prec" (declared at line 1469) goto incomplete_format; ^ packages\micropython-latest\py\objstr.c(1461): warning: #546-D: transfer of control bypasses initialization of: variable "prec" (declared at line 1469) goto not_enough_args; ^ packages\micropython-latest\py\objstr.c: 5 warnings, 0 errors compiling objtuple.c... compiling objtype.c... packages\micropython-latest\py\objtype.c(264): warning: #188-D: enumerated type mixed with another type mp_obj_print_helper(print, self->subobj[0], kind | PRINT_EXC_SUBCLASS); packages\micropython-latest\py\objtype.c(379): warning: #69-D: integer conversion resulted in truncation [MP_UNARY_OP_INT] = MP_QSTR___int__, packages\micropython-latest\py\objtype.c(682): warning: #546-D: transfer of control bypasses initialization of: variable "member" (declared at line 689) variable "lookup" (declared at line 690) goto skip_special_accessors; ^ packages\micropython-latest\py\objtype.c: 3 warnings, 0 errors compiling objzip.c... compiling opmethods.c... compiling parsenum.c... compiling parsenumbase.c... packages\micropython-latest\py\parsenumbase.c(36): warning: #546-D: transfer of control bypasses initialization of: variable "c" (declared at line 38) goto no_prefix; ^ packages\micropython-latest\py\parsenumbase.c: 1 warning, 0 errors compiling parse.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\parse.c(646): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(peek_result(parser, i)); packages\micropython-latest\py\parse.c(660): warning: #188-D: enumerated type mixed with another type mp_binary_op_t op = token_to_op[tok - MP_TOKEN_OP_PLUS]; packages\micropython-latest\py\parse.c(684): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(peek_result(parser, 1)); packages\micropython-latest\py\parse.c(942): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok_kind = rule_arg[i] & ULE_ARG_ARG_MASK; packages\micropython-latest\py\parse.c(994): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok_kind = rule_arg[x] & ULE_ARG_ARG_MASK; packages\micropython-latest\py\parse.c: 13 warnings, 0 errors compiling persistentcode.c... compiling pystack.c... compiling qstr.c... compiling reader.c... compiling repl.c... compiling runtime_utils.c... compiling runtime.c... compiling scope.c... packages\micropython-latest\py\scope.c(111): warning: #188-D: enumerated type mixed with another type id_info_t *id = scope_find_or_add_id(s, qst, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\scope.c: 1 warning, 0 errors compiling showbc.c... compiling sequence.c... packages\micropython-latest\py\sequence.c(224): warning: #188-D: enumerated type mixed with another type return (mp_binary_op(op, items1[i], items2[i]) == mp_const_true); packages\micropython-latest\py\sequence.c: 1 warning, 0 errors compiling smallint.c... compiling stackctrl.c... compiling stream.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\stream.c: 8 warnings, 0 errors compiling unicode.c... compiling vstr.c... compiling vm.c... packages\micropython-latest\py\vm.c(266): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto load_check; ^ packages\micropython-latest\py\vm.c(475): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto local_name_error; ^ packages\micropython-latest\py\vm.c(485): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto local_name_error; ^ packages\micropython-latest\py\vm.c(713): warning: #546-D: transfer of control bypasses initialization of: variable "slab" (declared at line 649) goto unwind_jump; ^ packages\micropython-latest\py\vm.c(1260): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto load_check; ^ packages\micropython-latest\py\vm.c(1265): warning: #188-D: enumerated type mixed with another type ET_TOP(mp_unary_op(ip[-1] - MP_BC_UNARY_OP_MULTI, TOP())); packages\micropython-latest\py\vm.c(1270): warning: #188-D: enumerated type mixed with another type ET_TOP(mp_binary_op(ip[-1] - MP_BC_BINARY_OP_MULTI, lhs, rhs)); packages\micropython-latest\py\vm.c(1398): warning: #1293-D: assignment in condition while ((c = *ip)) { packages\micropython-latest\py\vm.c: 8 warnings, 0 errors compiling warning.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\warning.c: 1 warning, 0 errors compiling interrupt_char.c... compiling readline.c... compiling mpirq.c... packages\micropython-latest\lib\utils\mpirq.c(82): warning: #223-D: function "mp_sched_schedule" declared implicitly mp_sched_schedule(self->handler, self->parent); packages\micropython-latest\lib\utils\mpirq.c: 1 warning, 0 errors compiling printf.c... compiling pyexec.c... compiling stdout_helpers.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\lib\utils\stdout_helpers.c: 8 warnings, 0 errors compiling sys_stdio_mphal.c... compiling machine_i2c.c... compiling machine_mem.c... compiling machine_pinbase.c... packages\micropython-latest\extmod\machine_pinbase.c(73): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\extmod\machine_pinbase.c: 1 warning, 0 errors compiling machine_pulse.c... compiling machine_signal.c... packages\micropython-latest\extmod\machine_signal.c(131): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\extmod\machine_signal.c: 1 warning, 0 errors compiling machine_spi.c... compiling modbtree.c... compiling modframebuf.c... compiling modonewire.c... packages\micropython-latest\extmod\modonewire.c(49): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(53): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c(60): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(66): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c(72): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(81): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c: 6 warnings, 0 errors compiling modubinascii.c... compiling moducryptolib.c... compiling moductypes.c... compiling moduheapq.c... compiling moduhashlib.c... compiling modujson.c... compiling modure.c... compiling modurandom.c... compiling moduselect.c... compiling modussl_mbedtls.c... compiling modussl_axtls.c... compiling modutimeq.c... compiling moduzlib.c... compiling modwebrepl.c... compiling modwebsocket.c... compiling uos_dupterm.c... compiling utime_mphal.c... compiling vfs.c... compiling vfs_fat.c... compiling vfs_fat_diskio.c... compiling vfs_fat_file.c... compiling vfs_posix_file.c... compiling vfs_posix.c... compiling vfs_reader.c... compiling virtpin.c... compiling _frozen_mpy.c... compiling file.c... compiling help.c... compiling gccollect.c... packages\micropython-latest\port\gccollect.c(39): warning: #1254-D: arithmetic on pointer to void or function type gc_collect_root(rt_thread_self()->stack_addr, ((mp_uint_t)((void *) P_STATE_THREAD(stack_top) - rt_thread_self()->stack_addr)) / 4); packages\micropython-latest\port\gccollect.c: 1 warning, 0 errors compiling machine_hw_i2c.c... compiling machine_hw_spi.c... compiling machine_pin.c... packages\micropython-latest\port\machine_pin.c(222): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\port\machine_pin.c: 1 warning, 0 errors compiling machine_uart.c... compiling modmachine.c... compiling modnetwork.c... compiling modpyb.c... compiling moduos.c... compiling modrtthread.c... compiling moduos_file.c... compiling modusocket.c... compiling modutime.c... packages\micropython-latest\port\modutime.c(57): warning: #223-D: function "trunc" declared implicitly t = (time_t) ICROPY_FLOAT_C_FUN(trunc)(val); packages\micropython-latest\port\modutime.c(101): warning: #223-D: function "timeutils_mktime" declared implicitly return mp_obj_new_int_from_uint(timeutils_mktime(mp_obj_get_int(elem[0]), packages\micropython-latest\port\modutime.c: 2 warnings, 0 errors compiling mphalport.c... compiling mpthreadport.c... compiling mpy_main.c... compiling rtt_getchar.c... compiling netutils.c... compiling timeutils.c... compiling softqspi.c... compiling softspi.c... compiling backtrace.c... compiling div0.c... compiling showmem.c... assembling context_rvds.S... compiling cpuport.c... compiling hwtimer.c... compiling pin.c... compiling rt_drv_pwm.c... compiling rtc.c... compiling serial.c... compiling completion.c... compiling dataqueue.c... compiling pipe.c... compiling ringblk_buf.c... compiling ringbuffer.c... compiling waitqueue.c... compiling workqueue.c... compiling shell.c... compiling symbol.c... compiling cmd.c... compiling msh_cmd.c... compiling msh.c... compiling msh_file.c... compiling finsh_error.c... compiling finsh_compiler.c... compiling finsh_heap.c... compiling finsh_init.c... compiling finsh_node.c... compiling finsh_ops.c... compiling finsh_parser.c... compiling finsh_var.c... compiling finsh_vm.c... compiling libc.c... compiling finsh_token.c... compiling mem_std.c... compiling stubs.c... compiling time.c... compiling gmtime_r.c... linking... .\build\keil\Obj\rtthread.axf: Error: L6218E: Undefined symbol mp_sched_schedule (referred from mpirq.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages. ".\build\keil\Obj\rtthread.axf" - 1 Error(s), 104 Warning(s). Target not created. Build Time Elapsed: 00:00:29
armink
2019-01-15
这家伙很懒,什么也没写!
不开启多线程情况又修复了下,辛苦下,再试试哈
hxcnz
2019-01-15
这家伙很懒,什么也没写!
>不开启多线程情况又修复了下,辛苦下,再试试哈 --- 开了uos的情况下还是有2个错误: *** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'rt-thread' compiling clock.c... compiling components.c... compiling cpu.c... compiling device.c... compiling idle.c... compiling ipc.c... compiling irq.c... compiling kservice.c... compiling mem.c... compiling memheap.c... compiling mempool.c... compiling object.c... compiling scheduler.c... compiling signal.c... compiling thread.c... compiling timer.c... compiling system_SWM320.c... compiling SWM320_adc.c... compiling SWM320_can.c... compiling SWM320_crc.c... compiling SWM320_dma.c... compiling SWM320_exti.c... compiling SWM320_flash.c... compiling SWM320_gpio.c... compiling SWM320_i2c.c... compiling SWM320_lcd.c... compiling SWM320_norflash.c... compiling SWM320_port.c... compiling SWM320_pwm.c... compiling SWM320_rtc.c... compiling SWM320_sdio.c... compiling SWM320_sdram.c... compiling SWM320_spi.c... compiling SWM320_timr.c... assembling startup_SWM320.s... compiling SWM320_uart.c... compiling SWM320_wdt.c... compiling main.c... compiling board.c... compiling drv_gpio.c... compiling drv_uart.c... compiling argcheck.c... compiling asmarm.c... compiling asmbase.c... compiling asmthumb.c... compiling asmx64.c... compiling asmx86.c... compiling asmxtensa.c... compiling bc.c... compiling binary.c... compiling builtinevex.c... compiling builtinhelp.c... compiling builtinimport.c... compiling emitbc.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitbc.c(838): warning: #68-D: integer conversion resulted in a change of sign emit_bc_pre(emit, -1 + n_args); packages\micropython-latest\py\emitbc.c(843): warning: #68-D: integer conversion resulted in a change of sign emit_bc_pre(emit, -1 + n_left + n_right + 1); packages\micropython-latest\py\emitbc.c: 3 warnings, 0 errors compiling emitcommon.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitcommon.c(35): warning: #188-D: enumerated type mixed with another type id_info_t *id = scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitcommon.c: 2 warnings, 0 errors compiling compile.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\compile.c(416): warning: #68-D: integer conversion resulted in a change of sign uint have_star_index = -1; packages\micropython-latest\py\compile.c(501): warning: #111-D: statement is unreachable break; packages\micropython-latest\py\compile.c(1222): warning: #188-D: enumerated type mixed with another type id_info_t *id_info = scope_find_or_add_id(comp->scope_cur, qst, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\compile.c(1262): warning: #546-D: transfer of control bypasses initialization of: variable "n_elif" (declared at line 1280) goto done; ^ packages\micropython-latest\py\compile.c(2018): warning: #546-D: transfer of control bypasses initialization of: variable "pns1" (declared at line 1931) variable "kind" (declared at line 1932) goto plain_assign; ^ packages\micropython-latest\py\compile.c(2133): warning: #188-D: enumerated type mixed with another type mp_binary_op_t binary_op = MP_BINARY_OP_OR + P_PARSE_NODE_STRUCT_KIND(pns) - PN_expr; packages\micropython-latest\py\compile.c(2148): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(pns->nodes[i]); packages\micropython-latest\py\compile.c(2169): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(pns->nodes[0]); packages\micropython-latest\py\compile.c(2739): warning: #188-D: enumerated type mixed with another type MIT_ARG(load_const_tok, arg); packages\micropython-latest\py\compile.c(2838): warning: #188-D: enumerated type mixed with another type id_info_t *id_info = scope_find_or_add_id(comp->scope_cur, param_name, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\compile.c(3035): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(comp->scope_cur, qstr_arg, ID_INFO_KIND_LOCAL); packages\micropython-latest\py\compile.c(3075): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, MP_QSTR___class__, ID_INFO_KIND_LOCAL); packages\micropython-latest\py\compile.c: 13 warnings, 0 errors compiling emitglue.c... compiling emitinlinethumb.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitinlinethumb.c: 1 warning, 0 errors compiling emitinlinextensa.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitinlinextensa.c: 1 warning, 0 errors compiling emitnarm.c... compiling emitnative.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\emitnative.c: 1 warning, 0 errors compiling emitnthumb.c... compiling emitnx64.c... compiling emitnx86.c... compiling emitnxtensa.c... compiling formatfloat.c... compiling frozenmod.c... compiling gc.c... compiling lexer.c... packages\micropython-latest\py\lexer.c(551): warning: #188-D: enumerated type mixed with another type lex->tok_kind = MP_TOKEN_KW_FALSE + i; packages\micropython-latest\py\lexer.c(658): warning: #188-D: enumerated type mixed with another type lex->tok_kind = tok_enc_kind[tok_enc_index]; packages\micropython-latest\py\lexer.c: 2 warnings, 0 errors compiling malloc.c... compiling map.c... compiling modarray.c... compiling modbuiltins.c... packages\micropython-latest\py\modbuiltins.c(278): warning: #188-D: enumerated type mixed with another type if (best_obj == P_OBJ_NULL || (mp_binary_op(op, key, best_key) == mp_const_true)) { packages\micropython-latest\py\modbuiltins.c(298): warning: #188-D: enumerated type mixed with another type if (best_obj == P_OBJ_NULL || (mp_binary_op(op, key, best_key) == mp_const_true)) { packages\micropython-latest\py\modbuiltins.c: 2 warnings, 0 errors compiling modcmath.c... compiling modcollections.c... compiling modgc.c... compiling modio.c... compiling modmath.c... compiling modmicropython.c... compiling modstruct.c... compiling modsys.c... compiling modthread.c... compiling moduerrno.c... compiling mpprint.c... compiling mpstate.c... compiling mpy_scheduler.c... compiling nativeglue.c... compiling mpz.c... compiling nlr.c... compiling nlrsetjmp.c... compiling nlrx64.c... compiling nlrthumb.c... compiling nlrx86.c... compiling nlrxtensa.c... compiling obj.c... compiling objattrtuple.c... compiling objarray.c... packages\micropython-latest\py\objarray.c(407): warning: #546-D: transfer of control bypasses initialization of: variable "src_slice" (declared at line 393) goto compat_error; ^ packages\micropython-latest\py\objarray.c(427): warning: #546-D: transfer of control bypasses initialization of: variable "src_slice" (declared at line 393) goto compat_error; ^ packages\micropython-latest\py\objarray.c(495): warning: #940-D: missing return statement at end of non-void function "array_subscr" } packages\micropython-latest\py\objarray.c: 3 warnings, 0 errors compiling objbool.c... compiling objcell.c... compiling objboundmeth.c... compiling objclosure.c... compiling objdeque.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\objdeque.c: 8 warnings, 0 errors compiling objcomplex.c... compiling objdict.c... compiling objenumerate.c... compiling objexcept.c... packages\micropython-latest\py\objexcept.c(109): warning: #188-D: enumerated type mixed with another type mp_print_kind_t k = kind & ~PRINT_EXC_SUBCLASS; packages\micropython-latest\py\objexcept.c: 1 warning, 0 errors compiling objfilter.c... compiling objfloat.c... compiling objfun.c... compiling objgenerator.c... packages\micropython-latest\py\objgenerator.c(141): warning: #170-D: pointer points outside of underlying object if (self->code_state.sp == self->code_state.state - 1) { packages\micropython-latest\py\objgenerator.c(291): warning: #170-D: pointer points outside of underlying object if (self->code_state.sp == self->code_state.state - 1) { packages\micropython-latest\py\objgenerator.c: 2 warnings, 0 errors compiling objgetitemiter.c... compiling objint.c... packages\micropython-latest\py\objint.c(109): warning: #61-D: integer operation result is out of range if ((e & ~(1 << P_FLOAT_SIGN_SHIFT_I32)) == 0) { packages\micropython-latest\py\objint.c: 1 warning, 0 errors compiling objint_longlong.c... compiling objint_mpz.c... packages\micropython-latest\py\objint_mpz.c(201): warning: #546-D: transfer of control bypasses initialization of: variable "res" (declared at line 209) goto zero_division_error; ^ packages\micropython-latest\py\objint_mpz.c(319): warning: #940-D: missing return statement at end of non-void function "mp_obj_int_binary_op" } packages\micropython-latest\py\objint_mpz.c: 2 warnings, 0 errors compiling objmap.c... compiling objlist.c... compiling objmodule.c... compiling objnone.c... compiling objnamedtuple.c... compiling objobject.c... compiling objpolyiter.c... compiling objproperty.c... compiling objrange.c... compiling objreversed.c... compiling objset.c... compiling objsingleton.c... compiling objslice.c... compiling objstringio.c... compiling objstrunicode.c... compiling objstr.c... packages\micropython-latest\py\objstr.c(210): warning: #546-D: transfer of control bypasses initialization of: variable "len_in" (declared at line 246) variable "iterable" (declared at line 255) goto wrong_args; ^ packages\micropython-latest\py\objstr.c(224): warning: #546-D: transfer of control bypasses initialization of: variable "len_in" (declared at line 246) variable "iterable" (declared at line 255) goto wrong_args; ^ packages\micropython-latest\py\objstr.c(709): warning: #546-D: transfer of control bypasses initialization of: variable "p" (declared at line 712) goto out_error; ^ packages\micropython-latest\py\objstr.c(1413): warning: #546-D: transfer of control bypasses initialization of: variable "flags" (declared at line 1442) variable "fill" (declared at line 1443) variable "alt" (declared at line 1444) variable "width" (declared at line 1457) variable "prec" (declared at line 1469) goto incomplete_format; ^ packages\micropython-latest\py\objstr.c(1461): warning: #546-D: transfer of control bypasses initialization of: variable "prec" (declared at line 1469) goto not_enough_args; ^ packages\micropython-latest\py\objstr.c: 5 warnings, 0 errors compiling objtuple.c... compiling objtype.c... packages\micropython-latest\py\objtype.c(264): warning: #188-D: enumerated type mixed with another type mp_obj_print_helper(print, self->subobj[0], kind | PRINT_EXC_SUBCLASS); packages\micropython-latest\py\objtype.c(379): warning: #69-D: integer conversion resulted in truncation [MP_UNARY_OP_INT] = MP_QSTR___int__, packages\micropython-latest\py\objtype.c(682): warning: #546-D: transfer of control bypasses initialization of: variable "member" (declared at line 689) variable "lookup" (declared at line 690) goto skip_special_accessors; ^ packages\micropython-latest\py\objtype.c: 3 warnings, 0 errors compiling opmethods.c... compiling objzip.c... compiling parsenum.c... compiling parsenumbase.c... packages\micropython-latest\py\parsenumbase.c(36): warning: #546-D: transfer of control bypasses initialization of: variable "c" (declared at line 38) goto no_prefix; ^ packages\micropython-latest\py\parsenumbase.c: 1 warning, 0 errors compiling parse.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\parse.c(646): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(peek_result(parser, i)); packages\micropython-latest\py\parse.c(660): warning: #188-D: enumerated type mixed with another type mp_binary_op_t op = token_to_op[tok - MP_TOKEN_OP_PLUS]; packages\micropython-latest\py\parse.c(684): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok = P_PARSE_NODE_LEAF_ARG(peek_result(parser, 1)); packages\micropython-latest\py\parse.c(942): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok_kind = rule_arg[i] & ULE_ARG_ARG_MASK; packages\micropython-latest\py\parse.c(994): warning: #188-D: enumerated type mixed with another type mp_token_kind_t tok_kind = rule_arg[x] & ULE_ARG_ARG_MASK; packages\micropython-latest\py\parse.c: 13 warnings, 0 errors compiling persistentcode.c... compiling pystack.c... compiling qstr.c... compiling reader.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\reader.c(89): warning: #223-D: function "read" declared implicitly int n = read(reader->fd, reader->buf, sizeof(reader->buf)); packages\micropython-latest\py\reader.c(104): warning: #223-D: function "close" declared implicitly close(reader->fd); packages\micropython-latest\py\reader.c(113): warning: #223-D: function "read" declared implicitly int n = read(rp->fd, rp->buf, sizeof(rp->buf)); packages\micropython-latest\py\reader.c(116): warning: #223-D: function "close" declared implicitly close(fd); packages\micropython-latest\py\reader.c(130): warning: #223-D: function "open" declared implicitly int fd = open(filename, O_RDONLY, 0644); packages\micropython-latest\py\reader.c: 13 warnings, 0 errors compiling repl.c... compiling runtime_utils.c... compiling runtime.c... compiling scope.c... packages\micropython-latest\py\scope.c(111): warning: #188-D: enumerated type mixed with another type id_info_t *id = scope_find_or_add_id(s, qst, ID_INFO_KIND_UNDECIDED); packages\micropython-latest\py\scope.c: 1 warning, 0 errors compiling showbc.c... compiling sequence.c... packages\micropython-latest\py\sequence.c(224): warning: #188-D: enumerated type mixed with another type return (mp_binary_op(op, items1[i], items2[i]) == mp_const_true); packages\micropython-latest\py\sequence.c: 1 warning, 0 errors compiling smallint.c... compiling stackctrl.c... compiling stream.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\py\stream.c: 8 warnings, 0 errors compiling unicode.c... compiling vm.c... packages\micropython-latest\py\vm.c(266): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto load_check; ^ packages\micropython-latest\py\vm.c(475): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto local_name_error; ^ packages\micropython-latest\py\vm.c(485): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto local_name_error; ^ packages\micropython-latest\py\vm.c(713): warning: #546-D: transfer of control bypasses initialization of: variable "slab" (declared at line 649) goto unwind_jump; ^ packages\micropython-latest\py\vm.c(1260): warning: #546-D: transfer of control bypasses initialization of: variable "unum" (declared at line 249) goto load_check; ^ packages\micropython-latest\py\vm.c(1265): warning: #188-D: enumerated type mixed with another type ET_TOP(mp_unary_op(ip[-1] - MP_BC_UNARY_OP_MULTI, TOP())); packages\micropython-latest\py\vm.c(1270): warning: #188-D: enumerated type mixed with another type ET_TOP(mp_binary_op(ip[-1] - MP_BC_BINARY_OP_MULTI, lhs, rhs)); packages\micropython-latest\py\vm.c(1398): warning: #1293-D: assignment in condition while ((c = *ip)) { packages\micropython-latest\py\vm.c: 8 warnings, 0 errors compiling vstr.c... compiling warning.c... packages\micropython-latest\py/emit.h(163): warning: #188-D: enumerated type mixed with another type scope_find_or_add_id(scope, qst, ID_INFO_KIND_GLOBAL_IMPLICIT); packages\micropython-latest\py\warning.c: 1 warning, 0 errors compiling interrupt_char.c... compiling mpirq.c... compiling readline.c... compiling printf.c... compiling pyexec.c... compiling stdout_helpers.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\lib\utils\stdout_helpers.c: 8 warnings, 0 errors compiling sys_stdio_mphal.c... compiling machine_i2c.c... compiling machine_mem.c... compiling machine_pinbase.c... packages\micropython-latest\extmod\machine_pinbase.c(73): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\extmod\machine_pinbase.c: 1 warning, 0 errors compiling machine_pulse.c... compiling machine_signal.c... packages\micropython-latest\extmod\machine_signal.c(131): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\extmod\machine_signal.c: 1 warning, 0 errors compiling machine_spi.c... compiling modbtree.c... compiling modframebuf.c... compiling modonewire.c... packages\micropython-latest\extmod\modonewire.c(49): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(53): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c(60): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(66): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c(72): warning: #223-D: function "rt_hw_interrupt_disable" declared implicitly uint32_t i = p_hal_quiet_timing_enter(); packages\micropython-latest\extmod\modonewire.c(81): warning: #223-D: function "rt_hw_interrupt_enable" declared implicitly p_hal_quiet_timing_exit(i); packages\micropython-latest\extmod\modonewire.c: 6 warnings, 0 errors compiling modubinascii.c... compiling moducryptolib.c... compiling moductypes.c... compiling moduhashlib.c... compiling moduheapq.c... compiling modujson.c... compiling modurandom.c... compiling modure.c... compiling moduselect.c... compiling modussl_axtls.c... compiling modussl_mbedtls.c... compiling modutimeq.c... compiling moduzlib.c... compiling modwebrepl.c... compiling modwebsocket.c... compiling uos_dupterm.c... compiling utime_mphal.c... compiling vfs.c... compiling vfs_fat.c... compiling vfs_fat_diskio.c... compiling vfs_fat_file.c... compiling vfs_posix.c... compiling vfs_posix_file.c... compiling vfs_reader.c... compiling virtpin.c... compiling _frozen_mpy.c... compiling file.c... ..\..\components\libc\compilers\armlibc\sys/unistd.h(39): warning: #47-D: incompatible redefinition of macro "O_RDONLY" (declared at line 50 of "..\..\include\libc/libc_fcntl.h") #define O_RDONLY 0 /* +1 == FREAD */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(40): warning: #47-D: incompatible redefinition of macro "O_WRONLY" (declared at line 51 of "..\..\include\libc/libc_fcntl.h") #define O_WRONLY 1 /* +1 == FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(41): warning: #47-D: incompatible redefinition of macro "O_RDWR" (declared at line 52 of "..\..\include\libc/libc_fcntl.h") #define O_RDWR 2 /* +1 == FREAD|FWRITE */ ..\..\components\libc\compilers\armlibc\sys/unistd.h(42): warning: #47-D: incompatible redefinition of macro "O_APPEND" (declared at line 58 of "..\..\include\libc/libc_fcntl.h") #define O_APPEND _FAPPEND ..\..\components\libc\compilers\armlibc\sys/unistd.h(43): warning: #47-D: incompatible redefinition of macro "O_CREAT" (declared at line 54 of "..\..\include\libc/libc_fcntl.h") #define O_CREAT _FCREAT ..\..\components\libc\compilers\armlibc\sys/unistd.h(44): warning: #47-D: incompatible redefinition of macro "O_TRUNC" (declared at line 57 of "..\..\include\libc/libc_fcntl.h") #define O_TRUNC _FTRUNC ..\..\components\libc\compilers\armlibc\sys/unistd.h(45): warning: #47-D: incompatible redefinition of macro "O_EXCL" (declared at line 55 of "..\..\include\libc/libc_fcntl.h") #define O_EXCL _FEXCL ..\..\components\libc\compilers\armlibc\sys/unistd.h(46): warning: #47-D: incompatible redefinition of macro "O_SYNC" (declared at line 61 of "..\..\include\libc/libc_fcntl.h") #define O_SYNC _FSYNC packages\micropython-latest\port\file.c(71): warning: #223-D: function "read" declared implicitly mp_int_t r = read(o->fd, buf, size); packages\micropython-latest\port\file.c(83): error: #20: identifier "STDERR_FILENO" is undefined if (o->fd <= STDERR_FILENO) { packages\micropython-latest\port\file.c(88): warning: #223-D: function "write" declared implicitly mp_int_t r = write(o->fd, buf, size); packages\micropython-latest\port\file.c(110): warning: #223-D: function "lseek" declared implicitly off_t off = lseek(o->fd, s->offset, s->whence); packages\micropython-latest\port\file.c(119): warning: #223-D: function "fsync" declared implicitly if (fsync(o->fd) < 0) { packages\micropython-latest\port\file.c(132): warning: #223-D: function "close" declared implicitly close(self->fd); packages\micropython-latest\port\file.c(206): warning: #223-D: function "open" declared implicitly int fd = open(fname, mode_x | mode_rw, 0644); packages\micropython-latest\port\file.c: 14 warnings, 1 error compiling gccollect.c... packages\micropython-latest\port\gccollect.c(39): warning: #1254-D: arithmetic on pointer to void or function type gc_collect_root(rt_thread_self()->stack_addr, ((mp_uint_t)((void *) P_STATE_THREAD(stack_top) - rt_thread_self()->stack_addr)) / 4); packages\micropython-latest\port\gccollect.c: 1 warning, 0 errors compiling help.c... compiling machine_hw_i2c.c... compiling machine_hw_spi.c... compiling machine_pin.c... packages\micropython-latest\port\machine_pin.c(222): warning: #68-D: integer conversion resulted in a change of sign return -1; packages\micropython-latest\port\machine_pin.c: 1 warning, 0 errors compiling machine_uart.c... compiling modmachine.c... compiling modnetwork.c... compiling modpyb.c... compiling modrtthread.c... compiling moduos.c... compiling moduos_file.c... packages\micropython-latest\port\moduos_file.c(33): error: #5: cannot open source input file "dfs_posix.h": No such file or directory #include
packages\micropython-latest\port\moduos_file.c: 0 warnings, 1 error compiling modusocket.c... compiling modutime.c... packages\micropython-latest\port\modutime.c(57): warning: #223-D: function "trunc" declared implicitly t = (time_t) ICROPY_FLOAT_C_FUN(trunc)(val); packages\micropython-latest\port\modutime.c(101): warning: #223-D: function "timeutils_mktime" declared implicitly return mp_obj_new_int_from_uint(timeutils_mktime(mp_obj_get_int(elem[0]), packages\micropython-latest\port\modutime.c: 2 warnings, 0 errors compiling mphalport.c... compiling mpthreadport.c... compiling mpy_main.c... packages\micropython-latest\port\mpy_main.c(116): warning: #223-D: function "access" declared implicitly if (!access(boot_file, 0)) { packages\micropython-latest\port\mpy_main.c(120): warning: #223-D: function "access" declared implicitly if (!access(main_file, 0)) { packages\micropython-latest\port\mpy_main.c: 2 warnings, 0 errors compiling rtt_getchar.c... compiling netutils.c... compiling timeutils.c... compiling softqspi.c... compiling softspi.c... compiling backtrace.c... compiling div0.c... compiling showmem.c... assembling context_rvds.S... compiling cpuport.c... compiling hwtimer.c... compiling pin.c... compiling rt_drv_pwm.c... compiling rtc.c... compiling serial.c... compiling completion.c... compiling dataqueue.c... compiling pipe.c... compiling ringblk_buf.c... compiling ringbuffer.c... compiling waitqueue.c... compiling workqueue.c... compiling symbol.c... compiling shell.c... compiling cmd.c... compiling msh.c... compiling msh_cmd.c... compiling msh_file.c... compiling finsh_error.c... compiling finsh_compiler.c... compiling finsh_heap.c... compiling finsh_init.c... compiling finsh_node.c... compiling finsh_ops.c... compiling finsh_parser.c... compiling finsh_var.c... compiling finsh_vm.c... compiling finsh_token.c... compiling libc.c... compiling mem_std.c... compiling stubs.c... compiling time.c... compiling gmtime_r.c... ".\build\keil\Obj\rtthread.axf" - 2 Error(s), 132 Warning(s). Target not created. Build Time Elapsed: 00:00:31
armink
2019-01-15
这家伙很懒,什么也没写!
估计是你没有开 DFS 吧
hxcnz
2019-01-15
这家伙很懒,什么也没写!
>估计是你没有开 DFS 吧 --- 抱歉,确实是,测试的时候忘开了,现在可以了!:handshake:handshake
armink
2019-01-15
这家伙很懒,什么也没写!
>抱歉,确实是,测试的时候忘开了,现在可以了! --- 刚增加了 DFS 依赖,后面就不需要手动再开启 DFS 了
hxcnz
2019-01-15
这家伙很懒,什么也没写!
>刚增加了 DFS 依赖,后面就不需要手动再开启 DFS 了 --- 恩!:victory:
撰写答案
登录
注册新账号
关注者
0
被浏览
3.8k
关于作者
hxcnz
这家伙很懒,什么也没写!
提问
10
回答
37
被采纳
0
关注TA
发私信
相关问题
1
请问rt-thread有没有移植micropython呢
2
micropython import 文件名的方式执行脚本问题
3
第一篇:Micropython 的起源和发展
4
第二篇:RT-Thread Micropython 简介
5
第三篇:RT-Thread Micropython 快速入门
6
第四篇:Micropython DIY 项目汇总
7
第五篇:Micropython 教程和资源
8
第六篇: RT-Thread MicroPython 学习经验和学习路线
9
RT-Thread MicroPython 最新开发板固件汇总【已失效】
10
有Mpy专门的板块啦~
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
RT-Thread项目助手v0.2.0 - 支持Env Windows
2
RttreadV5.10上,GD32F450Z RTC时间显示问题
3
rt-smart启动流程分析
4
EtherKit快速上手PROFINET
5
RTThread USB转串口无法接收数据
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
SFUD
msh
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
2
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部