Open aapo opened 9 months ago
@aapo - sorry for the delayed reply, I don't see anything Maemo specific in the error logs, is it possible the qt versions are different between the desktop linux and your n900/maemo comparison?
Maybe not directly related to Maemo, but something about 32bit arm.
This fails
g++-10 -c -fPIC -Wcast-align -Werror \
-I/usr/include/arm-linux-gnueabihf/qt5 \
-I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets \
-o object.o a.cc
This works
g++-10 -c -fPIC \
-I/usr/include/arm-linux-gnueabihf/qt5 \
-I/usr/include/arm-linux-gnueabihf/qt5/QtWidgets \
-o object.o a.cc
-- I checked on Maemo-CSSU (with qt5-base-dev from http://repos.fuhlbrueck.net/qt5-maemo5) this works:
g++ -c -fPIC \
-I/opt/qt5/include \
-I/opt/qt5/include/QtWidgets \
-o object.o a.cc
And this fails:
g++ -c -fPIC -Wcast-align -Werror \
-I/opt/qt5/include \
-I/opt/qt5/include/QtWidgets \
-o object.o a.cc
This seams to simply be a minor bug in qt, not maemo related, this bug should be directed upstream, not here. The reason you get a warning on arm but not x86 is that x86 has no mandatory alignment in pretty much any of its instructions, while arm32 has quite a few
Causes
On desktop Linux it works: