armel ICE gcc-4.4

Bug #635409 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Undecided
Yao Qi
gcc-4.4 (Ubuntu)
Fix Released
High
Unassigned
gcc-4.5 (Ubuntu)
Fix Released
High
Unassigned
mrpt (Ubuntu)
Fix Released
High
Unassigned

Bug Description

http://launchpadlibrarian.net/55072145/buildlog_ubuntu-maverick-armel.mrpt_1%3A0.8.1-1ubuntu1_FAILEDTOBUILD.txt.gz

[ 93%] Building CXX object apps/mrpt-performance/CMakeFiles/mrpt-performance.dir/perf-main.cpp.o
In file included from /build/buildd/mrpt-0.8.1/include/mrpt/random/RandomGenerators.h:33,
                 from /build/buildd/mrpt-0.8.1/include/mrpt/random.h:32,
                 from /build/buildd/mrpt-0.8.1/include/mrpt/bayes/CRejectionSamplingCapable.h:33,
                 from /build/buildd/mrpt-0.8.1/include/mrpt/bayes.h:37,
                 from /build/buildd/mrpt-0.8.1/include/mrpt/core.h:46,
                 from /build/buildd/mrpt-0.8.1/apps/mrpt-performance/perf-main.cpp:34:
/build/buildd/mrpt-0.8.1/include/mrpt/math/ops_matrices.h: In function 'typename MATRIX::mrpt_autotype::value_type mrpt::math::detail::detMatrix(const MATRIX&) [with MATRIX = mrpt::math::CMatrixFixedNumeric<float, 40u, 40u>]':
/build/buildd/mrpt-0.8.1/include/mrpt/math/ops_matrices.h:956: error: insn does not satisfy its constraints:
(insn 561 91 93 16 /build/buildd/mrpt-0.8.1/include/mrpt/math/CArray.h:116 (set (reg:SI 1 r1)
        (plus:SI (mult:SI (reg:SI 3 r3 [178])
                (const_int 4 [0x4]))
            (reg/f:SI 13 sp))) 690 {*thumb2_arith_shiftsi} (nil))
/build/buildd/mrpt-0.8.1/include/mrpt/math/ops_matrices.h:956: internal compiler error: in reload_cse_simplify_operands, at postreload.c:397
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[3]: *** [apps/mrpt-performance/CMakeFiles/mrpt-performance.dir/perf-main.cpp.o] Error 1
make[3]: Leaving directory `/build/buildd/mrpt-0.8.1'

Matthias Klose (doko)
tags: added: armel armv7 toolchain
Revision history for this message
Matthias Klose (doko) wrote :

works with g++-4.4 -O1, -O3, -Os

fails with g++-4.5 -O2, works with -Os -O1

g++ -g -O2 -Wall -pedantic -fno-pic -D_FORTIFY_SOURCE=0 -fno-stack-protector -c perf-main.ii

In file included from /home/doko/tmp/mrpt-0.8.1/include/mrpt/random/RandomGenerators.h:34,
                 from /home/doko/tmp/mrpt-0.8.1/include/mrpt/random.h:33,
                 from /home/doko/tmp/mrpt-0.8.1/include/mrpt/bayes/CRejectionSamplingCapable.h:34,
                 from /home/doko/tmp/mrpt-0.8.1/include/mrpt/bayes.h:38,
                 from /home/doko/tmp/mrpt-0.8.1/include/mrpt/core.h:47,
                 from /home/doko/tmp/mrpt-0.8.1/apps/mrpt-performance/perf-main.cpp:35:
/home/doko/tmp/mrpt-0.8.1/include/mrpt/math/ops_matrices.h: In function 'typename MATRIX::mrpt_autotype::value_type mrpt::math::detail::detMatrix(const MATRIX&) [with MATRIX = mrpt::math::CMatrixFixedNumeric<float, 40u, 40u>]':
/home/doko/tmp/mrpt-0.8.1/include/mrpt/math/ops_matrices.h:956: error: insn does not satisfy its constraints:
(insn 561 91 93 16 /home/doko/tmp/mrpt-0.8.1/include/mrpt/math/CArray.h:116 (set (reg:SI 1 r1)
        (plus:SI (mult:SI (reg:SI 3 r3 [178])
                (const_int 4 [0x4]))
            (reg/f:SI 13 sp))) 690 {*thumb2_arith_shiftsi} (nil))
/home/doko/tmp/mrpt-0.8.1/include/mrpt/math/ops_matrices.h:956: internal compiler error: in reload_cse_simplify_operands, at postreload.c:397
Please submit a full bug report,
with preprocessed source if appropriate.

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in gcc-4.5 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in mrpt (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-10.10
status: New → Triaged
Revision history for this message
Matthias Klose (doko) wrote :

sorry, g++-4.5 -O1 ices too.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mrpt - 1:0.8.1-1ubuntu2

---------------
mrpt (1:0.8.1-1ubuntu2) maverick; urgency=low

  * On armel build using -Os instead of -O2 to work around a g++ ICE.
    LP: #635409.
  * Always pass CFLAGS, CXXFLAGS, LDFLAGS to the build.
 -- Matthias Klose <email address hidden> Sun, 19 Sep 2010 13:23:12 +0200

Changed in mrpt (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Michael Hope (michaelh1) wrote :

Confirmed in plain gcc-linaro-4.5-2010.09-1

Revision history for this message
Yao Qi (yao-codesourcery) wrote :

This bug was reported upstreams, and has been fixed in gcc 4.6.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44787

This bug might be introduced to linaro gcc 4.5 when we backport patches from gcc 4.6. Backport patch to in my local linaro 4.5 tree, and see ICE goes away.

$ ./install/bin/arm-none-linux-gnueabi-g++ -g -O2 -Wall -pedantic -fno-pic -D_FORTIFY_SOURCE=0 -fno-stack-protector -c ../perf-main.ii

Changed in gcc-4.5 (Ubuntu):
assignee: nobody → Yao Qi (yao-codesourcery)
status: Triaged → Fix Committed
Changed in gcc-4.5 (Ubuntu):
status: Fix Committed → Confirmed
assignee: Yao Qi (yao-codesourcery) → nobody
Changed in gcc-linaro:
status: New → Fix Committed
assignee: nobody → Yao Qi (yao-codesourcery)
Michael Hope (michaelh1)
tags: added: ice
Revision history for this message
Yao Qi (yao-codesourcery) wrote :

Committed to linaro gcc 4.4 branch too.

Michael Hope (michaelh1)
Changed in gcc-linaro:
milestone: none → 4.4-2010.10
Michael Hope (michaelh1)
Changed in gcc-linaro:
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

Linaro gcc releases including this fix incorporated into the natty packages; marking as resolved.

Changed in gcc-4.5 (Ubuntu):
status: Confirmed → Fix Released
Changed in gcc-4.4 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.