[SOLVED] Errors building frozen bytecode
-
I am getting the following error when building frozen_mpy.c. I followed these directions to set up my environment and I was able to successfully build a firmware without my custom modules in the frozen directory. But when I pulled them in it errors out. Not sure how to proceed.
Build commands:
make clean export IDF_PATH=~/pycom-esp-idf export BUILD_VERBOSE=true make BOARD=WIPY TARGET=boot make BOARD=WIPY TARGET=appAnd here is my verbose build log:
https://pastebin.com/iYkW0Etybuild/WIPY/release/frozen_mpy.c:7828:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_test_threading.old__lt_module_gt__Testing___init__[87] = { ^ build/WIPY/release/frozen_mpy.c:7864:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_test_threading.old__lt_module_gt__Testing___init___0 = {{&mp_type_str}, 32756, 40, (const byte*)"\x54\x65\x73\x74\x69\x6e\x67\x20\x65\x78\x63\x65\x70\x74\x69\x6f\x6e\x20\x6c\x6f\x67\x67\x69\x6e\x67\x20\x69\x6e\x73\x69\x64\x65\x20\x61\x20\x63\x6c\x61\x73\x73"}; ^ build/WIPY/release/frozen_mpy.c:7865:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_test_threading.old__lt_module_gt__Testing___init___1 = {{&mp_type_str}, 34209, 22, (const byte*)"\x57\x65\x20\x73\x68\x6f\x75\x6c\x64\x6e\x27\x74\x20\x67\x65\x74\x20\x68\x65\x72\x65\x2e"}; ^ build/WIPY/release/frozen_mpy.c:7866:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_test_threading.old__lt_module_gt__Testing___init__[3] = { ^ build/WIPY/release/frozen_mpy.c:7871:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_test_threading.old__lt_module_gt__Testing___init__ = { ^ build/WIPY/release/frozen_mpy.c:7887:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_test_threading.old__lt_module_gt__Testing[60] = { ^ build/WIPY/release/frozen_mpy.c:7911:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_test_threading.old__lt_module_gt__Testing[1] = { ^ build/WIPY/release/frozen_mpy.c:7914:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_test_threading.old__lt_module_gt__Testing = { ^ build/WIPY/release/frozen_mpy.c:7930:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_test_threading.old__lt_module_gt__testing[95] = { ^ build/WIPY/release/frozen_mpy.c:7971:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_test_threading.old__lt_module_gt__testing_0 = {{&mp_type_str}, 58712, 43, (const byte*)"\x54\x65\x73\x74\x69\x6e\x67\x20\x65\x78\x63\x65\x70\x74\x69\x6f\x6e\x20\x6c\x6f\x67\x67\x69\x6e\x67\x20\x69\x6e\x73\x69\x64\x65\x20\x61\x20\x66\x75\x6e\x63\x74\x69\x6f\x6e"}; ^ build/WIPY/release/frozen_mpy.c:7972:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_test_threading.old__lt_module_gt__testing_1 = {{&mp_type_str}, 34209, 22, (const byte*)"\x57\x65\x20\x73\x68\x6f\x75\x6c\x64\x6e\x27\x74\x20\x67\x65\x74\x20\x68\x65\x72\x65\x2e"}; ^ build/WIPY/release/frozen_mpy.c:7973:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_test_threading.old__lt_module_gt__testing[2] = { ^ build/WIPY/release/frozen_mpy.c:7977:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_test_threading.old__lt_module_gt__testing = { ^ build/WIPY/release/frozen_mpy.c:7993:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_test_threading.old__lt_module_gt_[37] = { ^ build/WIPY/release/frozen_mpy.c:8009:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_test_threading.old__lt_module_gt_[2] = { ^ build/WIPY/release/frozen_mpy.c:8013:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token const mp_raw_code_t raw_code_test_threading.old__lt_module_gt_ = { ^ build/WIPY/release/frozen_mpy.c:10878:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_deepsleep.non-shield__lt_module_gt__deepsleep[289] = { ^ build/WIPY/release/frozen_mpy.c:11019:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_0 = {{&mp_type_str}, 35400, 16, (const byte*)"\x44\x4f\x4f\x52\x5f\x52\x45\x45\x44\x5f\x55\x50\x5f\x50\x49\x4e"}; ^ build/WIPY/release/frozen_mpy.c:11020:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_1 = {{&mp_type_str}, 42727, 16, (const byte*)"\x44\x4f\x4f\x52\x5f\x52\x45\x45\x44\x5f\x44\x4e\x5f\x50\x49\x4e"}; ^ build/WIPY/release/frozen_mpy.c:11021:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_2 = {{&mp_type_str}, 34342, 12, (const byte*)"\x41\x55\x58\x5f\x57\x41\x4b\x45\x5f\x50\x49\x4e"}; ^ build/WIPY/release/frozen_mpy.c:11022:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_3 = {{&mp_type_str}, 30107, 12, (const byte*)"\x77\x61\x6b\x65\x5f\x70\x69\x6e\x73\x3a\x20\x27"}; ^ build/WIPY/release/frozen_mpy.c:11023:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_4 = {{&mp_type_str}, 52300, 25, (const byte*)"\x53\x69\x6d\x75\x6c\x61\x74\x69\x6e\x67\x20\x64\x65\x65\x70\x20\x73\x6c\x65\x65\x70\x20\x6f\x66\x20"}; ^ build/WIPY/release/frozen_mpy.c:11024:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_deepsleep.non-shield__lt_module_gt__deepsleep_5 = {{&mp_type_str}, 48481, 43, (const byte*)"\x53\x69\x6d\x75\x6c\x61\x74\x69\x6e\x67\x20\x64\x65\x65\x70\x20\x73\x6c\x65\x65\x70\x20\x6f\x66\x20\x69\x6e\x64\x65\x66\x69\x6e\x69\x74\x65\x20\x6c\x65\x6e\x67\x74\x68\x2e"}; ^ build/WIPY/release/frozen_mpy.c:11025:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_deepsleep.non-shield__lt_module_gt__deepsleep[7] = { ^ build/WIPY/release/frozen_mpy.c:11034:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_deepsleep.non-shield__lt_module_gt__deepsleep = { ^ build/WIPY/release/frozen_mpy.c:11050:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_deepsleep.non-shield__lt_module_gt_[25] = { ^ build/WIPY/release/frozen_mpy.c:11063:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_deepsleep.non-shield__lt_module_gt_[1] = { ^ build/WIPY/release/frozen_mpy.c:11066:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token const mp_raw_code_t raw_code_deepsleep.non-shield__lt_module_gt_ = { ^ build/WIPY/release/frozen_mpy.c:20214:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_tests_test_threading.old__lt_module_gt__Testing___init__[87] = { ^ build/WIPY/release/frozen_mpy.c:20250:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_tests_test_threading.old__lt_module_gt__Testing___init___0 = {{&mp_type_str}, 32756, 40, (const byte*)"\x54\x65\x73\x74\x69\x6e\x67\x20\x65\x78\x63\x65\x70\x74\x69\x6f\x6e\x20\x6c\x6f\x67\x67\x69\x6e\x67\x20\x69\x6e\x73\x69\x64\x65\x20\x61\x20\x63\x6c\x61\x73\x73"}; ^ build/WIPY/release/frozen_mpy.c:20251:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_tests_test_threading.old__lt_module_gt__Testing___init___1 = {{&mp_type_str}, 34209, 22, (const byte*)"\x57\x65\x20\x73\x68\x6f\x75\x6c\x64\x6e\x27\x74\x20\x67\x65\x74\x20\x68\x65\x72\x65\x2e"}; ^ build/WIPY/release/frozen_mpy.c:20252:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_tests_test_threading.old__lt_module_gt__Testing___init__[3] = { ^ build/WIPY/release/frozen_mpy.c:20257:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_tests_test_threading.old__lt_module_gt__Testing___init__ = { ^ build/WIPY/release/frozen_mpy.c:20273:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_tests_test_threading.old__lt_module_gt__Testing[60] = { ^ build/WIPY/release/frozen_mpy.c:20297:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_tests_test_threading.old__lt_module_gt__Testing[1] = { ^ build/WIPY/release/frozen_mpy.c:20300:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_tests_test_threading.old__lt_module_gt__Testing = { ^ build/WIPY/release/frozen_mpy.c:20316:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_tests_test_threading.old__lt_module_gt__testing[95] = { ^ build/WIPY/release/frozen_mpy.c:20357:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_tests_test_threading.old__lt_module_gt__testing_0 = {{&mp_type_str}, 58712, 43, (const byte*)"\x54\x65\x73\x74\x69\x6e\x67\x20\x65\x78\x63\x65\x70\x74\x69\x6f\x6e\x20\x6c\x6f\x67\x67\x69\x6e\x67\x20\x69\x6e\x73\x69\x64\x65\x20\x61\x20\x66\x75\x6e\x63\x74\x69\x6f\x6e"}; ^ build/WIPY/release/frozen_mpy.c:20358:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_tests_test_threading.old__lt_module_gt__testing_1 = {{&mp_type_str}, 34209, 22, (const byte*)"\x57\x65\x20\x73\x68\x6f\x75\x6c\x64\x6e\x27\x74\x20\x67\x65\x74\x20\x68\x65\x72\x65\x2e"}; ^ build/WIPY/release/frozen_mpy.c:20359:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_tests_test_threading.old__lt_module_gt__testing[2] = { ^ build/WIPY/release/frozen_mpy.c:20363:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_raw_code_t raw_code_tests_test_threading.old__lt_module_gt__testing = { ^ build/WIPY/release/frozen_mpy.c:20379:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_tests_test_threading.old__lt_module_gt_[37] = { ^ build/WIPY/release/frozen_mpy.c:20395:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_tests_test_threading.old__lt_module_gt_[2] = { ^ build/WIPY/release/frozen_mpy.c:20399:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token const mp_raw_code_t raw_code_tests_test_threading.old__lt_module_gt_ = { ^ build/WIPY/release/frozen_mpy.c:24650:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const byte bytecode_data_main.final__lt_module_gt_[663] = { ^ build/WIPY/release/frozen_mpy.c:24912:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_obj_str_t const_obj_main.final__lt_module_gt__0 = {{&mp_type_str}, 21005, 14, (const byte*)"\x62\x61\x74\x74\x65\x72\x79\x5f\x63\x68\x61\x72\x67\x65"}; ^ build/WIPY/release/frozen_mpy.c:24913:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token STATIC const mp_uint_t const_table_data_main.final__lt_module_gt_[1] = { ^ build/WIPY/release/frozen_mpy.c:24916:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token const mp_raw_code_t raw_code_main.final__lt_module_gt_ = { ^ build/WIPY/release/frozen_mpy.c:29774:6: error: 'raw_code_test_threading' undeclared here (not in a function) &raw_code_test_threading.old__lt_module_gt_, ^ build/WIPY/release/frozen_mpy.c:29782:6: error: 'raw_code_deepsleep' undeclared here (not in a function) &raw_code_deepsleep.non-shield__lt_module_gt_, ^ build/WIPY/release/frozen_mpy.c:29782:29: error: 'shield__lt_module_gt_' undeclared here (not in a function) &raw_code_deepsleep.non-shield__lt_module_gt_, ^ build/WIPY/release/frozen_mpy.c:29812:6: error: 'raw_code_tests_test_threading' undeclared here (not in a function) &raw_code_tests_test_threading.old__lt_module_gt_, ^ build/WIPY/release/frozen_mpy.c:29823:6: error: 'raw_code_main' undeclared here (not in a function) &raw_code_main.final__lt_module_gt_, ^ make: *** [build/WIPY/release/build/WIPY/release/frozen_mpy.o] Error 1[0_1507594978110_build.log](Uploading 100%) -
Found the problem quickly. I read the error message very carefully and found the file name embedded in that long STATIC variable name. Those were some old/unnecessary test code and when I removed them, it compiled.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login