Ray Donnelly <[email protected]> writes:
> MSYS2 programs link to the msys dll, yes, and that performs the path
> conversions at the right times yes, so when a program asks to spawn
> another program, msys2 intercepts and translates the MSYS2 paths it
> sees (sometimes it guesses this wrong) to Windows paths, iff the
> program to run is *not* another MSYS2 program (which doesn't need or
> want native Windows paths). This is one of the key things that MSYS2
> does and Cygwin does not do, it's a part of MSYS2's sympathy for the
> Windows OS.
Let me try to interpret the currently failing configure test in
light of this.
Simplified, the command line that is failing is:
g++ -v -c -I/Msys2/msys64/include conftest.cpp
Here I'm trying to tell g++ where pcre.h is; it's not in one of the
standard include dirs that g++ uses (a separate issue in itself ;).
The relevant part of the g++ output is (comments interspersed):
COLLECT_GCC_OPTIONS='-v' '-c' '-I' 'C:/Msys2/msys64/Msys2/msys64/include'
'-shared-libgcc' '-mtune=generic' '-march=x86-64'
the -I path "/Msys2/msys64/include" has been changed to
"C:/Msys2/msys64/Msys2/msys64/include" - NOT what I wanted.
ignoring nonexistent directory "C:/Msys2/msys64/Msys2/msys64/include"
This is due to the erroneous path change above
There are two possible fixes here;
1) include c:/ in all absolute Windows paths (ie
"c:/Msys2/msys64/include"), so msys2 knows it is an absolute path,
and won't change it
2) use msys2 paths when the path is inside an msys2 mounted directory
tree (ie "-I/usr/include"), so the change msys2 makes to the path is
correct.
The erroneous change above was done by bash, before g++ was spawned. But when
g++
spawns cpp.exe, the msys2 dll does a similar path conversion. So all
paths at that point had better include c:/, or not be in a msys2 mounted
directory tree.
--
-- Stephe
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users