https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106768

            Bug ID: 106768
           Summary: lto1.exe: internal compiler error: in
                    dwarf2out_finifsh, at dwarf2out.c:31350
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: johann.taferl at gmx dot at
  Target Milestone: ---

I am using the
- GNU Arm Embedded Toolchain in version 10.3-2021.10 (GCC 10.3.1) and 
- CMake 3.17.0 on
- Windows 10 Enterprise Build 19044.1889

Compiled with -Wall -Wextra and the compiler states not one warning in the
whole project.

Building in MinSizeRel.

GNU Arm Embedded Toolchain in version 9-2019-q4 (GCC 9.2.1) works fine.
Same Problem with gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi (GCC
11.2.1)

Not allowed to add sources.

Command line output GCC 10.3.1:

[build] 
c:/projects/et-software/p536-macolock/fw/btmodule_v2.x/devtools/gcc-arm-none-eabi-10.3-2021.10-win32/lib/gcc/arm-none-eabi/10.3.1/lto1.exe
-quiet -dumpdir ./ -dumpbase BTModule_App.elf.ltrans2 -mfloat-abi=soft -mthumb
-mcpu=cortex-m4 -mfloat-abi=soft -mlibarch=armv7e-m -march=armv7e-m
-auxbase-strip
C:\Users\tajo\AppData\Local\Temp\BTModule_App.elf.OB7v3j.ltrans2.ltrans.o -g
-O2 -Os -Wno-psabi -Wpedantic -Wextra -Wno-unused-parameter -version
-fno-openmp -fno-openacc -fno-pie -fcf-protection=none -fabi-version=6
-fno-exceptions -fdata-sections -ffunction-sections -fltrans
@C:\Users\tajo\AppData\Local\Temp\cc1WE0zi -o
C:\Users\tajo\AppData\Local\Temp\ccO9nf4q.s
[build] GNU GIMPLE (GNU Arm Embedded Toolchain 10.3-2021.10) version 10.3.1
20210824 (release) (arm-none-eabi)
[build]         compiled by GNU C version 7.3-win32 20180312, GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
[build] 
[build] GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
[build] GNU GIMPLE (GNU Arm Embedded Toolchain 10.3-2021.10) version 10.3.1
20210824 (release) (arm-none-eabi)
[build]         compiled by GNU C version 7.3-win32 20180312, GMP version
6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.18-GMP
[build] 
[build] GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
[build] lto1.exe: internal compiler error: in dwarf2out_finish, at
dwarf2out.c:31350
[build] Please submit a full bug report,
[build] with preprocessed source if appropriate.
[build] See <https://gcc.gnu.org/bugs/> for instructions.
[build] lto-wrapper.exe: fatal error:
c:\Projects\ET-Software\P536-MacoLock\FW\BTModule_V2.x\devtools\gcc-arm-none-eabi-10.3-2021.10-win32\bin\arm-none-eabi-g++.exe
returned 1 exit status
[build] compilation terminated.
[build] libdeLibraryCpp.a@0x204444 ../deLibraryCpp/libdeLibraryCpp.a@0x394274
../deLibraryCpp/libdeLibraryCpp.a@0x479730
../deLibraryCpp/libdeLibraryCpp.a@0x4d9124
../deLibraryCpp/libdeLibraryCpp.a@0x4da704
../deLibraryCpp/libdeLibraryCpp.a@0x4e4398
../deLibraryCpp/libdeLibraryCpp.a@0x4e84c0
../deLibraryCpp/libdeLibraryCpp.a@0x4e9148
../deLibraryCpp/libdeLibraryCpp.a@0x517e04
../deLibraryCpp/libdeLibraryCpp.a@0x536bd8
../deLibraryCpp/libdeLibraryCpp.a@0x544d78
../deLibraryCpp/libdeLibraryCpp.a@0x55e280
../deLibraryCpp/libdeLibraryCpp.a@0x57daac
../deLibraryCpp/libdeLibraryCpp.a@0x5ac63c
../deLibraryCpp/libdeLibraryCpp.a@0x5d6d0c
../deLibraryCpp/libdeLibraryCpp.a@0x5ea014
../deLibraryCpp/libdeLibraryCpp.a@0x60b8b0
../deLibraryCpp/libdeLibraryCpp.a@0x61dba0
../deLibraryCpp/libdeLibraryCpp.a@0x639ffc
../deLibraryCpp/libdeLibraryCpp.a@0x685a2c
../deLibraryCpp/libdeLibraryCpp.a@0x6ad700
../deLibraryCpp/libdeLibraryCpp.a@0x9f29f4
../deLibraryCpp/libdeLibraryCpp.a@0xa04eac
../deLibraryCpp/libdeLibraryCpp.a@0xa289d4
../deLibraryCpp/libdeLibraryCpp.a@0xa7fd34
../deLibraryCpp/libdeLibraryCpp.a@0xa9ec80
../deLibraryCpp/libdeLibraryCpp.a@0xabe988
../deLibraryCpp/libdeLibraryCpp.a@0xade1d8
../deLibraryCpp/libdeLibraryCpp.a@0xb1bd0c
../deLibraryCpp/libdeLibraryCpp.a@0xb3feac
../deLibraryCpp/libdeLibraryCpp.a@0xb99684
../deLibraryCpp/libdeLibraryCpp.a@0xba74e4
../deLibraryCpp/libdeLibraryCpp.a@0xbbdcc8
../deLibraryCpp/libdeLibraryCpp.a@0xbcee94
../deLibraryCpp/libdeLibraryCpp.a@0xbd9e78
../deLibraryCpp/libdeLibraryCpp.a@0xcac31c
../deLibraryCpp/libdeLibraryCpp.a@0xcc1888
../deLibraryCpp/libdeLibraryCpp.a@0xcc69d8
../deLibraryCpp/libdeLibraryCpp.a@0xce2ad8
../deLibraryCpp/libdeLibraryCpp.a@0xce8ff0
../deLibraryCpp/libdeLibraryCpp.a@0xd2e52c
../deLibraryCpp/libdeLibraryCpp.a@0xd360fc
../deLibraryCpp/libdeLibraryCpp.a@0x8ff64
../deLibraryCpp/libdeLibraryCpp.a@0xf05ec
../deLibraryCpp/libdeLibraryCpp.a@0xfa5b8
../deLibraryCpp/libdeLibraryCpp.a@0x112aec
../deLibraryCpp/libdeLibraryCpp.a@0x12b6b8
../deLibraryCpp/libdeLibraryCpp.a@0xa8bf0
../BTModule_Common/libBTModule_Common.a@0x1ba4
../BTModule_Common/libBTModule_Common.a@0x205cc
../BTModule_Common/libBTModule_Common.a@0x2293c 
[build]
c:/projects/et-software/p536-macolock/fw/btmodule_v2.x/devtools/gcc-arm-none-eabi-10.3-2021.10-win32/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe:
error: lto-wrapper failed
[build] collect2.exe: error: ld returned 1 exit status
[build] make[3]: *** [BTModule_App/BTModule_App.elf] Error 1
[build] make[2]: *** [BTModule_App/CMakeFiles/BTModule_App.dir/all] Error 2
[build] make[1]: *** [BTModule_App/CMakeFiles/BTModule_App.dir/rule] Error 2
[build] make: *** [BTModule_App] Error 2
[build] Build finished with exit code 2

