https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115485
Bug ID: 115485
Summary: CASEServer.cpp:203:1: internal compiler error: in
require_pic_register, at config/arm/arm.c:7855
Product: gcc
Version: 10.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gang.peng at aclsemi dot com
Target Milestone: ---
Dear Sir,
1. Compiler version (e.g., output of g++ --version)
ubuntu240:~/build_code$
/opt/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ --version
arm-none-eabi-g++ (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824
(release)
Copyright (C) 2020 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.
2. Command line used for compilation
/opt/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ -MMD -MF
libSecureChannel.CASEServer.cpp.o.d -Wconversion -Os -g -fno-common
-ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables
-fno-asynchronous-unwind-tables -Wall -Werror -Wstack-usage=8192 -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
-fmacro-prefix-map=.= -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=\ -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_HAVE_CONFIG_H=1 -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
3. Full error message and stack trace
CASEServer.cpp: In member function 'virtual CHIP_ERROR
chip::CASEServer::_ZThn4_N4chip10CASEServer28OnUnsolicitedMessageReceivedERKNS_13PayloadHeaderERPNS_9Messaging16ExchangeDelegateE(const
chip::PayloadHeader&, chip::Messaging::ExchangeDelegate*&)':
CASEServer.cpp:203:1: internal compiler error: in require_pic_register, at
config/arm/arm.c:7855
203 | } // namespace chip
| ^ 0x7f68ad3e5082
__libc_start_main ../csu/libc-start.c:308
Please submit a full bug report, with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See for instructions.
4. Attached is Minimal reproducible example of the code
Thank you very much!
BRs
Gang Peng