July 8, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

Before to open a case to Nokia… Thumb error.

 

Hi,

I have a problem with the final make of the Qt library for embedded platforms actually unsolved and without documentation. I hope that someone can give me and advice.
i have already posted this in the thread Qt for embedded platforms on LPC3250 – Thumb mode error on make for embedded platforms on LPC3250 – Thumb mode error on make
The following lines reports the description of the problem. If someone has ideas be welcome!

Many thanks. Enrico

————————— Thumb error: problem description

Hi to all,

After advices and good support from the community as in the following links history,

Installing Qt framework on embedded Linux [developer.qt.nokia.com]
and
Qt on embedded platforms and “QT for embedded linux” [developer.qt.nokia.com]

Thanks to the precious advices of ZapB I setup correctly the working environment with the gnu-gcc toolchain working fine. To be sure, due to some minor changes like the compiler folder and come compiler names that does not match exactly with the original …/mkspecs/qws/linux-arm-gnueabi-g++ was recreated defining a customized copy with the name ubuntu-linux-arm-gnueabi-g++

The hardware platform is an arm cpu that has already the linux on board working without problems. The toolchain used for the linux kernel and file system build was configured by myself using the Ltib toolchain and the cpu is LPC3250 from NXP. The hardware manufacturers told me that it works in little-endian mode.

At this point I have launched the ./configure as follows:

  1. ./configure -prefix /home/enrico/qt-ea3250 -prefix-install -embedded armv7 -xplatform qws/linux-ubuntu-arm-gnueabi-g++ -qt-gfx-linuxfb -qt-gfx-vnc -no-largefile -no-accessibility -no-qt3support -no-sse2 -qt-libpng -qt-libjpeg -no-cups -no-libtiff -qt-zlib

The compilation goes ahead without any error and all seems working fine. Then, I launch make
Make starts linking all the objects and after some minute I obtain the following dramatic message:

  1. {standard input}: Assembler messages:
  2. {standard input}:2467: Error: selected processor does not support Thumb mode `swp r6,r4,[r3]'
  3. make[1]: *** [.obj/release-shared-emb-arm/qobject.o] Error 1
  4. make[1]: Leaving directory `/home/enrico/qt-everywhere-opensource-src-4.7.3/src/corelib'

The strangeness is that the Thumb mode as I know is a normal feature of Arm processors not a special characteristic of this CPU.

At this point the make process stop and I have not any idea of what should be done.

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

7 replies

July 9, 2011

ZapB ZapB
Ant Farmer
1427 posts

Looks like a known problem. See these links:

http://lists.meego.com/pipermail/meego-dev/2011-February/481660.html
http://bugreports.qt.nokia.com/browse/QTBUG-15911
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/490371

The last link may have a patch to try.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

July 9, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

ZapB You are great!!!

(now I read the link :) )

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

July 9, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

I checked the links above and regardles the last (where the solution seems not to simple to manage) I read that it is a pbolem of Qt: Known issue. Thumb builds on Linux have never been supported.

Do you think that recompliling the libraries on windows 7 or mac (doubt on Mac because it is linux too) maybe a workaround to this problem or the problem is when Qt compiles on every host Versus a linux build for armV7 ?

As I have a complete scenario I go ahead to solve this problem.

Thank you

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

July 9, 2011

ZapB ZapB
Ant Farmer
1427 posts

I would start off by trying to build the latest Qt 4.8 from gitorious and see if you can apply any of the mentioned patches to get it to work. That should get you close if not quite all of the way there. Good luck.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

July 9, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

Why 4.8 ? I hava not yet tested this version, some advice to choice linux or windows ? I am using in any case an isolated virtual machine to be sure that the environment is correctly set and dedicated.

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

July 9, 2011

ZapB ZapB
Ant Farmer
1427 posts

I say 4.8 because some of the issues (the configure checks to differentiate between arm5/6/7) appear to be fixed there already.

As for Windows vs Linux. Try whatever you have setup at the moment I guess.

 Signature 

Nokia Certified Qt Specialist
Interested in hearing about Qt related work

July 9, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

Ok.

Thank you, hope to post good news asap :)

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

 
  ‹‹ Linux input method with Qt.      Maemo N900 hangs after component update ››

You must log in to post a reply. Not a member yet? Register here!