Opened 16 months ago

#67834 assigned defect

kokkos-devel: universal builds with Clang seem broken, because KOKKOS_IMPL_32BIT does not get defined

Reported by: barracuda156 Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: kokkos-devel

Description

On 10.6.8 with Clang-11:

[ 32%] Building CXX object core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src && /opt/local/bin/clang++-mp-11 -DKOKKOS_DEPENDENCE -Dkokkoscore_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/../../tpls/desul/include -isystem /opt/local/include -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -std=gnu++17 -arch x86_64 -arch i386 -mmacosx-version-min=10.6 -fPIC -fopenmp=libomp -MD -MT core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o -MF CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o.d -o CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_ExecPolicy.cpp
[ 35%] Building CXX object core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostBarrier.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src && /opt/local/bin/clang++-mp-11 -DKOKKOS_DEPENDENCE -Dkokkoscore_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/../../tpls/desul/include -isystem /opt/local/include -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -std=gnu++17 -arch x86_64 -arch i386 -mmacosx-version-min=10.6 -fPIC -fopenmp=libomp -MD -MT core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostBarrier.cpp.o -MF CMakeFiles/kokkoscore.dir/impl/Kokkos_HostBarrier.cpp.o.d -o CMakeFiles/kokkoscore.dir/impl/Kokkos_HostBarrier.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_HostBarrier.cpp
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_ExecPolicy.cpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core.hpp:43:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core_fwd.hpp:44:1: error: static_assert failed due to requirement 'sizeof(void *) == 8' "Kokkos assumes 64-bit build; i.e., 8-byte pointers"
static_assert(sizeof(void *) == 8,
^             ~~~~~~~~~~~~~~~~~~~
[ 39%] Building CXX object core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src && /opt/local/bin/clang++-mp-11 -DKOKKOS_DEPENDENCE -Dkokkoscore_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/../../tpls/desul/include -isystem /opt/local/include -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -std=gnu++17 -arch x86_64 -arch i386 -mmacosx-version-min=10.6 -fPIC -fopenmp=libomp -MD -MT core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o -MF CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o.d -o CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_HostSpace.cpp
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_ExecPolicy.cpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core.hpp:45:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/KokkosCore_Config_DeclareBackend.hpp:22:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/decl/Kokkos_Declare_OPENMP.hpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/OpenMP/Kokkos_OpenMP.hpp:40:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_TaskScheduler.hpp:36:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Future.hpp:34:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskQueue.hpp:30:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskBase.hpp:229:21: error: no type named 'type' in 'Kokkos::Impl::verify_task_base_size_is_48_note_actual_size_is_<32>'
        TaskBase)>::type verify = {};
        ~~~~~~~~~~~~^~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskBase.hpp:231:1: error: static_assert failed due to requirement 'sizeof(Kokkos::Impl::TaskBase) == expected_task_base_size' "Verifying expected sizeof(TaskBase)"
static_assert(sizeof(TaskBase) == expected_task_base_size,
^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[2]: *** [core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_ExecPolicy.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_HostSpace.cpp:24:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_MemorySpace.hpp:27:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_SharedAlloc.hpp:21:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core_fwd.hpp:44:1: error: static_assert failed due to requirement 'sizeof(void *) == 8' "Kokkos assumes 64-bit build; i.e., 8-byte pointers"
static_assert(sizeof(void *) == 8,
^             ~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_HostSpace.cpp.o] Error 1
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_Core.cpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core.hpp:43:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core_fwd.hpp:44:1: error: static_assert failed due to requirement 'sizeof(void *) == 8' "Kokkos assumes 64-bit build; i.e., 8-byte pointers"
static_assert(sizeof(void *) == 8,
^             ~~~~~~~~~~~~~~~~~~~
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_Core.cpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Core.hpp:45:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build/KokkosCore_Config_DeclareBackend.hpp:22:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/decl/Kokkos_Declare_OPENMP.hpp:21:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/OpenMP/Kokkos_OpenMP.hpp:40:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_TaskScheduler.hpp:36:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/Kokkos_Future.hpp:34:
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskQueue.hpp:30:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskBase.hpp:229:21: error: no type named 'type' in 'Kokkos::Impl::verify_task_base_size_is_48_note_actual_size_is_<32>'
        TaskBase)>::type verify = {};
        ~~~~~~~~~~~~^~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/kokkos-4d1c6c351490cc8660e2392ead9fce1af7e379f5/core/src/impl/Kokkos_TaskBase.hpp:231:1: error: static_assert failed due to requirement 'sizeof(Kokkos::Impl::TaskBase) == expected_task_base_size' "Verifying expected sizeof(TaskBase)"
static_assert(sizeof(TaskBase) == expected_task_base_size,
^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[2]: *** [core/src/CMakeFiles/kokkoscore.dir/impl/Kokkos_Core.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build'
make[1]: *** [core/src/CMakeFiles/kokkoscore.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_kokkos/kokkos-devel/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
Exit code: 2
Error: Failed to build kokkos-devel: command execution failed

Apparently defines which work fine for non-universal builds fail when flags for i386 and x86_64 are passed together like what Clang does. Need to investigate whether muniversal gonna fix this issue. Otherwise disable universal.

Change History (0)

Note: See TracTickets for help on using tickets.