why i am getting error "error: impossible constraint in 'asm'" when use make command to build program of qt ?
-
when I am compiling qt code on device WECON PI HMI. I am getting errors.
how to resolve this error?
resonent@resonent-To-be-filled-by-O-E-M:~/hmitest$ make clean
rm -f moc_mainwindow.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o moc_mainwindow.o
rm -f *~ core *.core
resonent@resonent-To-be-filled-by-O-E-M:~/hmitest$ /mnt/arm-qt/qt-everywhere-opensource-src-4.8.4/bin/qmake -spec /mnt/arm-qt/qt-everywhere-opensource-src-4.8.4/mkspecs/qws/linux-arm-g++ hmitest.pro
resonent@resonent-To-be-filled-by-O-E-M:~/hmitest$ make
/usr/local/Trolltech/Qt-4.8.4/bin/uic mainwindow.ui -o ui_mainwindow.h
/mnt/am335xKit/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -lrt -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/mnt/arm-qt/qt-everywhere-opensource-src-4.8.4/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/Trolltech/Qt-4.8.4/include/QtCore -I/usr/local/Trolltech/Qt-4.8.4/include/QtNetwork -I/usr/local/Trolltech/Qt-4.8.4/include/QtGui -I/usr/local/Trolltech/Qt-4.8.4/include -I. -I. -o main.o main.cpp
/mnt/am335xKit/linux-devkit/bin/arm-arago-linux-gnueabi-g++ -lrt -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/mnt/arm-qt/qt-everywhere-opensource-src-4.8.4/mkspecs/qws/linux-arm-g++ -I. -I/usr/local/Trolltech/Qt-4.8.4/include/QtCore -I/usr/local/Trolltech/Qt-4.8.4/include/QtNetwork -I/usr/local/Trolltech/Qt-4.8.4/include/QtGui -I/usr/local/Trolltech/Qt-4.8.4/include -I. -I. -o mainwindow.o mainwindow.cpp
In file included from /usr/local/Trolltech/Qt-4.8.4/include/QtCore/qobject.h:48:0,
from /usr/local/Trolltech/Qt-4.8.4/include/QtGui/qwidget.h:46,
from /usr/local/Trolltech/Qt-4.8.4/include/QtGui/qmainwindow.h:45,
from /usr/local/Trolltech/Qt-4.8.4/include/QtGui/QMainWindow:1,
from mainwindow.h:4,
from mainwindow.cpp:1:
/usr/local/Trolltech/Qt-4.8.4/include/QtCore/qatomic_i386.h: In destructor 'QString::~QString()':
/usr/local/Trolltech/Qt-4.8.4/include/QtCore/qatomic_i386.h:132:29: error: impossible constraint in 'asm'
Makefile:219: recipe for target 'mainwindow.o' failed
make: *** [mainwindow.o] Error 1 -
I have seen that there is i have execute command and then after some parameter i have configured. so that this problem get created.
-
@Qt-embedded-developer
Goodness knows, but/usr/local/Trolltech/Qt-4.8.4/include/QtCore/qatomic_i386.h:132:29: error: impossible constraint in 'asm'
Wouldn't you want to look at/show the line causing the error if you want help from people?
-
@JonB said in why i am getting error "error: impossible constraint in 'asm'" when use make command to build program of qt ?:
Wouldn't you want to look at/show the line causing the error if you want help from people?
hi i got only this part of information and i passed to here that so i can get solution.
-
@Qt-embedded-developer
OK :) Well the line in question is #139, at column #29, inqatomic_i386.h
. There is perhaps someasm
directive there. It might be old code that a newer compiler does not like, I don't know. -
Hi,
The first thing to find is why you are hitting a i386 specific file while using an arm compiler.
-
I have seen that there is i have execute command and then after some parameter i have configured. so that this problem get created.
-
Sorry but it's a bit unclear, can you give more details ?
-
@SGaist i have asked this question for help my friend to proper configuration of qt on its device.
He has found that he made mistake while install qt on its device. for execute program he has to pass certain parameter
like ./configure -lpthread .....
But he just pass ./configure so he not able to execute his code.
Thank for your intuitiveness....