Wind River Support Network

HomeDefectsLIN8-9680
Fixed

LIN8-9680 : gcc: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1801

Created: Aug 20, 2018    Updated: May 24, 2020
Resolved Date: Oct 8, 2018
Found In Version: 8.0.0.26
Fix Version: 8.0.0.28
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Toolchain

Description

We encountered following gcc error when we tried to build ARM Compute Library:

-----
src/core/NEON/kernels/NEDirectConvolutionLayerKernel.cpp: In lambda function:
src/core/NEON/kernels/NEDirectConvolutionLayerKernel.cpp:712:32: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1801
execute_window_loop(window_out, [&](const Coordinates & id)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <support@windriver.com> for instructions.
scons: *** [build/src/core/NEON/kernels/NEDirectConvolutionLayerKernel.o] Error 1
scons: building terminated because of errors.
-----

This issue was fixed by following upstream commit:

- Bug 67244 - [5/6 Regression] internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1801
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67244

Steps to Reproduce

1. Configure a platform project with following options:

$WIND_BASE/wrlinux/configure --enable-reconfig --enable-board=mv-armada-38x --enable-kernel=standard --enable-rootfs=glibc-core+debug --enable-build=production --with-rcpl-version=0026

2. Add following lint to local.conf to change DEFAULTTUNE

DEFAULTTUNE = "armv7athf-neon"

3. Build the platform and export SDK

make && make export-sdk

4. Install SDK

5. Git clone ARM Compute Library:

git clone https://github.com/ARM-software/ComputeLibrary.git

6. Compile NEDirectConvolutionLayerKernel.cpp as follows (please replace --sysroot option to appropriate path)

cd ComputeLibrary
mkdir -p build/src/core/NEON/kernels
arm-wrs-linux-gnueabi-g++ -o build/src/core/NEON/kernels/NEDirectConvolutionLayerKernel.o -c -Wno-deprecated-declarations -Wall -DARCH_ARM -Wextra -Wno-unused-parameter -pedantic -Wdisabled-optimization -Wformat=2 -Winit-self -Wstrict-overflow=2 -Wswitch-default -fpermissive -std=gnu++11 -Wno-vla -Woverloaded-virtual -Wctor-dtor-privacy -Wsign-promo -Weffc++ -Wno-format-nonliteral -Wno-overlength-strings -Wno-strict-overflow -Wno-implicit-fallthrough -Wlogical-op -Wnoexcept -Wstrict-null-sentinel -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=<path to sysroot> -Werror -O0 -g -gdwarf-2 -fstack-protector-strong -D_GLIBCXX_USE_NANOSLEEP -DARM_COMPUTE_CPP_SCHEDULER=1 -DARM_COMPUTE_DEBUG_ENABLED -DARM_COMPUTE_ASSERTS_ENABLED -DARM_COMPUTE_LOGGING_ENABLED -Iinclude -I. -Ibuild/build/src/core -Ibuild/src/core -Ibuild/arm_compute/core/NEON/kernels/winograd -Iarm_compute/core/NEON/kernels/winograd -Ibuild/arm_compute/core/NEON/kernels/assembly -Iarm_compute/core/NEON/kernels/assembly src/core/NEON/kernels/NEDirectConvolutionLayerKernel.cpp

Other Downloads


Live chat
Online