----------------------------------------------------------------------

Command line output GCC 11.2.1:

[build] 
c:/projects/et-software/p536-macolock/fw/btmodule_v2.x/devtools/gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi/lib/gcc/../../libexec/gcc/arm-none-eabi/11.2.1/lto1.exe
-quiet -dumpbase ./BTModule_App.elf.ltrans2.ltrans -mfloat-abi=soft -mthumb
-mcpu=cortex-m4 -mfloat-abi=soft -mlibarch=armv7e-m -march=armv7e-m -g -O2 -Os
-Wno-psabi -Wpedantic -Wextra -Wno-unused-parameter -version -fno-openmp
-fno-openacc -fno-pie -fcf-protection=none -fabi-version=6 -fno-exceptions
-fdata-sections -ffunction-sections -fltrans
@C:\Users\tajo\AppData\Local\Temp\ccyJmFE7 -o
C:\Users\tajo\AppData\Local\Temp\ccwbMvd5.s
[build] GNU GIMPLE (GNU Toolchain for the Arm Architecture 11.2-2022.02
(arm-11.16)) version 11.2.1 20220111 (arm-none-eabi)
[build]         compiled by GNU C version 7.3-win32 20180312, GMP version
6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version
isl-0.15-1-g835ea3a-GMP
[build] 
[build] GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
[build] GNU GIMPLE (GNU Toolchain for the Arm Architecture 11.2-2022.02
(arm-11.16)) version 11.2.1 20220111 (arm-none-eabi)
[build]         compiled by GNU C version 7.3-win32 20180312, GMP version
6.2.1, MPFR version 3.1.6, MPC version 1.0.3, isl version
isl-0.15-1-g835ea3a-GMP
[build] 
[build] GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
[build] lto1.exe: internal compiler error: in dwarf2out_finish, at
dwarf2out.c:31684
[build] Please submit a full bug report,
[build] with preprocessed source if appropriate.
[build] See <https://bugs.linaro.org/> for instructions.
[build] lto-wrapper.exe: fatal error:
c:\Projects\ET-Software\P536-MacoLock\FW\BTModule_V2.x\devtools\gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi\bin\arm-none-eabi-g++.exe
returned 1 exit status
[build] compilation terminated.
[build]  ../deLibraryCpp/libdeLibraryCpp.a@0x2100c6
../deLibraryCpp/libdeLibraryCpp.a@0x3a463e
../deLibraryCpp/libdeLibraryCpp.a@0x48d57e
../deLibraryCpp/libdeLibraryCpp.a@0x4edbe2
../deLibraryCpp/libdeLibraryCpp.a@0x4ef1d6
../deLibraryCpp/libdeLibraryCpp.a@0x4f8e22
../deLibraryCpp/libdeLibraryCpp.a@0x4fcfba
../deLibraryCpp/libdeLibraryCpp.a@0x4fdc9e
../deLibraryCpp/libdeLibraryCpp.a@0x52e18e
../deLibraryCpp/libdeLibraryCpp.a@0x54c65e
../deLibraryCpp/libdeLibraryCpp.a@0x55b26a
../deLibraryCpp/libdeLibraryCpp.a@0x57437e
../deLibraryCpp/libdeLibraryCpp.a@0x59379a
../deLibraryCpp/libdeLibraryCpp.a@0x5c2016
../deLibraryCpp/libdeLibraryCpp.a@0x5ec1fa
../deLibraryCpp/libdeLibraryCpp.a@0x5ff18a
../deLibraryCpp/libdeLibraryCpp.a@0x620572
../deLibraryCpp/libdeLibraryCpp.a@0x6325d6
../deLibraryCpp/libdeLibraryCpp.a@0x64e666
../deLibraryCpp/libdeLibraryCpp.a@0x6996ee
../deLibraryCpp/libdeLibraryCpp.a@0x6c179e
../deLibraryCpp/libdeLibraryCpp.a@0xa11996
../deLibraryCpp/libdeLibraryCpp.a@0xa23df2
../deLibraryCpp/libdeLibraryCpp.a@0xa47932
../deLibraryCpp/libdeLibraryCpp.a@0xa9d98a
../deLibraryCpp/libdeLibraryCpp.a@0xabc2b2
../deLibraryCpp/libdeLibraryCpp.a@0xadb8f2
../deLibraryCpp/libdeLibraryCpp.a@0xafaa96
../deLibraryCpp/libdeLibraryCpp.a@0xb3787a
../deLibraryCpp/libdeLibraryCpp.a@0xb5ba76
../deLibraryCpp/libdeLibraryCpp.a@0xbb3f36
../deLibraryCpp/libdeLibraryCpp.a@0xbc1b7a
../deLibraryCpp/libdeLibraryCpp.a@0xbd85ca
../deLibraryCpp/libdeLibraryCpp.a@0xbe995e
../deLibraryCpp/libdeLibraryCpp.a@0xbf4dea
../deLibraryCpp/libdeLibraryCpp.a@0xcca8ea
../deLibraryCpp/libdeLibraryCpp.a@0xcdfcf6
../deLibraryCpp/libdeLibraryCpp.a@0xce4db2
../deLibraryCpp/libdeLibraryCpp.a@0xd00b72
../deLibraryCpp/libdeLibraryCpp.a@0xd06f9e
../deLibraryCpp/libdeLibraryCpp.a@0xd4bf6e
../deLibraryCpp/libdeLibraryCpp.a@0xd53b42
../deLibraryCpp/libdeLibraryCpp.a@0x96eba
../deLibraryCpp/libdeLibraryCpp.a@0xf821e
../deLibraryCpp/libdeLibraryCpp.a@0x1024fe
../deLibraryCpp/libdeLibraryCpp.a@0x11a88e
../deLibraryCpp/libdeLibraryCpp.a@0x133dd6
../deLibraryCpp/libdeLibraryCpp.a@0xaffa6
../BTModule_Common/libBTModule_Common.a@0x1ba4
../BTModule_Common/libBTModule_Common.a@0x1ffa0
../BTModule_Common/libBTModule_Common.a@0x222a4 
[build]
c:/projects/et-software/p536-macolock/fw/btmodule_v2.x/devtools/gcc-arm-11.2-2022.02-mingw-w64-i686-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/bin/ld.exe:
error: lto-wrapper failed
[build] collect2.exe: error: ld returned 1 exit status
[build] make[3]: *** [BTModule_App/BTModule_App.elf] Error 1
[build] make[2]: *** [BTModule_App/CMakeFiles/BTModule_App.dir/all] Error 2
[build] make[1]: *** [BTModule_App/CMakeFiles/BTModule_App.dir/rule] Error 2
[build] make: *** [BTModule_App] Error 2
[build] Build finished with exit code 2

Reply via email to