https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485
--- Comment #5 from Gang Peng <gang.peng at aclsemi dot com> --- (In reply to Andrew Pinski from comment #4) > >GNU Arm Embedded Toolchain 10.3-2021.10 > > I looked into the official releases of GCC 10.3.0 and arm.c:7855 does not > correspond to a place where an assert happens. You should file this bug with > the folks who recieved the binary release from since they have modified the > sources. > > Also GCC 10.x is no longer supported so can you try a newer version of GCC? > Like GCC 14.1.0 or 13.3.0? Dear Mr. Pinski, Thank you very much for you kindly reply. I have donwload the GNU Arm Embedded Toolchain 10.3-2021.10 from here: https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-aarch64-linux.tar.bz2?rev=b748c39178c043b4915b04645d7774d8&hash=9E173D105DC6E0D452EB3A813BF28AAB So I need report this issue to arm developer? And I have try the latest GNU Arm Embedded Toolchain 13.2 Rel: https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-aarch64-arm-none-eabi.tar.xz?rev=17baf091942042768d55c9a304610954&hash=06E4C2BB7EBE7C70EA4EA51ABF9AAE2D ubuntu240:~/build_code$ /home/gang.peng/arm-none-eabi_v13.2/bin/arm-none-eabi-g++ --version arm-none-eabi-g++ (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7)) 13.2.1 20231009 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The result is same: ubuntu240:~/build_code$ /home/gang.peng/arm-none-eabi_v13.2/bin/arm-none-eabi-g++ -MMD -MF libSecureChannel.CASEServer.cpp.o.d -Wconversion -O3 -g -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Werror -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -std=gnu++17 -fno-rtti -Wnon-virtual-dtor -DCHIP_PROJECT=1 -DCHIP_HAVE_CONFIG_H=1 -DCFG_MBEDTLS=0 -DCFG_MBEDTLS_ACCELERATOR=1 -DMBEDTLS_CONFIG_FILE=\"tfm_mbedcrypto_config_profile_medium.h\" -DCRYPTO_HW_ACCELERATOR -DLWIP_IPV6=1 -DLWIP_IPV6_ND=1 -DLWIP_IPV6_SCOPES=1 -DLWIP_PBUF_FROM_CUSTOM_POOLS=0 -DLWIP_IPV6_ROUTE_TABLE_SUPPORT=1 -DCHIP_DEVICE_LAYER_NONE=0 -DCHIP_SYSTEM_CONFIG_USE_ZEPHYR_NET_IF=0 -DCHIP_SYSTEM_CONFIG_USE_BSD_IFADDRS=0 -DCHIP_SYSTEM_CONFIG_USE_ZEPHYR_SOCKET_EXTENSIONS=0 -DCHIP_SYSTEM_CONFIG_USE_LWIP=1 -DCHIP_SYSTEM_CONFIG_USE_SOCKETS=0 -DCHIP_SYSTEM_CONFIG_USE_NETWORK_FRAMEWORK=0 -DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=\<lib/address_resolve/AddressResolve_DefaultImpl.h\> -fPIE -msingle-pic-base -mpic-register=r9 -fomit-frame-pointer -mno-pic-data-is-text-relative -mthumb -mlong-calls -mcpu=cortex-m33+nodsp -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mcmse --specs=nosys.specs --specs=nano.specs -nostdlib -fno-use-cxa-atexit -Wno-conversion -Wno-error -Wno-sign-compare -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-variable -Wno-literal-suffix -fno-builtin-printf -fno-builtin-sprintf -fno-builtin-snprintf -DCHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT=0 -DCHIP_MINMDNS_HIGH_VERBOSITY=0 -DCHIP_MINMDNS_DEFAULT_POLICY=1 -Iinclude -Iinclude/include -Iinclude/port -Iinclude/lib -c CASEServer.cpp -o libSecureChannel.CASEServer.cpp.o CASEServer.cpp: In member function 'virtual CHIP_ERROR chip::CASEServer::_ZThn8_N4chip10CASEServer17OnMessageReceivedEPNS_9Messaging15ExchangeContextERKNS_13PayloadHeaderEONS_6System18PacketBufferHandleE(chip::Messaging::ExchangeContext*, const chip::PayloadHeader&, chip::System::PacketBufferHandle&&)': CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at config/arm/arm.cc:8023 203 | } // namespace chip | ^ 0x7f495dd8e082 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.linaro.org/> for instructions. Thanks a lot! BRs Gang Peng