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

clang default include directories cygwin #4987

Open
1 task done
donaldysmith opened this issue Nov 3, 2024 · 0 comments
Open
1 task done

clang default include directories cygwin #4987

donaldysmith opened this issue Nov 3, 2024 · 0 comments
Labels

Comments

@donaldysmith
Copy link

Description / Steps to reproduce the issue

Install the newest msys2, then
pacman -Suy
pacman -S clang

$ clang++ -v -c -xc++ /dev/null

clang version 11.0.0 (https://github.com/msys2/MSYS2-packages 9ef552a)

Target: x86_64-pc-windows-msys

Thread model: posix

InstalledDir: /usr/bin

(in-process)

"/usr/bin/clang++" -cc1 -triple x86_64-pc-windows-msys -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name null -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -debugger-tuning=gdb -v -resource-dir /usr/lib/clang/11.0.0 -fdeprecated-macro -fdebug-compilation-dir /home/Q11161 -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics -faddrsig -o null.o -x c++ /dev/null

clang -cc1 version 11.0.0 based upon LLVM 11.0.0 default target x86_64-pc-msys

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include/c++"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include/c++/i686-pc-cygwin"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include/c++/backward"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/i686-pc-cygwin"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.5.3/include/c++/backward"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/i686-pc-cygwin"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/backward"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.2/include/c++"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.2/include/c++/i686-pc-cygwin"

ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.3.2/include/c++/backward"

ignoring nonexistent directory "/usr/local/include"

#include "..." search starts here:

#include <...> search starts here:

/usr/lib/clang/11.0.0/include

/usr/include/w32api

/usr/include

End of search list.

Expected behavior

clang++ should compile 'hello, world' c++ code.

Actual behavior

It failed because the included directories were set to /usr/lib/gcc/i686-pc-cygwin/4.7.3/ instead of /usr/lib/gcc/x86_64-pc-msys/13.3.0/

Verification

Windows Version

MSYS_NT-10.0-19045 ARCC307637 3.5.4-0bc1222b.x86_64 2024-09-04 18:28 UTC x86_64 Msys

Are you willing to submit a PR?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant