Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. compiling in ARMv7h fails
Forum Updated to NodeBB v4.3 + New Features

compiling in ARMv7h fails

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 1.9k Views 2 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.
  • S Offline
    S Offline
    saber
    wrote on last edited by saber
    #1

    qt 5.11 , arch linux
    my app builds fine on 64 bit architer both x86 and arm64 .but it is failling in amrv7h .i really can't find the cause .here is the compile output.

    ==> Starting build()...
    qemu: Unsupported syscall: 397
    Info: creating stash file /home/manjaro/corebox/src/build/.qmake.stash
    cd library/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/library.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
    qemu: Unsupported syscall: 397
    make[1]: Entering directory '/home/manjaro/corebox/src/build/library'
    cd libcterminal/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcterminal/libcterminal.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
    cd libcsys/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcsys/libcsys.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
    cd libcarchiver/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcarchiver/libcarchiver.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
    cd libcpdf/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcpdf/libcpdf.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
    qemu: Unsupported syscall: 397
    qemu: Unsupported syscall: 397
    qemu: Unsupported syscall: 397
    qemu: Unsupported syscall: 397
    Project ERROR: Unknown module(s) in QT: core gui widgets
    Project ERROR: Unknown module(s) in QT: core
    make[1]: *** [Makefile:98: sub-libcterminal-make_first] Error 3
    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [Makefile:73: sub-libcarchiver-make_first] Error 3
    Project ERROR: Unknown module(s) in QT: core gui widgets webengine webenginecore webenginewidgets webchannel
    make[1]: *** [Makefile:48: sub-libcpdf-make_first] Error 3
    Project ERROR: Unknown module(s) in QT: core gui widgets network charts concurrent
    make[1]: *** [Makefile:123: sub-libcsys-make_first] Error 3
    make[1]: Leaving directory '/home/manjaro/corebox/src/build/library'
    make: *** [Makefile:71: sub-library-make_first] Error 2
    ==> ERROR: A failure occurred in build().
        Aborting...
    

    NT : I am creating an armv7h chroot and using qemu to chroot into it and compile.
    what is the cause?

    Pablo J. RoginaP jsulmJ 2 Replies Last reply
    0
    • S saber

      qt 5.11 , arch linux
      my app builds fine on 64 bit architer both x86 and arm64 .but it is failling in amrv7h .i really can't find the cause .here is the compile output.

      ==> Starting build()...
      qemu: Unsupported syscall: 397
      Info: creating stash file /home/manjaro/corebox/src/build/.qmake.stash
      cd library/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/library.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
      qemu: Unsupported syscall: 397
      make[1]: Entering directory '/home/manjaro/corebox/src/build/library'
      cd libcterminal/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcterminal/libcterminal.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
      cd libcsys/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcsys/libcsys.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
      cd libcarchiver/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcarchiver/libcarchiver.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
      cd libcpdf/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcpdf/libcpdf.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
      qemu: Unsupported syscall: 397
      qemu: Unsupported syscall: 397
      qemu: Unsupported syscall: 397
      qemu: Unsupported syscall: 397
      Project ERROR: Unknown module(s) in QT: core gui widgets
      Project ERROR: Unknown module(s) in QT: core
      make[1]: *** [Makefile:98: sub-libcterminal-make_first] Error 3
      make[1]: *** Waiting for unfinished jobs....
      make[1]: *** [Makefile:73: sub-libcarchiver-make_first] Error 3
      Project ERROR: Unknown module(s) in QT: core gui widgets webengine webenginecore webenginewidgets webchannel
      make[1]: *** [Makefile:48: sub-libcpdf-make_first] Error 3
      Project ERROR: Unknown module(s) in QT: core gui widgets network charts concurrent
      make[1]: *** [Makefile:123: sub-libcsys-make_first] Error 3
      make[1]: Leaving directory '/home/manjaro/corebox/src/build/library'
      make: *** [Makefile:71: sub-library-make_first] Error 2
      ==> ERROR: A failure occurred in build().
          Aborting...
      

      NT : I am creating an armv7h chroot and using qemu to chroot into it and compile.
      what is the cause?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @saber said in compiling in ARMv7h fails:

      my app builds fine on 64 bit architer both x86 and arm64 .but it is failling in amrv7h

      Could you please describe your environment?
      Are you cross-compiling your application?
      From your compile ouput I can see something that could be a clue:

      qemu: Unsupported syscall: 397
      

      What are you using Qemu for?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • S Offline
        S Offline
        saber
        wrote on last edited by saber
        #3

        i am Linux 64bit .i am not cross-compiling.
        it is build by a distro maintainer.he use the qemu for building .it will take forever to build it in actual architecter.
        he is facing this issue.

        and i am not an expert on qemu or arm.
        he is facing this issue when he build my app on armv7h.on arm64 it builds fine.
        also i am not finding any like qemu: Unsupported syscall: 397.

        1 Reply Last reply
        0
        • S saber

          qt 5.11 , arch linux
          my app builds fine on 64 bit architer both x86 and arm64 .but it is failling in amrv7h .i really can't find the cause .here is the compile output.

          ==> Starting build()...
          qemu: Unsupported syscall: 397
          Info: creating stash file /home/manjaro/corebox/src/build/.qmake.stash
          cd library/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/library.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
          qemu: Unsupported syscall: 397
          make[1]: Entering directory '/home/manjaro/corebox/src/build/library'
          cd libcterminal/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcterminal/libcterminal.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
          cd libcsys/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcsys/libcsys.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
          cd libcarchiver/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcarchiver/libcarchiver.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
          cd libcpdf/ && ( test -e Makefile || /usr/sbin/qmake-qt5 -o Makefile /home/manjaro/corebox/src/corebox-master/library/libcpdf/libcpdf.pro PREFIX=/usr ) && /usr/sbin/make -f Makefile 
          qemu: Unsupported syscall: 397
          qemu: Unsupported syscall: 397
          qemu: Unsupported syscall: 397
          qemu: Unsupported syscall: 397
          Project ERROR: Unknown module(s) in QT: core gui widgets
          Project ERROR: Unknown module(s) in QT: core
          make[1]: *** [Makefile:98: sub-libcterminal-make_first] Error 3
          make[1]: *** Waiting for unfinished jobs....
          make[1]: *** [Makefile:73: sub-libcarchiver-make_first] Error 3
          Project ERROR: Unknown module(s) in QT: core gui widgets webengine webenginecore webenginewidgets webchannel
          make[1]: *** [Makefile:48: sub-libcpdf-make_first] Error 3
          Project ERROR: Unknown module(s) in QT: core gui widgets network charts concurrent
          make[1]: *** [Makefile:123: sub-libcsys-make_first] Error 3
          make[1]: Leaving directory '/home/manjaro/corebox/src/build/library'
          make: *** [Makefile:71: sub-library-make_first] Error 2
          ==> ERROR: A failure occurred in build().
              Aborting...
          

          NT : I am creating an armv7h chroot and using qemu to chroot into it and compile.
          what is the cause?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @saber said in compiling in ARMv7h fails:

          Project ERROR: Unknown module(s) in QT: core gui widgets webengine webenginecore webenginewidgets webchannel

          The cross compiled Qt for armv7h is missing the modules mentioned in this error message...
          "make[1]: Leaving directory '/home/manjaro/corebox/src/build/library'" - also, you should NOT build from the source code directory! Use out of source builds. Else you will end up with build artefacts from previous builds (for other platforms) which will cause troubles.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          2
          • jsulmJ jsulm

            @saber said in compiling in ARMv7h fails:

            Project ERROR: Unknown module(s) in QT: core gui widgets webengine webenginecore webenginewidgets webchannel

            The cross compiled Qt for armv7h is missing the modules mentioned in this error message...
            "make[1]: Leaving directory '/home/manjaro/corebox/src/build/library'" - also, you should NOT build from the source code directory! Use out of source builds. Else you will end up with build artefacts from previous builds (for other platforms) which will cause troubles.

            S Offline
            S Offline
            saber
            wrote on last edited by
            #5

            @jsulm
            we are trying to build it in ARCH .and the qt package's are from arch-arm.
            if the problem in packages then we have nothing to do .
            nd as you told we are not building it in source directory . we are making a separate folder , place build files in the build folder and keep the source files separated.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              saber
              wrote on last edited by
              #6

              it was solved by adding this lines.

              	#ifdef __LP64__
              		off_t offset;
              	#else
              		la_int64_t offset;
              	#endif
              
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                Where exactly did you add these lines ?

                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
                0

                • Login

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