Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26851

Qt Creator can not find omp.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 9.0.0
    • Qt Creator 6.0.1
    • C/C++/Obj-C++ Support
    • None
    • cmake 3.22.1
      g++ 9.3.0
    • Linux/X11
    • f6690b6245 (qtsdk/qtsdk/master)

    Description

      I have set the cmake include_directories as "/usr/lib/gcc/x86_64-linux-gnu/9/include" ,but the omp.h is still can not be found. if I copy the omp.h file to another folder(for example "/home/uer/test"), it will be found.

      " /usr/lib/gcc/x86_64-linux-gnu/9/include" should be in default include directories.

      g++ environment:

      Using built-in specs.
      COLLECT_GCC=g++
      OFFLOAD_TARGET_NAMES=nvptx-none:hsa
      OFFLOAD_TARGET_DEFAULT=1
      Target: x86_64-linux-gnu
      Configured with: ../src/configure v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c+,go,brig,d,fortran,objc,obj-c+,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
      Thread model: posix
      gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
      COLLECT_GCC_OPTIONS='-v' '-E' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
      /usr/lib/gcc/x86_64-linux-gnu/9/cc1plus -E -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE - -mtune=generic -march=x86-64 -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection
      ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/9"
      ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
      ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/include-fixed"
      ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/9/../../../../x86_64-linux-gnu/include"
      #include "..." search starts here:
      #include <...> search starts here:
      /usr/include/c++/9
      /usr/include/x86_64-linux-gnu/c++/9
      /usr/include/c++/9/backward
      /usr/lib/gcc/x86_64-linux-gnu/9/include
      /usr/local/include
      /usr/include/x86_64-linux-gnu
      /usr/include
      End of search list.

      1. 1 "<stdin>"
      2. 1 "<built-in>"
      3. 1 "<command-line>"
      4. 1 "/usr/include/stdc-predef.h" 1 3 4
      5. 1 "<command-line>" 2
      6. 1 "<stdin>"
        COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/
        LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/9/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/9/../../../:/lib/:/usr/lib/
        COLLECT_GCC_OPTIONS='-v' '-E' '-shared-libgcc' '-mtune=generic' '-march=x86-64'

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kandeler Christian Kandeler
              naruto zhuang niu
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes