prism-em / prismatic

C++/CUDA package for parallelized simulation of image formation in Scanning Transmission Electron Microscopy (STEM) using the PRISM and multislice algorithms
GNU General Public License v3.0
79 stars 40 forks source link

MNT: Re-rendered with conda-build 3.20.3, conda-smithy 3.8.1, and con… #89

Closed ericpre closed 4 years ago

ericpre commented 4 years ago

This PR updates the conda recipe as per https://conda-forge.org/docs/user/ci-skeleton.html#rerender.

With the recent changes of #88, only linux build fine, windows and macos have build failures. From log https://dev.azure.com/ericpre/prismatic/_build/results?buildId=996&view=results:

Windows

2020-10-12T10:08:29.8016773Z [ 26%] Building CXX object CMakeFiles/prismatic.dir/src/PRISM01_calcPotential.cpp.obj
2020-10-12T10:08:29.8300020Z cl : Command line warning D9025 : overriding '/W3' with '/W0'
2020-10-12T10:08:29.8311138Z PRISM01_calcPotential.cpp
2020-10-12T10:08:31.3140472Z D:\bld\prismatic_1602496422089\work\src\PRISM01_calcPotential.cpp(365): error C2677: binary '*': no global operator found which takes type '_Fcomplex' (or there is no acceptable conversion)
2020-10-12T10:08:31.3142618Z D:\bld\prismatic_1602496422089\work\src\PRISM01_calcPotential.cpp(366): error C2677: binary '*': no global operator found which takes type '_Fcomplex' (or there is no acceptable conversion)
2020-10-12T10:08:31.4234856Z D:\bld\prismatic_1602496422089\work\src\PRISM01_calcPotential.cpp(577): error C2397: conversion from 'PRISMATIC_FLOAT_PRECISION' to '_Ty' requires a narrowing conversion
2020-10-12T10:08:31.4236775Z         with
2020-10-12T10:08:31.4237472Z         [
2020-10-12T10:08:31.4238196Z             _Ty=size_t
2020-10-12T10:08:31.4238947Z         ]
2020-10-12T10:08:31.4703957Z NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1\2017\ENTERP~1\VC\Tools\MSVC\1416~1.270\bin\Hostx64\x64\cl.exe' : return code '0x2'
2020-10-12T10:08:31.4705353Z Stop.
2020-10-12T10:08:31.4741127Z NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"' : return code '0x2'
2020-10-12T10:08:31.4743723Z Stop.
2020-10-12T10:08:31.4760907Z NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\nmake.exe"' : return code '0x2'
2020-10-12T10:08:31.4762123Z Stop.
2020-10-12T10:08:33.4914448Z Traceback (most recent call last):
2020-10-12T10:08:33.4915911Z   File "C:\Miniconda\Scripts\conda-build-script.py", line 10, in <module>
2020-10-12T10:08:33.4916778Z     sys.exit(main())
2020-10-12T10:08:33.4917834Z   File "C:\Miniconda\lib\site-packages\conda_build\cli\main_build.py", line 474, in main
2020-10-12T10:08:33.4923269Z     execute(sys.argv[1:])
2020-10-12T10:08:33.4924280Z   File "C:\Miniconda\lib\site-packages\conda_build\cli\main_build.py", line 465, in execute
2020-10-12T10:08:33.4927143Z     verify=args.verify, variants=args.variants)
2020-10-12T10:08:33.4928523Z   File "C:\Miniconda\lib\site-packages\conda_build\api.py", line 195, in build
2020-10-12T10:08:33.4932958Z     variants=variants
2020-10-12T10:08:33.4933971Z   File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 3005, in build_tree
2020-10-12T10:08:33.4947672Z     notest=notest,
2020-10-12T10:08:33.4949111Z   File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 2285, in build
2020-10-12T10:08:33.4960610Z     newly_built_packages = bundlers[pkg_type](output_d, m, env, stats)
2020-10-12T10:08:33.4962957Z   File "C:\Miniconda\lib\site-packages\conda_build\build.py", line 1534, in bundle_conda
2020-10-12T10:08:33.4968052Z     cwd=metadata.config.work_dir, env=env_output, stats=bundle_stats)
2020-10-12T10:08:33.4969811Z   File "C:\Miniconda\lib\site-packages\conda_build\utils.py", line 410, in check_call_env
2020-10-12T10:08:33.4971908Z     return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
2020-10-12T10:08:33.4973222Z   File "C:\Miniconda\lib\site-packages\conda_build\utils.py", line 390, in _func_defaulting_env_to_os_environ
2020-10-12T10:08:33.4977290Z     raise subprocess.CalledProcessError(proc.returncode, _args)
2020-10-12T10:08:33.4980483Z subprocess.CalledProcessError: Command '['C:\\windows\\system32\\cmd.exe', '/d', '/c', 'D:\\bld\\prismatic_1602496422089\\work\\output_script.bat']' returned non-zero exit status 1.
2020-10-12T10:08:36.4417126Z ##[error]Cmd.exe exited with code '1'.
2020-10-12T10:08:36.5095145Z ##[section]Finishing: Build recipe

MacOS

2020-10-12T09:58:24.3920460Z [ 26%] Building CXX object CMakeFiles/prismatic.dir/src/PRISM01_calcPotential.cpp.o
2020-10-12T09:58:25.9549570Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:365:25: error: use of undeclared identifier 'I'
2020-10-12T09:58:25.9551000Z                         qyShift.at(j,i) = -2*I*pi*qya.at(j,i);
2020-10-12T09:58:25.9551580Z                                              ^
2020-10-12T09:58:25.9589030Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:366:25: error: use of undeclared identifier 'I'
2020-10-12T09:58:25.9590430Z                         qxShift.at(j,i) = -2*I*pi*qxa.at(j,i);
2020-10-12T09:58:25.9590990Z                                              ^
2020-10-12T09:58:25.9840450Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:577:86: error: type 'double' cannot be narrowed to 'unsigned long' in initializer list [-Wc++11-narrowing]
2020-10-12T09:58:25.9842270Z                 Array1D<PRISMATIC_FLOAT_PRECISION> zvec = zeros_ND<1, PRISMATIC_FLOAT_PRECISION>({{zleng*2}});
2020-10-12T09:58:25.9844230Z                                                                                                    ^~~~~~~
2020-10-12T09:58:25.9846110Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:577:86: note: insert an explicit cast to silence this issue
2020-10-12T09:58:25.9847700Z                 Array1D<PRISMATIC_FLOAT_PRECISION> zvec = zeros_ND<1, PRISMATIC_FLOAT_PRECISION>({{zleng*2}});
2020-10-12T09:58:25.9848750Z                                                                                                    ^~~~~~~
2020-10-12T09:58:25.9849790Z                                                                                                    static_cast<unsigned long>( )
2020-10-12T09:58:26.3722290Z 3 errors generated.
2020-10-12T09:58:26.3785500Z make[2]: *** [CMakeFiles/prismatic.dir/build.make:134: CMakeFiles/prismatic.dir/src/PRISM01_calcPotential.cpp.o] Error 1
2020-10-12T09:58:26.3786420Z make[2]: *** Waiting for unfinished jobs....
2020-10-12T09:58:27.4018190Z make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/prismatic.dir/all] Error 2
2020-10-12T09:58:27.4019220Z make: *** [Makefile:149: all] Error 2
2020-10-12T09:58:27.5152280Z [  5%] Building CXX object CMakeFiles/prismatic.dir/src/PRISM01_calcPotential.cpp.o
2020-10-12T09:58:29.2969630Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:365:25: error: use of undeclared identifier 'I'
2020-10-12T09:58:29.2971500Z                         qyShift.at(j,i) = -2*I*pi*qya.at(j,i);
2020-10-12T09:58:29.2972080Z                                              ^
2020-10-12T09:58:29.2973140Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:366:25: error: use of undeclared identifier 'I'
2020-10-12T09:58:29.2974240Z                         qxShift.at(j,i) = -2*I*pi*qxa.at(j,i);
2020-10-12T09:58:29.2974780Z                                              ^
2020-10-12T09:58:29.2975970Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:577:86: error: type 'double' cannot be narrowed to 'unsigned long' in initializer list [-Wc++11-narrowing]
2020-10-12T09:58:29.2976920Z                 Array1D<PRISMATIC_FLOAT_PRECISION> zvec = zeros_ND<1, PRISMATIC_FLOAT_PRECISION>({{zleng*2}});
2020-10-12T09:58:29.2977620Z                                                                                                    ^~~~~~~
2020-10-12T09:58:29.2978970Z /Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/src/PRISM01_calcPotential.cpp:577:86: note: insert an explicit cast to silence this issue
2020-10-12T09:58:29.2980650Z                 Array1D<PRISMATIC_FLOAT_PRECISION> zvec = zeros_ND<1, PRISMATIC_FLOAT_PRECISION>({{zleng*2}});
2020-10-12T09:58:29.2982570Z                                                                                                    ^~~~~~~
2020-10-12T09:58:29.2984590Z                                                                                                    static_cast<unsigned long>( )
2020-10-12T09:58:29.4226740Z 3 errors generated.
2020-10-12T09:58:29.4288810Z make[2]: *** [CMakeFiles/prismatic.dir/build.make:134: CMakeFiles/prismatic.dir/src/PRISM01_calcPotential.cpp.o] Error 1
2020-10-12T09:58:29.4291100Z make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/prismatic.dir/all] Error 2
2020-10-12T09:58:29.4293770Z make: *** [Makefile:149: all] Error 2
2020-10-12T09:58:30.1646320Z Traceback (most recent call last):
2020-10-12T09:58:30.1647920Z   File "/Users/runner/miniforge3/bin/conda-build", line 11, in <module>
2020-10-12T09:58:30.1648580Z     sys.exit(main())
2020-10-12T09:58:30.1649580Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/cli/main_build.py", line 474, in main
2020-10-12T09:58:30.1650540Z     execute(sys.argv[1:])
2020-10-12T09:58:30.1652160Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/cli/main_build.py", line 463, in execute
2020-10-12T09:58:30.1653210Z     outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post,
2020-10-12T09:58:30.1654560Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/api.py", line 186, in build
2020-10-12T09:58:30.1655270Z     return build_tree(
2020-10-12T09:58:30.1656760Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/build.py", line 3000, in build_tree
2020-10-12T09:58:30.1662450Z     packages_from_this = build(metadata, stats,
2020-10-12T09:58:30.1663990Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/build.py", line 2285, in build
2020-10-12T09:58:30.1668650Z     newly_built_packages = bundlers[pkg_type](output_d, m, env, stats)
2020-10-12T09:58:30.1669840Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/build.py", line 1533, in bundle_conda
2020-10-12T09:58:30.1672880Z     utils.check_call_env(interpreter_and_args + [dest_file],
2020-10-12T09:58:30.1674470Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/utils.py", line 410, in check_call_env
2020-10-12T09:58:30.1676090Z     return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
2020-10-12T09:58:30.1677720Z   File "/Users/runner/miniforge3/lib/python3.8/site-packages/conda_build/utils.py", line 390, in _func_defaulting_env_to_os_environ
2020-10-12T09:58:30.1678840Z     raise subprocess.CalledProcessError(proc.returncode, _args)
2020-10-12T09:58:30.1680910Z subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/Users/runner/miniforge3/conda-bld/prismatic_1602496206757/work/output_script.sh']' returned non-zero exit status 2.
2020-10-12T09:58:32.3983930Z 
2020-10-12T09:58:32.4046480Z ##[error]Bash exited with code '1'.
2020-10-12T09:58:32.4098790Z ##[section]Finishing: Run OSX build
ericpre commented 4 years ago

Building failures fixed in #90.