Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. why i am getting error "error: impossible constraint in 'asm'" when use make command to build program of qt ?
Forum Updated to NodeBB v4.3 + New Features

why i am getting error "error: impossible constraint in 'asm'" when use make command to build program of qt ?

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 3 Posters 1.5k Views 1 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qt embedded developer
      wrote on last edited by
      #6

      I have seen that there is i have execute command and then after some parameter i have configured. so that this problem get created.

      1 Reply Last reply
      0
      • Q Qt embedded developer

        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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #2

        @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?

        Q 1 Reply Last reply
        0
        • JonBJ JonB

          @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?

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #3

          @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.

          JonBJ 1 Reply Last reply
          0
          • Q Qt embedded developer

            @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.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by JonB
            #4

            @Qt-embedded-developer
            OK :) Well the line in question is #139, at column #29, in qatomic_i386.h. There is perhaps some asm directive there. It might be old code that a newer compiler does not like, I don't know.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              Hi,

              The first thing to find is why you are hitting a i386 specific file while using an arm compiler.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • Q Offline
                Q Offline
                Qt embedded developer
                wrote on last edited by
                #6

                I have seen that there is i have execute command and then after some parameter i have configured. so that this problem get created.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  Sorry but it's a bit unclear, can you give more details ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Q 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Sorry but it's a bit unclear, can you give more details ?

                    Q Offline
                    Q Offline
                    Qt embedded developer
                    wrote on last edited by
                    #8

                    @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....

                    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