conda-forge / plumed-feedstock

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

Test win build - WIP #17

Open GiovanniBussi opened 3 years ago

GiovanniBussi commented 3 years ago

WIP, See #16

Checklist

conda-forge-linter commented 3 years ago

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

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

For recipe:

Documentation on acceptable licenses can be found here.

GiovanniBussi commented 3 years ago

@conda-forge-admin, please rerender

conda-forge-linter commented 3 years ago

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

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

For recipe:

Documentation on acceptable licenses can be found here.

conda-forge-linter commented 3 years ago

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

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

For recipe:

Documentation on acceptable licenses can be found here.

GiovanniBussi commented 3 years ago

Stuck on this error:

sed: can't read libtool: No such file or directory
conda-forge-linter commented 3 years ago

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

I was trying to look for recipes to lint for you, but it appears we have a merge conflict. Please try to merge or rebase with the base branch to resolve this conflict.

Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

GiovanniBussi commented 3 years ago

@conda-forge-admin, please rerender

github-actions[bot] commented 3 years ago

Hi! This is the friendly automated conda-forge-webservice. I tried to rerender for you, but it looks like there was nothing to do.

conda-forge-linter commented 3 years ago

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

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

For recipe:

Documentation on acceptable licenses can be found here.

GiovanniBussi commented 3 years ago

Making progress (thanks to a @tonigi 's comment that I cannot find anymore, but I got the email...).

Now the build stops with this error:

checking for dirent.h... no
configure: error: compulsory header not found

I think I could include this. Not sure where I should put it to be visible to the compiler though...

tonigi commented 3 years ago

Yes sorry. I deleted the comment because I noticed that you were ahead of me in making the changes both here and to xdrfile's recipe.

conda-forge-linter commented 3 years ago

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

I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.

Here's what I've got...

For recipe:

For recipe:

Documentation on acceptable licenses can be found here.

GiovanniBussi commented 3 years ago

And here's the next error:

loning into bare repository '/d/bld/git_cache/github.com/plumed/plumed2.git'...
Traceback (most recent call last):
  File "C:\Miniconda\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Miniconda\lib\site-packages\conda_build\cli\main_build.py", line 481, in main
    execute(sys.argv[1:])
  File "C:\Miniconda\lib\site-packages\conda_build\cli\main_build.py", line 472, in execute
    verify=args.verify, variants=args.variants, cache_dir=args.cache_dir)
  File "C:\Miniconda\lib\site-packages\conda_build\api.py", line 195, in build
    variants=variants
  File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 3073, in build_tree
    notest=notest,
  File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 2118, in build
    try_download(m, no_download_source=False, raise_error=True)
  File "C:\Miniconda\lib\site-packages\conda_build\render.py", line 650, in try_download
    source.provide(metadata)
  File "C:\Miniconda\lib\site-packages\conda_build\source.py", line 867, in provide
    verbose=metadata.config.verbose)
  File "C:\Miniconda\lib\site-packages\conda_build\source.py", line 333, in git_source
    git_depth=git_depth, is_top_level=True, verbose=verbose)
  File "C:\Miniconda\lib\site-packages\conda_build\source.py", line 251, in git_mirror_checkout_recursive
    assert isdir(mirror_dir)
AssertionError
##[error]Cmd.exe exited with code '1'.

Maybe a problem with the way I define the source. Anyway, it's annoying that the same meta.yml file works correctly for the Linux and OSX builds.

tonigi commented 3 years ago

If I run conda build on your branch, instead I get this...


checking for xdrfile/xdrfile_xtc.h... no
configure: WARNING: cannot enable __PLUMED_HAS_XDRFILE
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
checking for library containing fftw_execute... -lfftw3
configure: Release mode, adding -DNDEBUG
configure: *** Dynamic library only enabled on OSX and Linux ***
checking for doxygen... no
configure: Manuals will not be generated
configure: A PDF version of the manual will not be generated
checking for xxd... found
checking whether a program can be run on this machine... yes
configure: PLUMED seems to be configured properly!
configure: **************************
checking whether C++ objects can be grouped with ld -r -o... no
checking whether C++ objects can be grouped with clang++.exe -Wl,-r -o... no
checking whether C++ objects can be grouped with ld -r -o... no
checking whether static libraries can be created with ar cr... no
checking whether static libraries can be created with ar cr... no
configure: WARNING: no way to create a static archive if ld -ro or ar cr do not work
configure: I will now check if C++ objects can be linked by C/Fortran compilers
configure: This is relevant if you want to use plumed patch --static on a non-C++ code
In file included from conftest.cpp:1:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\iostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\istream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\ostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\ios:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xlocnum:10:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\streambuf:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xiosbase:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xlocale:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\stdexcept:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\exception:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\type_traits:6:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xstddef:338:2: error:
      'auto' return without trailing return type; deduced return types are a C++14 extension
        auto _Unfancy(_Ptrty _Ptr)
        ^
In file included from conftest.cpp:1:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\iostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\istream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\ostream:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\ios:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xlocnum:10:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\streambuf:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xiosbase:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xlocale:8:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\stdexcept:7:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xstring:6:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xmemory0:10:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:363:13: error: 
      deduced return types are a C++14 extension
                constexpr decltype(auto) operator()(_Args&&... _Vals)
                          ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:601:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Adl_verify_range1(const _Iter& _First, const _Sentinel& _Last, true_type)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:608:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Adl_verify_range1(const _Iter&, const _Sentinel&, false_type)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:614:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Adl_verify_range(const _Iter& _First, const _Sentinel& _Last)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:641:23: error: 
      'auto' return without trailing return type; deduced return types are a C++14 extension
        _NODISCARD constexpr auto _Get_unwrapped(const _Iter& _It)
                             ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:692:23: error: 
      'auto' return without trailing return type; deduced return types are a C++14 extension
        _NODISCARD constexpr auto _Get_unwrapped_unverified(const _Iter& _It)
                             ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:759:23: error: 
      'auto' return without trailing return type; deduced return types are a C++14 extension
        _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, const _Diff _Off)
                             ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:779:23: error: 
      'auto' return without trailing return type; deduced return types are a C++14 extension
        _NODISCARD constexpr auto _Get_unwrapped_n(const _Iter& _It, _Diff)
                             ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:855:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:863:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Seek_wrapped(_Iter& _It, const _UIter& _UIt)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:870:17: error: 
      constexpr function's return type 'void' is not a literal type
        constexpr void _Seek_wrapped(_Ty *& _It, _Ty * const _UIt)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:973:2: error:
      'auto' return without trailing return type; deduced return types are a C++14 extension
        auto _Idl_distance(const _Iter& _First, const _Iter& _Last)
        ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:1289:12: error:
      deduced return types are a C++14 extension
        constexpr decltype(auto) _Operator_arrow(_Iterator&& _Target, false_type)
                  ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:1404:18: error:
      constexpr function's return type 'void' is not a literal type
                constexpr void _Verify_offset(const difference_type _Off) const
                               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:1421:18: error:
      constexpr function's return type 'void' is not a literal type
                constexpr void _Seek_to(const reverse_iterator<_Src>& _It)
                               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:1432:17: error:
      constexpr function's return type 'void' is not a literal type
        constexpr void _Verify_range(const reverse_iterator<_BidIt>& _First, const reverse_iterator<_BidIt2>& _Last)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:1844:17: error:
      constexpr function's return type 'void' is not a literal type
        constexpr void _Seek_to(pointer _It)
                       ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\include\xutility:2260:25: error:
      constexpr function's return type 'void' is not a literal type
                friend constexpr void _Verify_range(const move_iterator& _First, const move_iterator<_Iter2>& _Last)
                                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
checking whether C can link a C++ object... no
checking whether C can link a C++ object with library -lstdc++... no
checking whether C can link a C++ object with library -lc++... no
checking whether C can link a C++ object with library -lmpi_cxx... no
configure: WARNING: You might have problems linking C programs.
configure: WARNING: Please add c++ library to LIBS
configure: FC compiler not configured
checking for pkg-config... no
configure: bash completion for plumed will not be installed
configure: **** PLUMED will be installed using the following paths:
configure: WARNING: **** Bash completion for plumed will not be installed, please add the following two lines to your bashrcconfigure: **** prefix: /c/Miniconda38-x64/conda-bld/plumed_1614865954706/_h_env/Library

configure: **** libdir: ${exec_prefix}/lib
configure: WARNING: **** _plumed() { eval "$(plumed --no-mpi completion 2>/dev/null)";}configure: **** includedir: ${prefix}/include
configure: **** datarootdir: ${prefix}/share
configure: **** htmldir: ${docdir}
configure: WARNING: **** complete -F _plumed -o default plumedconfigure: **** Executable will be named plumed
configure: **** As of PLUMED 2.5, you cannot change paths anymore during "make install"
configure: **** Please configure and make clean to change the prefix
configure: WARNING: **** PLUMED will NOT be compiled using MPI because MPI have not been found!
configure: creating ./config.status
config.status: creating Makefile.conf
config.status: creating sourceme.sh
config.status: creating stamp-h
sed: can't read libtool: No such file or directory
Traceback (most recent call last):
  File "C:\Miniconda38-x64\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\cli\main_build.py", line 481, in main
    execute(sys.argv[1:])
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\cli\main_build.py", line 470, in execute
    outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post,
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\api.py", line 186, in build
    return build_tree(
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\build.py", line 3068, in build_tree
    packages_from_this = build(metadata, stats,
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\build.py", line 2159, in build
    windows.build(m, build_file, stats=build_stats, provision_only=provision_only)
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\windows.py", line 299, in build
    check_call_env(cmd, cwd=m.config.work_dir, stats=stats, rewrite_stdout_env=rewrite_env)
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\utils.py", line 412, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "C:\Miniconda38-x64\lib\site-packages\conda_build\utils.py", line 392, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['cmd.exe', '/d', '/c', 'conda_build.bat']' returned non-zero exit status 1.
GiovanniBussi commented 3 years ago

I think this: sed: can't read libtool: No such file or directory is related to the patch_libtool script.

Can we invoke @isuruf help in this? I think he's maintaining the autotools_clang_conda package that I am using here