Re: [Mingw-w64-public] Trouble cross-compiling llvm

2012-06-21 Thread Ruben Van Boxem
Op 19 jun. 2012 20:04 schreef "Christer Solskogen" <
christer.solsko...@gmail.com> het volgende:
>
> I'm using a cross compiler (GCC-4.7.1 and the latest mingw-w64-trunk) on
> my FreeBSD machines, and I'm trying to use that compiler to create a
> native llvm/clang-compiler(trunk) for Windows. But I'm having trouble.
>
> /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp: In
> function 'std::string llvm::sys::StrError(int)':
> /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp:55:32:
> error: too few arguments to function 'errno_t strerror_s(char*, size_t,
> int)'
> In file included from
>
/usr/home/solskogen/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/string.h:176:0,
>  from
> /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp:18:
>
/usr/home/solskogen/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sec_api/string_s.h:19:27:
> note: declared here
> rm:
>
/usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support/Release/Errno.d.tmp:
> No such file or directory
> gmake[1]: ***
>
[/usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support/Release/Errno.o]
> Error 1
> gmake[1]: *** Waiting for unfinished jobs
> gmake[1]: Leaving directory
> `/usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support'
> gmake: *** [all] Error 1
>
>
> Creating a native llvm+clang-compiler works fine (that is, using
> FreeBSDs base compiler to create it)
>
> anyone else seeing this? Ruben, maybe?

How did you configure LLVM? Last time I checked, everything worked fine
(but something might have changed).

Ruben

>
> --
> chs
>
>
>
--
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] Trouble cross-compiling llvm

2012-06-21 Thread Christer Solskogen
On 21/6/2012 10:13 AM, Ruben Van Boxem wrote:
>
> Op 19 jun. 2012 20:04 schreef "Christer Solskogen"
>  > het
> volgende:
>  >
>  > I'm using a cross compiler (GCC-4.7.1 and the latest mingw-w64-trunk) on
>  > my FreeBSD machines, and I'm trying to use that compiler to create a
>  > native llvm/clang-compiler(trunk) for Windows. But I'm having trouble.
>  >
>  > /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp: In
>  > function 'std::string llvm::sys::StrError(int)':
>  > /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp:55:32:
>  > error: too few arguments to function 'errno_t strerror_s(char*, size_t,
>  > int)'
>  > In file included from
>  >
> /usr/home/solskogen/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/string.h:176:0,
>  >  from
>  > /usr/home/solskogen/mingw-w64-builder/llvm/lib/Support/Errno.cpp:18:
>  >
> /usr/home/solskogen/cross-mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sec_api/string_s.h:19:27:
>  > note: declared here
>  > rm:
>  >
> /usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support/Release/Errno.d.tmp:
>  > No such file or directory
>  > gmake[1]: ***
>  >
> [/usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support/Release/Errno.o]
>  > Error 1
>  > gmake[1]: *** Waiting for unfinished jobs
>  > gmake[1]: Leaving directory
>  > `/usr/home/solskogen/obj/llvm.native.x86_64-w64-mingw32/lib/Support'
>  > gmake: *** [all] Error 1
>  >
>  >
>  > Creating a native llvm+clang-compiler works fine (that is, using
>  > FreeBSDs base compiler to create it)
>  >
>  > anyone else seeing this? Ruben, maybe?
>
> How did you configure LLVM? Last time I checked, everything worked fine
> (but something might have changed).
>

I'm pretty sure I got it to work as well. I even tried using an older 
gcc (4.6.3) and a older LLVM/clang, but to no avail. I'm also pretty 
sure that there is nothing wrong with my configured cross-compiler as I 
have no trouble creating a native mingw-w64 compiler with it.

llvm/configure --prefix=/mingw --host=x86_64-w64-mingw32 
--target=x86_64-w64-mingw32 --build=x86_64-unknown-freebsd9.0

I've also tried running this on a Debian machine (same error). I also 
tried without --target=. I've tried llvm/clang trunk, 3.1 and 3.0.

-- 
chs






--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public