Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT4.7: Alignment trap: hello240x320 (858) PC=0x40ea8ef0 Instr=0xe5873000 Address=0x0003d6a9 FSR 0x813 Bus error
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 6.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lanmanck
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lanmanck
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lanmanck
        wrote on last edited by
        #3

        hello?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lanmanck
          wrote on last edited by
          #4

          hello?...

          1 Reply Last reply
          0
          • I Offline
            I Offline
            IrQX
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Peter Jerald
              wrote on last edited by
              #6

              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.

              Regards,

              A. Peter Jerald

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lanmanck
                wrote on last edited by
                #7

                thanks.
                It seems we should upgrade the system.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved