r241432 - Teach mingw toolchain the msys2 mingw-w64 distribution C++ dirs.

İsmail Dönmez ismail at donmez.ws
Sun Jul 12 22:57:13 PDT 2015


Hi,

Please see the attached log files:

try2.log.txt: Looks like /usr/include is in include path messing everything

try3.log.txt: /usr/x86_64-w64-mingw32/sys-root/mingw/include must be
added as C include path

try4.log.txt: Even after adding
/usr/x86_64-w64-mingw32/sys-root/mingw/include as include path it
doesn't find most libraries.



On Sun, Jul 12, 2015 at 9:20 PM, Yaron Keren <yaron.keren at gmail.com> wrote:
> 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 <ismail at donmez.ws>:
>>
>> 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 <yaron.keren at gmail.com>
>> 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 <ismail at donmez.ws>:
>> >>
>> >> Hi,
>> >>
>> >> See the attached log.
>> >>
>> >> On Sun, Jul 12, 2015 at 6:15 PM, Yaron Keren <yaron.keren at gmail.com>
>> >> 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 <ismail at donmez.ws>:
>> >> >>
>> >> >> [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!
>> >> >
>> >> >
>> >
>> >
>
>
-------------- next part --------------
clang version 3.7.0 (trunk 241977)
Target: x86_64-w64-windows-gnu
Thread model: posix
 "/opt/clang/bin/clang-3.7" -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.7.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/include/c++/5.1.0/ -internal-isystem /usr/include/c++/5.1.0/x86_64-w64-mingw32/ -internal-isystem /usr/include/c++/5.1.0/backward -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/x86_64-w64-mingw32/ -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/backward -internal-isystem /opt/clang/bin/../lib64/clang/3.7.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/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 0 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/template_metaprogramming-1cac96.o -x c++ Code/c++/unsorted/template_metaprogramming.cpp
clang -cc1 version 3.7.0 based upon LLVM 3.7.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/include/c++/5.1.0/"
ignoring nonexistent directory "/usr/include/c++/5.1.0/x86_64-w64-mingw32/"
ignoring nonexistent directory "/usr/include/c++/5.1.0/backward"
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/x86_64-w64-mingw32
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/backward
 /opt/clang/bin/../lib64/clang/3.7.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include-fixed
 /usr/include
End of search list.
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:214:11: error: no member named 'lldiv_t' in the global namespace; did you mean 'ldiv_t'?
  using ::lldiv_t;
        ~~^
/usr/include/stdlib.h:109:5: note: 'ldiv_t' declared here
  } ldiv_t;
    ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:220:11: error: no member named '_Exit' in the global namespace
  using ::_Exit;
        ~~^
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:224:11: error: no member named 'llabs' in the global namespace; did you mean 'labs'?
  using ::llabs;
        ~~^
/usr/include/stdlib.h:775:17: note: 'labs' declared here
extern long int labs (long int __x) __THROW __attribute__ ((__const__)) __wur;
                ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:226:10: error: unknown type name 'lldiv_t'; did you mean 'ldiv_t'?
  inline lldiv_t
         ^
/usr/include/stdlib.h:109:5: note: 'ldiv_t' declared here
  } ldiv_t;
    ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:228:5: error: unknown type name 'lldiv_t'; did you mean 'ldiv_t'?
  { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
    ^
/usr/include/stdlib.h:109:5: note: 'ldiv_t' declared here
  } ldiv_t;
    ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:230:11: error: no member named 'lldiv' in the global namespace; did you mean 'ldiv'?
  using ::lldiv;
        ~~^
/usr/include/stdlib.h:790:15: note: 'ldiv' declared here
extern ldiv_t ldiv (long int __numer, long int __denom)
              ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:241:11: error: no member named 'atoll' in the global namespace; did you mean 'atol'?
  using ::atoll;
        ~~^
/usr/include/stdlib.h:150:17: note: 'atol' declared here
extern long int atol (const char *__nptr)
                ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:242:11: error: no member named 'strtoll' in the global namespace
  using ::strtoll;
        ~~^
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:243:11: error: no member named 'strtoull' in the global namespace; did you mean 'strtoul'?
  using ::strtoull;
        ~~^
/usr/include/stdlib.h:187:26: note: 'strtoul' declared here
extern unsigned long int strtoul (const char *__restrict __nptr,
                         ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:245:11: error: no member named 'strtof' in the global namespace
  using ::strtof;
        ~~^
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:246:11: error: no member named 'strtold' in the global namespace
  using ::strtold;
        ~~^
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:254:22: error: no member named 'lldiv_t' in namespace '__gnu_cxx'; did you mean 'ldiv_t'?
  using ::__gnu_cxx::lldiv_t;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:109:5: note: 'ldiv_t' declared here
  } ldiv_t;
    ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:256:22: error: no member named '_Exit' in namespace '__gnu_cxx'
  using ::__gnu_cxx::_Exit;
        ~~~~~~~~~~~~~^
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:258:22: error: no member named 'llabs' in namespace '__gnu_cxx'; did you mean 'labs'?
  using ::__gnu_cxx::llabs;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:775:17: note: 'labs' declared here
extern long int labs (long int __x) __THROW __attribute__ ((__const__)) __wur;
                ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:260:22: error: no member named 'lldiv' in namespace '__gnu_cxx'; did you mean 'ldiv'?
  using ::__gnu_cxx::lldiv;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:790:15: note: 'ldiv' declared here
extern ldiv_t ldiv (long int __numer, long int __denom)
              ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:262:22: error: no member named 'atoll' in namespace '__gnu_cxx'; did you mean 'atol'?
  using ::__gnu_cxx::atoll;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:150:17: note: 'atol' declared here
extern long int atol (const char *__nptr)
                ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:263:22: error: no member named 'strtof' in namespace '__gnu_cxx'; did you mean 'strtoul'?
  using ::__gnu_cxx::strtof;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:187:26: note: 'strtoul' declared here
extern unsigned long int strtoul (const char *__restrict __nptr,
                         ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:264:22: error: no member named 'strtoll' in namespace '__gnu_cxx'; did you mean 'strtoul'?
  using ::__gnu_cxx::strtoll;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:187:26: note: 'strtoul' declared here
extern unsigned long int strtoul (const char *__restrict __nptr,
                         ^
In file included from Code/c++/unsorted/template_metaprogramming.cpp:1:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/algorithm:62:
In file included from /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/stl_algo.h:59:
/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cstdlib:265:22: error: no member named 'strtoull' in namespace '__gnu_cxx'; did you mean 'strtoul'?
  using ::__gnu_cxx::strtoull;
        ~~~~~~~~~~~~~^
/usr/include/stdlib.h:187:26: note: 'strtoul' declared here
extern unsigned long int strtoul (const char *__restrict __nptr,
                         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
-------------- next part --------------
clang version 3.7.0 (trunk 241977)
Target: x86_64-w64-windows-gnu
Thread model: posix
 "/opt/clang/bin/clang-3.7" -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.7.0 -internal-isystem /opt/clang/bin/../lib64/clang/3.7.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include-fixed -internal-isystem /usr/x86_64-w64-mingw32/include -internal-isystem /usr/include -fdebug-compilation-dir /home/ismail -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/nic-d0758e.o -x c randomworks/windows/nic.c
clang -cc1 version 3.7.0 based upon LLVM 3.7.0svn default target x86_64-suse-linux
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/clang/bin/../lib64/clang/3.7.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include-fixed
 /usr/include
End of search list.
randomworks/windows/nic.c:6:10: fatal error: 'winsock2.h' file not found
#include <winsock2.h>
         ^
1 error generated.
-------------- next part --------------
clang version 3.7.0 (trunk 241977)
Target: x86_64-w64-windows-gnu
Thread model: posix
 "/opt/clang/bin/clang-3.7" -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.7.0 -I /usr/x86_64-w64-mingw32/sys-root/mingw/include -internal-isystem /opt/clang/bin/../lib64/clang/3.7.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include -internal-isystem /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include-fixed -internal-isystem /usr/x86_64-w64-mingw32/include -internal-isystem /usr/include -fdebug-compilation-dir /home/ismail -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/nic-346bae.o -x c randomworks/windows/nic.c
clang -cc1 version 3.7.0 based upon LLVM 3.7.0svn default target x86_64-suse-linux
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/x86_64-w64-mingw32/sys-root/mingw/include
 /opt/clang/bin/../lib64/clang/3.7.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include
 /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include-fixed
 /usr/include
End of search list.
In file included from randomworks/windows/nic.c:6:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h:23:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/windows.h:97:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/winscard.h:10:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/wtypes.h:12:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/ole2.h:17:
In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/objbase.h:66:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/objidl.h:11413:20: warning: declaration does not declare anything [-Wmissing-declarations]
    __C89_NAMELESS struct _STGMEDIUM_UNION {
                   ^
In file included from randomworks/windows/nic.c:8:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:140:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:140:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:143:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:143:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:146:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 1, 2))) __MINGW_ATTRIB_NONNULL(1)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:146:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:149:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 1, 0))) __MINGW_ATTRIB_NONNULL(1)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:149:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:152:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:152:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:155:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
  __attribute__((__format__ (gnu_scanf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:155:18: warning: '__format__' attribute argument not supported: gnu_scanf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:159:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 3, 0))) __MINGW_ATTRIB_NONNULL(3)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:159:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:163:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 3, 4))) __MINGW_ATTRIB_NONNULL(3)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:163:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:166:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 1, 2))) __MINGW_ATTRIB_NONNULL(1)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:166:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:169:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 1, 0))) __MINGW_ATTRIB_NONNULL(1)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:169:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:172:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:172:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:175:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:175:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:178:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 3))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:178:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:181:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 0))) __MINGW_ATTRIB_NONNULL(2)
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:181:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:184:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 3))) __attribute__((nonnull (1,2)))
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:184:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:187:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
  __attribute__((__format__ (gnu_printf, 2, 0))) __attribute__((nonnull (1,2)))
                 ^
/usr/x86_64-w64-mingw32/sys-root/mingw/include/stdio.h:187:18: warning: '__format__' attribute argument not supported: gnu_printf [-Wignored-attributes]
33 warnings generated.
 "/usr/bin/x86_64-w64-mingw32-ld" -m i386pep -Bdynamic -o a.exe crt2.o /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/crtbegin.o -L/usr/lib64/gcc/x86_64-w64-mingw32/5.1.0 -L/usr/lib -L/usr/x86_64-w64-mingw32/lib /tmp/nic-346bae.o -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/crtend.o
/usr/bin/x86_64-w64-mingw32-ld: cannot find crt2.o: No such file or directory
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmoldname
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmsvcrt
/usr/bin/x86_64-w64-mingw32-ld: cannot find -ladvapi32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lshell32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -luser32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lkernel32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmoldname
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmsvcrt
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)


More information about the cfe-commits mailing list