[BUG??] internal compiler error

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey all,

Trying to compile Qtopia with the configure line from avr32linux I get the following error:

Quote:
../../../3rdparty/sqlite/pager.c: In function ‘pager_playback_one_page’:
../../../3rdparty/sqlite/pager.c:1061: error: unrecognizable insn:
(insn 287 286 97 7 ../../../3rdparty/sqlite/pager.c:1002 (set (reg:SI 7 r8 [orig:71 cksum ] [71])
(mem:SI (plus:SI (reg/f:SI 2 sp)
(const_int 32768 [0x8000])) [0 S4 A32])) -1 (nil)
(nil))
../../../3rdparty/sqlite/pager.c:1061: internal compiler error: in extract_insn, at recog.c:2020
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.

I originally built with the straight BSP2.0 toolchain and got the compiler error for which hce did the patch ages ago (in cp_expr_size). Building myself a nice shiny new c++ compiler with the fix for this error allowed the build to proceed a fair bit further before hitting the bug above.

Quote:
$ avr32-linux-g++ --version
avr32-linux-g++ (GCC) 4.0.2-atmel.0.99.2

Cheers,
-S.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is new for me I am afraid, but I would like for you to jump on the 4.1.2-train as soon as possible. I have compiled Qtopia with this compiler and linked with binutils 2.17.

No idea when the 4.1.2 compiler will be ready.

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could you check if you are compiling with -O2?

Have a look in "mkspecs/qws/linux-avr32-g++/qmake.conf" and check the QMAKE_CFLAGS_RELEASE and QMAKE_CFLAGS_DEBUG.

QMAKE_CFLAGS_RELEASE	= -O2
QMAKE_CFLAGS_DEBUG	= -g -O2

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yup, -O2.

Quote:
QMAKE_CFLAGS_RELEASE = -O2
QMAKE_CFLAGS_DEBUG = -g -O2

Very keen to jump on the 4.1.2 wagon as you suggest, just awaiting the Ubuntu packages.

-S.