It should just work... on non-Windows the patch makes the mingw toolchain
in clang use /usr/lib64/gcc/$ARCH/$VER and /usr as the base paths instead
of searching. This makes more sense on Linux then the Windows logic of
looking for gcc.exe.

You can still override this with --sysroot but should not be required.




2015-07-12 21:12 GMT+03:00 İsmail Dönmez <[email protected]>:

> Building it now, how shall I test it? With gcc in $PATH or with --sysroot ?
>
> On Sun, Jul 12, 2015 at 9:05 PM, Yaron Keren <[email protected]>
> wrote:
> > Wow, mingw-w64 distributions has endless variations of include and
> library
> > locations.
> > On base of the current SVN (without any previous patches I sent), try the
> > attached patch.
> >
> >
> > 2015-07-12 18:33 GMT+03:00 İsmail Dönmez <[email protected]>:
> >>
> >> Hi,
> >>
> >> See the attached log.
> >>
> >> On Sun, Jul 12, 2015 at 6:15 PM, Yaron Keren <[email protected]>
> >> wrote:
> >> > On Ubuntu 14.04 it's not the same location, it's in /usr/lib/gcc and
> not
> >> > /usr/lib64/gcc
> >> >
> >> > #include <...> search starts here:
> >> >  /usr/include/c++/4.8
> >> >  /usr/include/c++/4.8/x86_64-w64-mingw32
> >> >  /usr/include/c++/4.8/backward
> >> >  /usr/lib/gcc/x86_64-w64-mingw32/4.8/include
> >> >  /usr/lib/gcc/x86_64-w64-mingw32/4.8/include-fixed
> >> >
> >> >
> /usr/lib/gcc/x86_64-w64-mingw32/4.8/../../../../x86_64-w64-mingw32/include
> >> > End of search list.
> >> > GNU C++ (GCC) version 4.8.2 (x86_64-w64-mingw32)
> >> >
> >> > Can you send the full output of
> >> >
> >> > /usr/bin/x86_64-w64-mingw32-g++ -c -v a.cpp
> >> >
> >> > where a.cpp is some source file?
> >> >
> >> >
> >> >
> >> > 2015-07-12 16:47 GMT+03:00 İsmail Dönmez <[email protected]>:
> >> >>
> >> >> [snip]
> >> >>
> >> >> > P.S: The problem on Cygwin side seems to be that my toolchain is
> >> >> > missing libgcc_s.a and this seems to be working fine since I build
> >> >> > the
> >> >> > whole toolchain as static. Do you think its reasonable to
> >> >> > conditionally add -lgcc_s depending on it exists or not?
> >> >>
> >> >> Honestly though this is non-standard and not worth adding code for.
> >> >> The situation on Linux is still a regression though :/
> >> >>
> >> >> Thanks a lot!
> >> >
> >> >
> >
> >
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to