r242660 - Support mingw toolchain include and lib directories on Arch Linux.

Yaron Keren yaron.keren at gmail.com
Mon Jul 20 03:32:46 PDT 2015


I'll look into the problem. We really should have tests for this, any idea
how?


2015-07-20 13:30 GMT+03:00 İsmail Dönmez <ismail at donmez.ws>:

> Hi,
>
> On Mon, Jul 20, 2015 at 9:38 AM, Yaron Keren <yaron.keren at gmail.com>
> wrote:
> > Author: yrnkrn
> > Date: Mon Jul 20 01:38:39 2015
> > New Revision: 242660
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=242660&view=rev
> > Log:
> > Support mingw toolchain include and lib directories on Arch Linux.
> > Thanks to Thomas Pochtrager for testing this!
> >
> >
> > Modified:
> >     cfe/trunk/lib/Driver/MinGWToolChain.cpp
>
> This seems to regress openSUSE mingw-w64 support:
>
> λ =clang -v -target x86_64-w64-mingw32 randomworks/windows/nic.c -liphlpapi
> clang version 3.8.0 (trunk 242660)
> Target: x86_64-w64-windows-gnu
> Thread model: posix
>  "/opt/clang/bin/clang-3.8" -cc1 -triple x86_64-w64-windows-gnu
> -emit-obj -mrelax-all -disable-free -main-file-name nic.c
> -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno
> -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
> -momit-leaf-frame-pointer -v -dwarf-column-info -resource-dir
> /opt/clang/bin/../lib64/clang/3.8.0 -internal-isystem
> /opt/clang/bin/../lib64/clang/3.8.0/include -internal-isystem include
> -internal-isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include
> -internal-isystem include-fixed -internal-isystem
> /usr/x86_64-w64-mingw32/include -internal-isystem /usr/include
> -fdebug-compilation-dir /home/ismail -ferror-limit 19 -fmessage-length
> 124 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc
> -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/nic-149ad6.o -x
> c randomworks/windows/nic.c
> clang -cc1 version 3.8.0 based upon LLVM 3.8.0svn default target
> x86_64-suse-linux
> ignoring nonexistent directory "include"
> ignoring nonexistent directory "include-fixed"
> ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /opt/clang/bin/../lib64/clang/3.8.0/include
>  /usr/x86_64-w64-mingw32/sys-root/mingw/include
>  /usr/include
> End of search list.
>  "/usr/bin/x86_64-w64-mingw32-ld" -m i386pep -Bdynamic -o a.exe
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/crt2.o
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/crtbegin.o -L
> -L/usr/x86_64-w64-mingw32/lib
> -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib /tmp/nic-149ad6.o
> -liphlpapi -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
> -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc
> -lmoldname -lmingwex -lmsvcrt
> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/crtend.o
> /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_s
> /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc
> /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc_s
> /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgcc
> clang-3.8: error: linker command failed with exit code 1 (use -v to
> see invocation)
>
> λ =clang++ -v -target x86_64-w64-mingw32 -std=c++11
> Code/c++/unsorted/template_metaprogramming.cpp
> clang version 3.8.0 (trunk 242660)
> Target: x86_64-w64-windows-gnu
> Thread model: posix
>  "/opt/clang/bin/clang-3.8" -cc1 -triple x86_64-w64-windows-gnu
> -emit-obj -mrelax-all -disable-free -main-file-name
> template_metaprogramming.cpp -mrelocation-model pic -pic-level 2
> -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
> -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -v
> -dwarf-column-info -resource-dir /opt/clang/bin/../lib64/clang/3.8.0
> -internal-isystem /usr/x86_64-w64-mingw32/include/c++/
> -internal-isystem
> /usr/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/
> -internal-isystem /usr/x86_64-w64-mingw32/include/c++/backward
> -internal-isystem /usr/x86_64-w64-mingw32/include/c++//
> -internal-isystem
> /usr/x86_64-w64-mingw32/include/c++//x86_64-w64-mingw32/
> -internal-isystem /usr/x86_64-w64-mingw32/include/c++//backward
> -internal-isystem /usr/include/c++// -internal-isystem
> /usr/include/c++//x86_64-w64-mingw32/ -internal-isystem
> /usr/include/c++//backward -internal-isystem include/c++/
> -internal-isystem include/c++/x86_64-w64-mingw32/ -internal-isystem
> include/c++/backward -internal-isystem
> /opt/clang/bin/../lib64/clang/3.8.0/include -internal-isystem include
> -internal-isystem /usr/x86_64-w64-mingw32/sys-root/mingw/include
> -internal-isystem include-fixed -internal-isystem
> /usr/x86_64-w64-mingw32/include -internal-isystem /usr/include
> -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/ismail
> -ferror-limit 19 -fmessage-length 124 -mstackrealign
> -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
> -fdiagnostics-show-option -fcolor-diagnostics -o
> /tmp/template_metaprogramming-55c651.o -x c++
> Code/c++/unsorted/template_metaprogramming.cpp
> clang -cc1 version 3.8.0 based upon LLVM 3.8.0svn default target
> x86_64-suse-linux
> ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include/c++/"
> ignoring nonexistent directory
> "/usr/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/"
> ignoring nonexistent directory
> "/usr/x86_64-w64-mingw32/include/c++/backward"
> ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include/c++//"
> ignoring nonexistent directory
> "/usr/x86_64-w64-mingw32/include/c++//x86_64-w64-mingw32/"
> ignoring nonexistent directory
> "/usr/x86_64-w64-mingw32/include/c++//backward"
> ignoring nonexistent directory "/usr/include/c++//x86_64-w64-mingw32/"
> ignoring nonexistent directory "/usr/include/c++//backward"
> ignoring nonexistent directory "include/c++/"
> ignoring nonexistent directory "include/c++/x86_64-w64-mingw32/"
> ignoring nonexistent directory "include/c++/backward"
> ignoring nonexistent directory "include"
> ignoring nonexistent directory "include-fixed"
> ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/include/c++/
>  /opt/clang/bin/../lib64/clang/3.8.0/include
>  /usr/x86_64-w64-mingw32/sys-root/mingw/include
>  /usr/include
> End of search list.
> Code/c++/unsorted/template_metaprogramming.cpp:1:10: fatal error:
> 'algorithm' file not found
> #include <algorithm>
>          ^
> 1 error generated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150720/7bc9ffc4/attachment.html>


More information about the cfe-commits mailing list