Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
squidgit
PostPosted: Apr 10, 2007 - 01:42 PM
Raving lunatic


Joined: Sep 14, 2003
Posts: 4228
Location: Queanbeyan, Australia

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 <URL:http://www.atmel.com/avr32/> 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.
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Apr 12, 2007 - 09:22 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4583
Location: Oslo, Norway

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.
 
 View user's profile Send private message  
Reply with quote Back to top
hce
PostPosted: Apr 12, 2007 - 09:30 AM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4583
Location: Oslo, Norway

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.

Code:
QMAKE_CFLAGS_RELEASE   = -O2
QMAKE_CFLAGS_DEBUG   = -g -O2
 
 View user's profile Send private message  
Reply with quote Back to top
squidgit
PostPosted: Apr 12, 2007 - 10:48 AM
Raving lunatic


Joined: Sep 14, 2003
Posts: 4228
Location: Queanbeyan, Australia

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits