Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'allocator_allocate_int_array_4d' and 'allocator_allocate_long_array_4d' for GENERIC 'allocate' at (1) are ambiguous #833

Open
barracuda156 opened this issue Jul 15, 2023 · 0 comments

Comments

@barracuda156
Copy link

This is when building chai with umpire and Fortran enabled:

cd /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/CHAI-2022.10.0 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/CHAI-2022.10.0/src/tpl/umpire/src/umpire/util /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/build /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/build/src/tpl/umpire/src/umpire/util /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/build/src/tpl/umpire/src/umpire/util/CMakeFiles/umpire_util.dir/DependInfo.cmake --color=
/opt/local/bin/mpicxx-mpich-gcc12  -Wall -Wextra  -pipe -Os -DNDEBUG -isystem/opt/local/include/LegacySupport -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0    -arch ppc -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc CMakeFiles/blt_mpi_smoke.dir/blt_mpi_smoke.cpp.o -o ../../../tests/blt_mpi_smoke 
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/CHAI-2022.10.0/src/tpl/umpire/src/umpire/interface/c_fortran/wrapfumpire.f:103:38:

  103 |         generic, public :: allocate => &
      |                                      1
Error: 'allocator_allocate_int_array_4d' and 'allocator_allocate_long_array_4d' for GENERIC 'allocate' at (1) are ambiguous
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_chai/chai/work/CHAI-2022.10.0/src/tpl/umpire/src/umpire/interface/c_fortran/wrapfumpire.f:121:40:

  121 |         generic, public :: deallocate => &
      |                                        1
Error: 'allocator_deallocate_int_array_4d' and 'allocator_deallocate_long_array_4d' for GENERIC 'deallocate' at (1) are ambiguous
make[2]: *** [src/tpl/umpire/src/umpire/interface/c_fortran/CMakeFiles/umpire_interface.dir/wrapfumpire.f.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant