QT4.7: Alignment trap: hello240x320 (858) PC=0x40ea8ef0 Instr=0xe5873000 Address=0x0003d6a9 FSR 0x813 Bus error



  • hi,all:
    I am running qt4.7 on ARM926ejs. gcc is 3.4.3.
    Use same command to configure qt4.5.2 and qt4.7.
    Use same program sources.
    Use same steps to complie program.
    But,qt4.5.2 run well, qt4.7 has error:
    Alignment trap: hello240x320 (858) PC=0x40ea8ef0 Instr=0xe5873000 Address=0x0003d6a9 FSR 0x813 Bus error
    .
    when i complie qt4.7, I fix an error:
    {standard input}: Assembler messages: {standard input}:713: Error: register or shift expression expected – `orr r3,r2,lsl#16'
    fix it like this:
    /src/3rdparty/freetype/include/freetype/config/ftconfig.h change line330:
    "orr %0, %2, lsl #16\n\t" /* %0 |= %2 << 16 / to:
    "orr %0, 0%, %2, lsl #16\n\t" /
    %0 |= %2 << 16 */

    anyone can give me a tip?thanks!



  • echo 2 > /proc/cpu/alignment
    seems that this can fix the error. but will it be damage to other program?



  • hello?



  • hello?...



  • Try to use gcc from 4.* branch.
    And configure Qt for compiling to yours cpu.



  • Hi,

    I too face this aligment trap problem. I Usually Use to give this following command

    "echo 2 > /proc/cpu/alignment"

    After that run the same code. you can able to execute it.

    For more detail about this command search in net.

    Thanks and Regards,

    A. Peter Jerald.



  • thanks.
    It seems we should upgrade the system.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.