Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Adrien Nader
On Mon, Oct 20, 2014, Óscar Fuentes wrote: > Adrien Nader writes: > > > As a project, mingw-w64 wishes to have clang and llvm supported. There > > have been recent reports of troubles with it however but we'd prefer it > > to work. > > Nice. Preferences are a good starting point for achieving th

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Óscar Fuentes
Adrien Nader writes: > As a project, mingw-w64 wishes to have clang and llvm supported. There > have been recent reports of troubles with it however but we'd prefer it > to work. Nice. Preferences are a good starting point for achieving things ;-) > On the other side, the llvm project needs to

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
Thank you for this information. On 20.10.2014 17:27, Adrien Nader wrote: > On Mon, Oct 20, 2014, Óscar Fuentes wrote: >> Ruben Van Boxem >> writes: >> As stated, the problem is not related to MinGW-w64, it is about how you configure the CMake/Clang combo for cross-compiling. >>> I beg

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
Many thanks for your help. I already read a lot of your useful posts and comments. I will try to apply your patch on my local clang build. On 20.10.2014 16:31, Ruben Van Boxem wrote: > 2014-10-20 16:19 GMT+02:00 Óscar Fuentes >: > > Barnaby Jones > >

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Adrien Nader
On Mon, Oct 20, 2014, Óscar Fuentes wrote: > Ruben Van Boxem > writes: > > >> As stated, the problem is not related to MinGW-w64, it is about how you > >> configure the CMake/Clang combo for cross-compiling. > > > > I beg to differ, and it is quite related to using MinGW-w64. It's just not > > ab

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Óscar Fuentes
Ruben Van Boxem writes: >> As stated, the problem is not related to MinGW-w64, it is about how you >> configure the CMake/Clang combo for cross-compiling. > > I beg to differ, and it is quite related to using MinGW-w64. It's just not > about GCC. > > Currently, Clang as-is cannot cross-compile to

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Ruben Van Boxem
2014-10-20 16:19 GMT+02:00 Óscar Fuentes : > Barnaby Jones > > writes: > > The problems are self-evident: > >> and CMakeError.log --> >> >> Determining if the C compiler works failed with the following output: >> Change Dir: >> /home/barnaby/Dokumente/sourceProjects/gnustep/libobjc2/build/CMakeFi

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Óscar Fuentes
Barnaby Jones writes: The problems are self-evident: > and CMakeError.log --> > > Determining if the C compiler works failed with the following output: > Change Dir: > /home/barnaby/Dokumente/sourceProjects/gnustep/libobjc2/build/CMakeFiles/CMakeTmp > > Run Build Command:"/usr/bin/make" "cmTry

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
I'm thankful for any help! CmakeOutputLog --> The target system is: Windows - - i686 The host system is: Linux - 3.16.4-1-ARCH - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/local/bin/clang Build flags: Id flags: The output was: 0

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
Im currently using clang cross compilation. Is it possible/advisable to compile clang for wine? On 20.10.2014 15:38, Ruben Van Boxem wrote: > 2014-10-20 15:25 GMT+02:00 Richard Shaw : >> On Mon, Oct 20, 2014 at 8:03 AM, Barnaby Jones >> wrote: >>> SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} >>> -

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Adrien Nader
On Mon, Oct 20, 2014, Óscar Fuentes wrote: > Barnaby Jones > > writes: > > > Error message ---> > > > > cmake -DCMAKE_TOOLCHAIN_FILE=~/Dokumente/toolchain-ubuntu-mingw64.cmake ../ > > -- The C compiler identification is Clang 3.6.0 > > -- The CXX compiler identification is Clang 3.6.0 > > -- Chec

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Óscar Fuentes
Barnaby Jones writes: > Error message ---> > > cmake -DCMAKE_TOOLCHAIN_FILE=~/Dokumente/toolchain-ubuntu-mingw64.cmake ../ > -- The C compiler identification is Clang 3.6.0 > -- The CXX compiler identification is Clang 3.6.0 > -- Check for working C compiler: /usr/local/bin/clang > -- Check for w

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
You are correct but I get the same error: new toolchain ---> set(CMAKE_SYSTEM_NAME Windows) set(TOOLCHAIN_PREFIX i686-w64-mingw32) set(CMAKE_SYSTEM_PROCESSOR i686) #set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) #set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++) #set(CMAKE_RC_COMPILER ${TOOLCHAIN_P

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Ruben Van Boxem
2014-10-20 15:25 GMT+02:00 Richard Shaw : > On Mon, Oct 20, 2014 at 8:03 AM, Barnaby Jones > wrote: >> >> SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} >> -target=--target=i686-w64-mingw32" ) >> SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} >> -target=--target=i686-w64-mingw32" ) > > > Compl

Re: [Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Richard Shaw
On Mon, Oct 20, 2014 at 8:03 AM, Barnaby Jones wrote: > SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} > -target=--target=i686-w64-mingw32" ) > SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} > -target=--target=i686-w64-mingw32" ) Complete guess here, but this looks funny. Are you sure it sh

[Mingw-w64-public] CMake Toolcahin for linux/clang 3.6

2014-10-20 Thread Barnaby Jones
Is it possible to use clang3.6 with cmake to create mingw64 builds? I tried to modify the toolchain from ubuntu/mingw: set(CMAKE_SYSTEM_NAME Windows) set(TOOLCHAIN_PREFIX i686-w64-mingw32) set(CMAKE_SYSTEM_PROCESSOR i686) # mingw64 gcc setup #set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc) #set(CM