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

Update OpenSpiel to new libcxxwrap / libjulia #2325

Closed
wants to merge 1 commit into from

Conversation

fingolfin
Copy link
Member

Make some progress towards issue #2160

Should not be merged before @findmyway had a chance to review and comment. Also, there are some questions to discuss:

  1. Which version to use for this JLL? It really shouldn't be the same as right now, as the list of dependencies changes, and that requires a new version.
  2. Which Julia versions should this JLL be made compatible with? Right now, this is built for Julia 1.5.3 or later, and thus only usable in Julia >=1.5. But we could make versions supporting 1.4 or even 1.3 if desired. But that's extra work and complexity, so I first would like to get this version working, and also hear explicitly that Julia 1.3/1.4 support is wanted, before spending time on it.
  3. The two first points are actually somewhat related: in order to support multiple Julia versions, the trick we used in other JLLs is to use the patch level of the version string to indicate the Julia version; that would suggest to reversion this package to something like 0.3.X where X is equal to the one in the Julia version 1.X. However, then packages using this JLL may need to be updated.

-DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DJulia_PREFIX=${prefix} \
../open_spiel/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of sorting these arguments alphabetically and generally aligning them with other JLLs, in the hope that this will help a bit with future maintenance.

]
include("../../L/libjulia/common.jl")
platforms = libjulia_platforms(julia_version)
platforms = expand_cxxstring_abis(platforms)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part of the change expands the number of supported platforms substantially; but many currently don't build, due to various issues. I note that upstream now is at version 0.2.0, so some of them may be fixed there (but of course also new ones may have been introduced).

One is in the upstream C++ code:

 /workspace/srcdir/open_spiel/open_spiel/utils/json.cc:66:64: error: no matching function for call to ‘min(long unsigned int, std::basic_string_view<char>::size_type)’
SPIEL_CHECK_EQ(error, str.substr(0, std::min(30ul, str.size())));

Patching this with a fix is easy enough, but I am not sure it's worth the effort -- is there any interest in supporting more platforms?

@findmyway
Copy link
Contributor

I've made some tests. It seems that I can successfully build this package of v0.2.0 offline on my local machine with clang++-10. But failed with running this script.

Not sure if I need #2301

julia> include("O/OpenSpiel/build_tarballs.jl")
[ Info: Building for x86_64-linux-gnu-cxx11
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Dependency LibOSXUnwind_jll does not have a mapping for artifact LibOSXUnwind for platform Linux(:x86_64, libc=:glibc, compiler_abi=CompilerABI(libgfortran_version=v"5.0.0", cxxstring_abi=:cxx11))
└ @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/fylAz/src/Prefix.jl:434
Downloading artifact: GCCBootstrap-x86_64-linux-gnu.v9.1.0.x86_64-linux-musl.unpacked
######################################################################## 100.0%
Downloading artifact: GCCBootstrap-x86_64-linux-musl.v9.1.0.x86_64-linux-musl.unpacked
######################################################################## 100.0%
[  9%] Building CXX object abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/debugging && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_debugging_internal.dir/internal/address_is_readable.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/debugging/internal/address_is_readable.cc
[ 10%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_scoped_set_env.dir/internal/scoped_set_env.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_scoped_set_env.dir/internal/scoped_set_env.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/scoped_set_env.cc
Scanning dependencies of target absl_strings_internal
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make  -f abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/build.make abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/build
[ 10%] Building CXX object abseil-cpp/absl/types/CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_bad_optional_access.dir/bad_optional_access.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/types/bad_optional_access.cc
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
[ 10%] Building CXX object abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/strings && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_strings_internal.dir/internal/ostringstream.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/strings/internal/ostringstream.cc
Scanning dependencies of target absl_base
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make  -f abseil-cpp/absl/base/CMakeFiles/absl_base.dir/build.make abseil-cpp/absl/base/CMakeFiles/absl_base.dir/build
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
[ 10%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/cycleclock.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_base.dir/internal/cycleclock.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/cycleclock.cc
[ 10%] Linking CXX static library libabsl_random_internal_randen.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/random && /usr/bin/cmake -P CMakeFiles/absl_random_internal_randen.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/random && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_random_internal_randen.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 10%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/spinlock.cc.o
[ 10%] Built target absl_random_internal_randen
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_base.dir/internal/spinlock.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/spinlock.cc
[ 10%] Building CXX object abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/strings && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_strings_internal.dir/internal/utf8.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/strings/internal/utf8.cc
[ 10%] Linking CXX static library libabsl_bad_optional_access.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -P CMakeFiles/absl_bad_optional_access.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_bad_optional_access.dir/link.txt --verbose=false
make  -f abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/build.make abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/depend
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
cd /workspace/srcdir/open_spiel/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /workspace/srcdir/open_spiel/open_spiel /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/types /workspace/srcdir/open_spiel/build /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/DependInfo.cmake --color=
[ 10%] Built target absl_bad_optional_access
make  -f abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/build.make abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/depend
[ 10%] Building CXX object abseil-cpp/absl/strings/CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/strings && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_strings_internal.dir/internal/escaping.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/strings/internal/escaping.cc
Dependee "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/DependInfo.cmake" is newer than depender "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/depend.internal".
Dependee "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/depend.internal".
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
cd /workspace/srcdir/open_spiel/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /workspace/srcdir/open_spiel/open_spiel /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/types /workspace/srcdir/open_spiel/build /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/DependInfo.cmake --color=
Scanning dependencies of target absl_bad_variant_access
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make  -f abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/build.make abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/build
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
[ 10%] Building CXX object abseil-cpp/absl/types/CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_bad_variant_access.dir/bad_variant_access.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/types/bad_variant_access.cc
Dependee "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/DependInfo.cmake" is newer than depender "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/depend.internal".
Dependee "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/workspace/srcdir/open_spiel/build/abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/depend.internal".
Scanning dependencies of target absl_bad_any_cast_impl
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make  -f abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/build.make abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/build
cc1plus: warning: unrecognized command line option ‘-Wno-everything’
make[2]: Entering directory '/workspace/srcdir/open_spiel/build'
make[2]: *** [CMakeFiles/open_spiel_core.dir/build.make:161: CMakeFiles/open_spiel_core.dir/policy.cc.o] Error 1
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
make[1]: *** [CMakeFiles/Makefile2:1011: CMakeFiles/open_spiel_core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] Building CXX object abseil-cpp/absl/types/CMakeFiles/absl_bad_any_cast_impl.dir/bad_any_cast.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/   -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_bad_any_cast_impl.dir/bad_any_cast.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/types/bad_any_cast.cc
[ 10%] Building CXX object abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/debugging && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_debugging_internal.dir/internal/elf_mem_image.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/debugging/internal/elf_mem_image.cc
[ 10%] Linking CXX static library libabsl_scoped_set_env.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -P CMakeFiles/absl_scoped_set_env.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_scoped_set_env.dir/link.txt --verbose=false
[ 10%] Building CXX object abseil-cpp/absl/debugging/CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/debugging && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_debugging_internal.dir/internal/vdso_support.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/debugging/internal/vdso_support.cc
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 10%] Built target absl_scoped_set_env
[ 10%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/sysinfo.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_base.dir/internal/sysinfo.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/sysinfo.cc
[ 10%] Linking CXX static library libabsl_bad_any_cast_impl.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -P CMakeFiles/absl_bad_any_cast_impl.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_bad_any_cast_impl.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 10%] Built target absl_bad_any_cast_impl
[ 10%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/thread_identity.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_base.dir/internal/thread_identity.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/thread_identity.cc
[ 11%] Linking CXX static library libabsl_throw_delegate.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -P CMakeFiles/absl_throw_delegate.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_throw_delegate.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 11%] Built target absl_throw_delegate
[ 12%] Building CXX object abseil-cpp/absl/base/CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /opt/bin/x86_64-linux-gnu-g++ --sysroot=/opt/x86_64-linux-gnu/x86_64-linux-gnu/sys-root/  -D__CLANG_SUPPORT_DYN_ANNOTATION__ -I/workspace/srcdir/open_spiel/open_spiel/abseil-cpp  -Wno-everything -DBUILD_WITH_HANABI -DBUILD_WITH_JULIA -fPIC   -Wall -Wextra -Wcast-qual -Wconversion-null -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -Wno-missing-field-initializers -Wno-sign-compare -std=gnu++17 -o CMakeFiles/absl_base.dir/internal/unscaledcycleclock.cc.o -c /workspace/srcdir/open_spiel/open_spiel/abseil-cpp/absl/base/internal/unscaledcycleclock.cc
[ 13%] Linking CXX static library libabsl_bad_variant_access.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -P CMakeFiles/absl_bad_variant_access.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/types && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_bad_variant_access.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 13%] Built target absl_bad_variant_access
[ 13%] Linking CXX static library libabsl_debugging_internal.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/debugging && /usr/bin/cmake -P CMakeFiles/absl_debugging_internal.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/debugging && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_debugging_internal.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 13%] Built target absl_debugging_internal
[ 13%] Linking CXX static library libabsl_strings_internal.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/strings && /usr/bin/cmake -P CMakeFiles/absl_strings_internal.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/strings && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_strings_internal.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 13%] Built target absl_strings_internal
[ 13%] Linking CXX static library libabsl_base.a
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -P CMakeFiles/absl_base.dir/cmake_clean_target.cmake
cd /workspace/srcdir/open_spiel/build/abseil-cpp/absl/base && /usr/bin/cmake -E cmake_link_script CMakeFiles/absl_base.dir/link.txt --verbose=false
make[2]: Leaving directory '/workspace/srcdir/open_spiel/build'
[ 13%] Built target absl_base
make[1]: Leaving directory '/workspace/srcdir/open_spiel/build'
make: *** [Makefile:161: all] Error 2
Previous command exited with 2
ERROR: LoadError: Build for OpenSpiel on x86_64-linux-gnu-cxx11 did not complete successfully

Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] autobuild(::AbstractString, ::AbstractString, ::VersionNumber, ::Array{var"#s648",1} where var"#s648"<:BinaryBuilderBase.AbstractSource, ::AbstractString, ::Array{T,1} where T, ::Array{var"#s647",1} where var"#s647"<:Product, ::Array{var"#s646",1} where var"#s646"<:BinaryBuilderBase.AbstractDependency; verbose::Bool, debug::Bool, skip_audit::Bool, ignore_audit_errors::Bool, autofix::Bool, code_dir::Union{Nothing, String}, require_license::Bool, kwargs::Any) at /home/tj/.julia/packages/BinaryBuilder/OMMHj/src/AutoBuild.jl:714
 [3] build_tarballs(::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any, ::Any; kwargs::Any) at /home/tj/.julia/packages/BinaryBuilder/OMMHj/src/AutoBuild.jl:247
 [4] top-level scope at /mnt/E4E0A9C0E0A998F6/github/Yggdrasil/O/OpenSpiel/build_tarballs.jl:62
 [5] include(::String) at ./client.jl:457
 [6] top-level scope at REPL[1]:1
in expression starting at /mnt/E4E0A9C0E0A998F6/github/Yggdrasil/O/OpenSpiel/build_tarballs.jl:62

@fingolfin
Copy link
Member Author

To test this locally, you need:

  1. a Julia master branch build, but one that is "old enough" (see Convert HelFEM to use new libcxxwrap / libjulia #2320 (comment))
  2. development versions of BinaryBuilder and BinaryBuilderBase: the easiest way is to simply use the Project.toml which Yggdrasil uses, which is in the .ci dir.

I usually do something like this, where julia-for-bb points to the "right" Julia executable (I keep on in addition to one based on the latest Julia master branch).

cd Yggdrasil/O/OpenSpiel/
julia-for-bb --color=yes --project=../../.ci/ build_tarballs.jl --debug --verbose x86_64-linux-gnu

@fingolfin
Copy link
Member Author

You can of course also forgo building locally and simply let the Yggdrasil bots do the job: you can open your own PR for this package, by starting with the content of my commit and then editing it as you like, e.g. by switching it to use version 0.2.0.

@fingolfin fingolfin mentioned this pull request Jan 7, 2021
@findmyway
Copy link
Contributor

You can of course also forgo building locally and simply let the Yggdrasil bots do the job: you can open your own PR for this package, by starting with the content of my commit and then editing it as you like, e.g. by switching it to use version 0.2.0.

Thanks! I'll give it a try this weekend.

@fingolfin
Copy link
Member Author

@findmyway any news on this?

@findmyway
Copy link
Contributor

Hi @fingolfin ,

Sorry it was delayed due to some personal issues. Working on it now.

@findmyway
Copy link
Contributor

@ViralBShah ViralBShah closed this Apr 18, 2021
@fingolfin fingolfin deleted the mh/OpenSpiel branch July 3, 2021 20:30
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

Successfully merging this pull request may close these issues.

3 participants