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

Build error with GCC 8.x.y #6

Closed
dmitry-trefilov opened this issue Jul 28, 2021 · 1 comment · Fixed by #7
Closed

Build error with GCC 8.x.y #6

dmitry-trefilov opened this issue Jul 28, 2021 · 1 comment · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@dmitry-trefilov
Copy link

Describe the bug
Hi all.
I have tried to build project on my local machine but it doesn't compile.

To Reproduce

$ cmake -Wdev -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBOOST_LIBRARYDIR=G:\\_LIBS\\boost_1_70_0\\stage\\lib -DBoost_INCLUDE_DIR=G:\\_LIBS\\boost_1_70_0 -DBOOST_ROOT=G:\\_LIBS\\boost_1_70_0\\boost -DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.12.0\\5.15.0\\mingw81_64\\bin -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/gcc.exe
-- Check for working C compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/g++.exe
-- Check for working CXX compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/g++.exe
-- Boost static libs: ON
-- Boost multithreaded libs: ON
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Using compiler: C:/Qt/Qt5.12.0/Tools/mingw810_64/bin/g++.exe
-- Boost static libs: ON
-- Boost multithreaded libs: ON
-- Found Boost: G:\_LIBS\boost_1_70_0 (found version "1.70.0") found components: filesystem system thread chrono date_time atomic
-- x64 configuration
-- Degate version: 2.1.0-alpha.1
-- Release date: unreleased
-- Doxygen not found
-- Configuring done
-- Generating done
-- Build files have been written to: G:/personal_projects/Degate/rel_win_build

$ make -j VERBOSE=1

Expected behavior
Project should be compiled without any error.

Screenshots

In file included from C:/Qt/Qt5.12.0/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/map:60,
                 from G:/personal_projects/Degate/src/Globals.h:29,
                 from G:/personal_projects/Degate/src/Core/Image/Image.h:45,
                 from G:/personal_projects/Degate/src/Core/LogicModel/PlacedLogicModelObject.h:26,
                 from G:/personal_projects/Degate/src/Core/LogicModel/ObjectSet.h:25,
                 from G:/personal_projects/Degate/src/Core/LogicModel/ObjectSet.cc:24:
C:/Qt/Qt5.12.0/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_tree.h: In instantiation of 'class std::_Rb_tree<std::shared_ptr<degate::GatePort>, std::shared_ptr<degate::GatePort>, std::_Identity<std::shared_ptr<degate::GatePort> >, degate::LMOCompare, std::allocator<std::shared_ptr<degate::GatePort> > >':
C:/Qt/Qt5.12.0/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_set.h:133:17:   required from 'class std::set<std::shared_ptr<degate::GatePort>, degate::LMOCompare>'
G:/personal_projects/Degate/src/Core/LogicModel/Gate/Gate.h:60:53:   required from here
C:/Qt/Qt5.12.0/Tools/mingw810_64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/stl_tree.h:452:21: error: static assertion failed: comparison object must be invocable with two arguments of key type
       static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make.exe[2]: *** [CMakeFiles/DegateCore.dir/src/Core/LogicModel/ObjectSet.cc.obj] Error 1
make.exe[2]: Leaving directory `G:/personal_projects/Degate/win_build'
make.exe[1]: *** [CMakeFiles/DegateCore.dir/all] Error 2
make.exe[1]: Leaving directory `G:/personal_projects/Degate/win_build'
make.exe: *** [all] Error 2

Desktop (please complete the following information):

  • OS: Win7 x64
  • Version: 2.1.0-alpha.1
  • GCC (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
  • Qt 5.15.0

Additional context
Here seems to be the same error.

dmitry-trefilov pushed a commit to dmitry-trefilov/Degate that referenced this issue Jul 28, 2021
* Due to GCC 8.x.y compiler static assertion fail (fixes DegateCommunity#6)
@DorianBDev DorianBDev added the bug Something isn't working label Jul 28, 2021
@DorianBDev
Copy link
Member

Thank you for taking the time to contribute to the project! Have a nice evening :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants