conda-forge / normaliz-feedstock

A conda-smithy repository for normaliz.
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Build for Windows #5

Closed saraedum closed 5 years ago

saraedum commented 5 years ago

cc: @videlec @slel

conda-forge-linter commented 5 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

saraedum commented 5 years ago

@isuruf: I copied some stuff over from the m4ri recipe. Let's see how this goes.

saraedum commented 5 years ago

@conda-forge-admin please rerender

saraedum commented 5 years ago

@isuruf: So why would the m4ri recipe install clangdev if it's then just using the builtin compilers through the cccl wrapper?

isuruf commented 5 years ago

So why would the m4ri recipe install clangdev if it's then just using the builtin compilers through the cccl wrapper?

Is it? It's calling clang-cl

saraedum commented 5 years ago

It's setting CC=cl_wrapper.sh.

saraedum commented 5 years ago

oh, and that's calling CCCL agian.

saraedum commented 5 years ago

@isuruf: So, if we're using clang anyway why do we need to go through the cccl wrapper? It's says that this is a wrapper for the MS compiler.

isuruf commented 5 years ago

Because autotools doesn't like clang.exe's GNU interface on windows. (autotools would call clang.exe with /EXPORT options which clang.exe doesn't understand)

Basically autotools calls the compiler with GNU like syntax and MSVC like syntax. So, we need a wrapper to convert GNU like options to MSVC like options or the other way. I found cccl could do the first.

isuruf commented 5 years ago

It's says that this is a wrapper for the MS compiler.

True, but my modifications make it work with clang-cl.

saraedum commented 5 years ago

So, we need to disable VS2008 here, right?

isuruf commented 5 years ago

Yes, skip: True # [win and vc<14]

saraedum commented 5 years ago

@conda-forge-admin please rerender

saraedum commented 5 years ago

LINK : fatal error LNK1181: cannot open input file 'pthread.lib'

isuruf commented 5 years ago

Use https://anaconda.org/conda-forge/pthreads-win32

saraedum commented 5 years ago

The failing make check is now https://github.com/Normaliz/Normaliz/issues/258.

saraedum commented 5 years ago

@isuruf any clue what's going on here?