Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failures building with arm-none-eabi-gcc v12 #795

Open
microbit-carlos opened this issue Sep 6, 2023 · 0 comments
Open

Failures building with arm-none-eabi-gcc v12 #795

microbit-carlos opened this issue Sep 6, 2023 · 0 comments

Comments

@microbit-carlos
Copy link
Collaborator

microbit-carlos commented Sep 6, 2023

The main error seems to be error: reference to 'byte' is ambiguous.

Sliced build output (it all didn't fit in a GH comment & it was always the same error), with gcc v12.3.1:

$ make all
python tools/makeversionhdr.py inc/genhdr/microbitversion.h
info: generate for target: bbc-microbit-classic-gcc-nosd 0.2.3 at /home/yotta_targets/bbc-microbit-classic-gcc-nosd
CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0017 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.18/Modules/CMakeForceCompiler.cmake:75 (message):
  The CMAKE_FORCE_C_COMPILER macro is deprecated.  Instead just set
  CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/yotta_targets/mbed-gcc/CMake/toolchain.cmake:78 (cmake_force_c_compiler)
  toolchain.cmake:8 (include)
  CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:78 (project)


CMake Deprecation Warning at /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.18/Modules/CMakeForceCompiler.cmake:89 (message):
  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
  /home/yotta_targets/mbed-gcc/CMake/toolchain.cmake:79 (cmake_force_cxx_compiler)
  toolchain.cmake:8 (include)
  CMakeFiles/3.18.4/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:78 (project)


GCC version is: 12.3.1
suppressing warnings from ble-nrf51822
suppressing warnings from nrf51-sdk
suppressing ALL warnings from mbed-classic, ble, ble-nrf51822 & nrf51-sdk
-- Configuring done
-- Generating done
-- Build files have been written to: /home/build/bbc-microbit-classic-gcc-nosd

...


[9/16] Building CXX object source/CMakeFiles/microbit-micropython.dir/home/source/microbit/microbiti2c.cpp.o
FAILED: source/CMakeFiles/microbit-micropython.dir/home/source/microbit/microbiti2c.cpp.o 
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-g++ -DYOTTA_MODULE_NAME=microbit-micropython -Dmicrobit_micropython_EXPORTS -Igenerated/include -I/home -I/home/yotta_modules/microbit-dal -I/home/yotta_modules/mbed-classic -I/home/yotta_modules/ble -I/home/yotta_modules/ble-nrf51822 -I/home/yotta_modules/nrf51-sdk -I/home/inc -I/home/inc/microbit -I/home/yotta_modules/microbit-dal/inc/core -I/home/yotta_modules/microbit-dal/inc/types -I/home/yotta_modules/microbit-dal/inc/drivers -I/home/yotta_modules/microbit-dal/inc/bluetooth -I/home/yotta_modules/microbit-dal/inc/platform -I/home/yotta_modules/mbed-classic/api -I/home/yotta_modules/mbed-classic/hal -I/home/yotta_modules/mbed-classic/targets/hal -I/home/yotta_modules/mbed-classic/targets/cmsis -I/home/yotta_modules/ble-nrf51822/source/btle -I/home/yotta_modules/ble-nrf51822/source/btle/custom -I/home/yotta_modules/ble-nrf51822/source/common -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/ble_services/ble_dfu -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/common -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/device_manager/config -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/ble/peer_manager -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/device -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/ble_flash -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/delay -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/hal -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/drivers_nrf/pstorage/config -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/bootloader_dfu/hci_transport -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/crc16 -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/hci -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/scheduler -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/timer -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/util -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fds -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/fstorage -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/libraries/experimental_section_vars -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/common/softdevice_handler -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/softdevice/s130/headers -I/home/yotta_modules/nrf51-sdk/source/nordic_sdk/components/toolchain -I/home/yotta_modules/mbed-classic/targets -I/home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC -I/home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822 -I/home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM -I/home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110 -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822 -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16 -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0 -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0 -I/home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT -I/home/source -fno-exceptions -fno-unwind-tables -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-statics -mcpu=cortex-m0 -mthumb -D__thumb2__ -Os -g -gdwarf-3 -DNDEBUG   -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DNRF51 -DTARGET_NORDIC -DTARGET_M0 -D__MBED__=1 -DMCU_NORDIC_16K -DTARGET_NRF51_MICROBIT -DTARGET_MCU_NORDIC_16K -DTARGET_MCU_NRF51_16K_S110  -DTARGET_NRF_LFCLK_RC -DTARGET_MCU_NORDIC_16K -D__CORTEX_M0 -DARM_MATH_CM0 -DNO_BLE -include "/home/build/bbc-microbit-classic-gcc-nosd/yotta_config.h" -MMD -MT source/CMakeFiles/microbit-micropython.dir/home/source/microbit/microbiti2c.cpp.o -MF source/CMakeFiles/microbit-micropython.dir/home/source/microbit/microbiti2c.cpp.o.d -o source/CMakeFiles/microbit-micropython.dir/home/source/microbit/microbiti2c.cpp.o -c /home/source/microbit/microbiti2c.cpp
In file included from /home/yotta_modules/mbed-classic/targets/cmsis/core_cm0.h:128,
                 from /home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h:97,
                 from /home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h:37,
                 from /home/yotta_modules/mbed-classic/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h:10,
                 from /home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/objects.h:19,
                 from /home/yotta_modules/mbed-classic/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h:55,
                 from /home/yotta_modules/mbed-classic/api/platform.h:21,
                 from /home/yotta_modules/mbed-classic/api/mbed.h:21,
                 from /home/yotta_modules/microbit-dal/inc/drivers/MicroBitDisplay.h:29,
                 from /home/inc/microbit/microbitdal.h:29,
                 from /home/source/microbit/microbiti2c.cpp:27:
/home/yotta_modules/mbed-classic/targets/cmsis/core_cmFunc.h: In function 'uint32_t __get_PSP()':
/home/yotta_modules/mbed-classic/targets/cmsis/core_cmFunc.h:426:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  426 |   register uint32_t result;
      |                     ^~~~~~
/home/yotta_modules/mbed-classic/targets/cmsis/core_cmFunc.h: In function 'uint32_t __get_MSP()':
/home/yotta_modules/mbed-classic/targets/cmsis/core_cmFunc.h:453:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  453 |   register uint32_t result;
      |                     ^~~~~~
In file included from /home/inc/py/mpstate.h:33,
                 from /home/inc/py/runtime.h:29,
                 from /home/source/microbit/microbiti2c.cpp:31:
/home/inc/py/misc.h: At global scope:
/home/inc/py/misc.h:122:29: error: reference to 'byte' is ambiguous
  122 | unichar utf8_get_char(const byte *s);
      |                             ^~~~
In file included from /home/yotta_modules/mbed-classic/api/platform.h:25:
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/misc.h:123:7: error: reference to 'byte' is ambiguous
  123 | const byte *utf8_next_char(const byte *s);
      |       ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/misc.h:167:34: error: reference to 'byte' is ambiguous
  167 | void vstr_add_byte(vstr_t *vstr, byte v);
      |                                  ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/misc.h:167:34: error: 'byte' has not been declared
  167 | void vstr_add_byte(vstr_t *vstr, byte v);
      |                                  ^~~~
/home/inc/py/misc.h:172:51: error: reference to 'byte' is ambiguous
  172 | void vstr_ins_byte(vstr_t *vstr, size_t byte_pos, byte b);
      |                                                   ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/misc.h:172:51: error: 'byte' has not been declared
  172 | void vstr_ins_byte(vstr_t *vstr, size_t byte_pos, byte b);
      |                                                   ^~~~
/home/inc/py/misc.h:205:41: error: reference to 'byte' is ambiguous
  205 | static inline mp_uint_t count_lead_ones(byte val) {
      |                                         ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
In file included from /home/inc/py/obj.h:31,
                 from /home/inc/py/mpstate.h:35:
/home/inc/py/qstr.h:55:11: error: reference to 'byte' is ambiguous
   55 |     const byte *qstrs[];
      |           ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/qstr.h:62:35: error: reference to 'byte' is ambiguous
   62 | mp_uint_t qstr_compute_hash(const byte *data, size_t len);
      |                                   ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/qstr.h:68:1: error: reference to 'byte' is ambiguous
   68 | byte *qstr_build_start(size_t len, byte **q_ptr);
      | ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/qstr.h:69:21: error: reference to 'byte' is ambiguous
   69 | qstr qstr_build_end(byte *q_ptr);
      |                     ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/qstr.h:69:27: error: 'q_ptr' was not declared in this scope
   69 | qstr qstr_build_end(byte *q_ptr);
      |                           ^~~~~
/home/inc/py/qstr.h:74:7: error: reference to 'byte' is ambiguous
   74 | const byte *qstr_data(qstr q, size_t *len);
      |       ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:644:33: error: reference to 'byte' is ambiguous
  644 | mp_obj_t mp_obj_new_bytes(const byte* data, size_t len);
      |                                 ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:656:75: error: reference to 'byte' is ambiguous
  656 | mp_obj_t mp_obj_new_fun_bc(mp_obj_t def_args, mp_obj_t def_kw_args, const byte *code, const mp_uint_t *const_table);
      |                                                                           ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:670:32: error: reference to 'byte' is ambiguous
  670 | mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
      |                                ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:670:54: error: expected primary-expression before 'nitems'
  670 | mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
      |                                                      ^~~~~~
/home/inc/py/obj.h:670:62: error: expected primary-expression before 'void'
  670 | mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
      |                                                              ^~~~
/home/inc/py/obj.h:670:73: error: expression list treated as compound expression in initializer [-fpermissive]
  670 | mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
      |                                                                         ^
/home/inc/py/obj.h:731:57: error: reference to 'byte' is ambiguous
  731 | void mp_str_print_quoted(const mp_print_t *print, const byte *str_data, size_t str_len, bool is_bytes);
      |                                                         ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:823:33: error: reference to 'byte' is ambiguous
  823 | qstr mp_obj_code_get_name(const byte *code_info);
      |                                 ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:867:43: error: reference to 'byte' is ambiguous
  867 | bool mp_seq_cmp_bytes(mp_uint_t op, const byte *data1, size_t len1, const byte *data2, size_t len2);
      |                                           ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/obj.h:867:75: error: reference to 'byte' is ambiguous
  867 | bool mp_seq_cmp_bytes(mp_uint_t op, const byte *data1, size_t len1, const byte *data2, size_t len2);
      |                                                                           ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/mpstate.h:71:5: error: reference to 'byte' is ambiguous
   71 |     byte *gc_alloc_table_start;
      |     ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/mpstate.h:76:5: error: reference to 'byte' is ambiguous
   76 |     byte *gc_pool_start;
      |     ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/mpstate.h:77:5: error: reference to 'byte' is ambiguous
   77 |     byte *gc_pool_end;
      |     ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/mpstate.h:186:5: error: reference to 'byte' is ambiguous
  186 |     byte *qstr_last_chunk;
      |     ^~~~
/opt/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/arm-none-eabi/include/c++/12.3.1/cstddef:69:14: note: candidates are: 'enum class std::byte'
   69 |   enum class byte : unsigned char {};
      |              ^~~~
/home/inc/py/misc.h:37:23: note:                 'typedef unsigned char byte'
   37 | typedef unsigned char byte;
      |                       ^~~~
/home/inc/py/misc.h:205:25: warning: 'count_lead_ones' defined but not used [-Wunused-variable]
  205 | static inline mp_uint_t count_lead_ones(byte val) {
      |                         ^~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
error: command ['ninja'] failed
make: *** [Makefile:23: yotta] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant