Giter Site home page Giter Site logo

Comments (10)

wxwisiasdf avatar wxwisiasdf commented on June 18, 2024 1

Don't build on the root of the source code, do:
mkdir -p build
cd build
cmake -DE3D_BACKEND_OPENGL=1 -DNO_COPY_MODS=1 ..

from symphony-of-empires.

grigory-bogush avatar grigory-bogush commented on June 18, 2024

Don't build on the root of the source code, do: mkdir -p build cd build cmake -DE3D_BACKEND_OPENGL=1 -DNO_COPY_MODS=1 ..

Oh, thanks! I see. Could readme be updated perhaps to include this detail?

from symphony-of-empires.

wxwisiasdf avatar wxwisiasdf commented on June 18, 2024

Don't build on the root of the source code, do: mkdir -p build cd build cmake -DE3D_BACKEND_OPENGL=1 -DNO_COPY_MODS=1 ..

Oh, thanks! I see. Could readme be updated perhaps to include this detail?

Sure :)

from symphony-of-empires.

grigory-bogush avatar grigory-bogush commented on June 18, 2024

Now I got an issue compiling a file.
Fixed it by adding #include <array> at the top of symphony-of-empires/eng3d/eng3d/utils.hpp

[ 39%] Building CXX object CMakeFiles/SymphonyOfEmpires.dir/game/src/server/lua_api.cpp.o
In file included from /home/grigory/Documents/projects/symphony-of-empires/game/src/server/lua_api.cpp:33:
/home/grigory/Documents/projects/symphony-of-empires/eng3d/eng3d/utils.hpp: In function ‘constexpr T std::byteswap(T)’:
/home/grigory/Documents/projects/symphony-of-empires/eng3d/eng3d/utils.hpp:49:56: error: ‘array’ is not a member of ‘std’
   49 |         auto value_representation = std::bit_cast<std::array<std::byte, sizeof(T)>>(value);
      |                                                        ^~~~~
/home/grigory/Documents/projects/symphony-of-empires/eng3d/eng3d/utils.hpp:35:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
   34 | #   include <algorithm>
  +++ |+#include <array>
   35 | namespace std {
/home/grigory/Documents/projects/symphony-of-empires/eng3d/eng3d/utils.hpp:49:42: error: parse error in template argument list
   49 |         auto value_representation = std::bit_cast<std::array<std::byte, sizeof(T)>>(value);

from symphony-of-empires.

grigory-bogush avatar grigory-bogush commented on June 18, 2024

Another error :(

[ 46%] Built target luac
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/backend.cpp.o
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/backref.cpp.o
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/frontend.cpp.o
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/large_objects.cpp.o
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/tbbmalloc.cpp.o
[ 46%] Building CXX object _deps/tbb-build/src/tbbmalloc/CMakeFiles/tbbmalloc.dir/__/tbb/itt_notify.cpp.o
[ 46%] Linking C shared library ../../../../gnu_12.2_cxx20_64_relwithdebinfo/libtbbmalloc.so
[ 46%] Built target tbbmalloc
[ 47%] Building CXX object _deps/tbb-build/src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/function_replacement.cpp.o
[ 47%] Building CXX object _deps/tbb-build/src/tbbmalloc_proxy/CMakeFiles/tbbmalloc_proxy.dir/proxy.cpp.o
[ 47%] Linking CXX shared library ../../../../gnu_12.2_cxx20_64_relwithdebinfo/libtbbmalloc_proxy.so
[ 47%] Built target tbbmalloc_proxy
[ 47%] Building CXX object _deps/tbb-build/test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o
In file included from /home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/concurrent_vector.h:24,
                 from /home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/enumerable_thread_specific.h:26,
                 from /home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/test/common/utils_concurrency_limit.h:25,
                 from /home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/test/tbb/test_tick_count.cpp:19:
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/detail/_segment_table.h: In instantiation of ‘tbb::detail::d1::segment_table<T, Allocator, DerivedType, PointersPerEmbeddedTable>::segment_table(const allocator_type&) [with T = tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>; Allocator = tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >; DerivedType = tbb::detail::d1::concurrent_vector<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>, tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> > >; long unsigned int PointersPerEmbeddedTable = 3; allocator_type = tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >]’:
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/concurrent_vector.h:284:26:   required from ‘tbb::detail::d1::concurrent_vector<T, Allocator>::concurrent_vector(const allocator_type&) [with T = tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>; Allocator = tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >; allocator_type = tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >]’
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/concurrent_vector.h:281:61:   required from ‘tbb::detail::d1::concurrent_vector<T, Allocator>::concurrent_vector() [with T = tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>; Allocator = tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >]’
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/enumerable_thread_specific.h:843:5:   required from ‘tbb::detail::d1::enumerable_thread_specific<T, Allocator, ETS_key_type>::enumerable_thread_specific() [with T = bool; Allocator = tbb::detail::d1::cache_aligned_allocator<bool>; tbb::detail::d1::ets_key_usage_type ETS_key_type = tbb::detail::d1::ets_no_key]’
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/test/common/utils_concurrency_limit.h:247:92:   required from here
/home/grigory/Documents/exp-projects/symphony-of-empires/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/detail/_segment_table.h:63:63: error: member ‘tbb::detail::d1::segment_table<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>, tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> >, tbb::detail::d1::concurrent_vector<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128>, tbb::detail::d1::cache_aligned_allocator<tbb::detail::d0::padded<tbb::detail::d1::ets_element<bool>, 128> > >, 3>::my_embedded_table’ is used uninitialized [-Werror=uninitialized]
   63 |         : my_segment_table_allocator(alloc), my_segment_table(my_embedded_table)
      |                                                               ^~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
make[2]: *** [_deps/tbb-build/test/CMakeFiles/test_tick_count.dir/build.make:76: _deps/tbb-build/test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1367: _deps/tbb-build/test/CMakeFiles/test_tick_count.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

from symphony-of-empires.

grigory-bogush avatar grigory-bogush commented on June 18, 2024

Perhaps I have a different compiler version or some of the depenencies?

from symphony-of-empires.

wxwisiasdf avatar wxwisiasdf commented on June 18, 2024

Perhaps I have a different compiler version or some of the depenencies?

-Werror is enabled, -Werror shouldn't be enabled hmm

from symphony-of-empires.

wxwisiasdf avatar wxwisiasdf commented on June 18, 2024

Perhaps I have a different compiler version or some of the depenencies?

The solution seems to be to use gcc-10, aka cmake -DCMAKE_C_COMPILER="gcc-10"

source: oneapi-src/oneTBB#370

from symphony-of-empires.

grigory-bogush avatar grigory-bogush commented on June 18, 2024

Thanks. It appears that downgrading gcc and g++ to 10 worked for me

from symphony-of-empires.

wxwisiasdf avatar wxwisiasdf commented on June 18, 2024

Good that it's solved now :)

from symphony-of-empires.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.