Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-F flag not being included in flycheck compile line for c++/clang (OSX) #25

Closed
sbroberg opened this issue Nov 25, 2015 · 0 comments
Closed

Comments

@sbroberg
Copy link

The actual compilation line for a file (I can provide a self-contained cmake project for this issue, if necessary):

/usr/bin/clang++ \
  -DDBUTIL_EXPORTS \
  -DQT_CORE_LIB \
  -DQT_NO_DEBUG \
  -isysroot \
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk \
  -mmacosx-version-min=10.7 \
  -fPIC \
  -I/Users/stebro/test/sqlite/include \
  -I/usr/local/include \
  -F/Volumes/ProductToolChain/qt-5.5/lib \
  -I/Volumes/ProductToolChain/qt-5.5/lib/QtCore.framework/Headers \
  -I/Volumes/ProductToolChain/qt-5.5/mkspecs/macx-clang-32 \
  -fPIC \
  -E \
  -c \
  /Users/stebro/test/sqlite/DBQuery.cpp

The line being used by flycheck, after cmake-ide initalization:

clang \
  -fsyntax-only \
  -fno-color-diagnostics \
  -fno-caret-diagnostics \
  -fno-diagnostics-show-option \
  -iquote \
  /Users/stebro/test/sqlite/ \
  -std\=c\+\+1y \
  -Wall \
  -Wextra \
  -DDBUTIL_EXPORTS \
  -DQT_CORE_LIB \
  -DQT_NO_DEBUG \
  -I/Volumes/ProductToolChain/qt-5.5/mkspecs/macx-clang-32 \
  -I/Volumes/ProductToolChain/qt-5.5/lib/QtCore.framework/Headers \
  -I/Users/stebro/test/sqlite/include \
  -I/usr/local/include \
  -x c\+\+ \
  - < /Users/stebro/test/sqlite/DBQuery.cpp

The lack of the -F option is producing the error:

In file included from <stdin>:8:
In file included from /Users/stebro/test/sqlite/DBQuery.h:11:
In file included from /Volumes/ProductToolChain/qt-5.5/lib/QtCore.framework/Headers/QVector:1:
/Volumes/ProductToolChain/qt-5.5/lib/QtCore.framework/Headers/qvector.h:37:10: fatal error: 'QtCore/qalgorithms.h' file not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant