Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-63455

Qt configure not expose -std Cxx configure choice on tests using linux clang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.1, 5.9.2, 5.9.3
    • Build System
    • None
    • Distro: Fedora Linux 26

      Compiler: Clang 4.0.1 final

      Qt: 5.9 branch 

       

    Description

      During configure process, using clang, test for libiinput fails as using nullptr and the compiler flags not exposing C++ 11 ( or higher ).

      On the current configure have the option -c+std c+11

      This is how the compilation of libinput happens, leading to Qt assume a wrong libinput installed breaking later the compilation:

      clang++ -c -pipe -g -w -fPIC  -I. -I/code/qt-everything/qt5/qtbase/mkspecs/linux-clang -o main.o main.cpp 
      main.cpp:7:37: error: use of undeclared identifier 'nullptr' 
         libinput_event_pointer_has_axis(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL); 
                                         ^ 
      1 error generated.                                                                                                                                                                                                                            
      make: *** [Makefile:297: main.o] Error 1
      

      As a test simply adding - std=c++11 in QMAKE_CXX_FLAGS on mkspecs/linux - clang makes test work properly and Qt compiled.

      The possible proper way is to expose the configure generated flags to compiler in the tests.

       

      Attachments

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              heliocastro Helio Chissini de Castro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: