Skip to content

Issue building binary under Linux #22

@greenozon

Description

@greenozon

For some reason I"m not able to build hollow-hunter on Ubuntu using mingw toolchain

issue:

./mingw_build.sh
....

[ 86%] Linking CXX static library libpe-sieve.a
[ 86%] Built target pe-sieve
[ 88%] Building CXX object CMakeFiles/hollows_hunter.dir/main.cpp.obj
In file included from /home/usr/Downloads/gh/hollows_hunter/params_info/params.h:10,
                 from /home/usr/Downloads/gh/hollows_hunter/main.cpp:25:
/home/usr/Downloads/gh/hollows_hunter/params_info/../term_util.h:7:13: error: ‘mutex’ in namespace ‘std’ does not name a type
    7 | extern std::mutex g_stdOutMutex;
      |             ^~~~~
/home/usr/Downloads/gh/hollows_hunter/params_info/../term_util.h:4:1: note: ‘std::mutex’ is defined in header ‘<mutex>’; did you forget to ‘#include <mutex>’?
    3 | #include <mutex>
  +++ |+#include <mutex>
    4 | #include <iostream>
make[2]: *** [CMakeFiles/hollows_hunter.dir/build.make:76: CMakeFiles/hollows_hunter.dir/main.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:154: CMakeFiles/hollows_hunter.dir/all] Error 2
make: *** [Makefile:146: all] Error 2


some sys info

uname -a
Linux tpo347 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/issue
Ubuntu 22.04.5 LTS \n \l

x86_64-w64-mingw32-g++ --version
x86_64-w64-mingw32-g++ (GCC) 10-win32 20220113
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions