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

Error when compiling on OSx High Sierra #111

Open
hugolm84 opened this issue May 2, 2018 · 5 comments
Open

Error when compiling on OSx High Sierra #111

hugolm84 opened this issue May 2, 2018 · 5 comments

Comments

@hugolm84
Copy link

hugolm84 commented May 2, 2018

Im trying to compile on a fresh OSx High Sierra, but get the following issues

hugo at Hugos-MBP in ~/Devel/LucenePlusPlus/build on master [!]
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.4
BuildVersion:	17E199
hugo at Hugos-MBP in ~/Devel/LucenePlusPlus/build on master [!]
$ cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-llvm.cmake"
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- 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: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cotire 1.6.6 loaded.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   regex
--   system
--   thread
--   chrono
--   atomic
CMake Warning (dev) at cmake/cotire.cmake:378 (get_directory_property):
  Policy CMP0059 is not set: Do not treat DEFINITIONS as a built-in directory
  property.  Run "cmake --help-policy CMP0059" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  cmake/cotire.cmake:1675 (cotire_get_target_compile_flags)
  cmake/cotire.cmake:2406 (cotire_check_precompiled_header_support)
  cmake/cotire.cmake:2819 (cotire_choose_target_languages)
  cmake/cotire.cmake:2972 (cotire_target)
  src/core/CMakeLists.txt:42 (cotire)
This warning is for project developers.  Use -Wno-dev to suppress it.
....
....
** Build Summary **
  Version:        3.0.7
  Prefix:         /usr/local
  Build Type:     Release
  Architecture:   x86_64
  System:         Darwin
  Boost Include:  /usr/local/include
  Boost Library:  /usr/local/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/hugo/Devel/LucenePlusPlus/build

Then running make:


hugo at Hugos-MBP in ~/Devel/LucenePlusPlus/build on master [!]
$ make
[  1%] Generating C unity source src/core/cotire/lucene++_C_unity.c
[  1%] Generating CXX prefix source src/core/cotire/lucene++_CXX_prefix.cxx
[  1%] Generating CXX prefix header src/core/cotire/lucene++_CXX_prefix.hxx
[  1%] Building CXX precompiled header src/core/cotire/lucene++_CXX_prefix.hxx.pch
[  1%] Generating C prefix source src/core/cotire/lucene++_C_prefix.c
[  1%] Generating C prefix header src/core/cotire/lucene++_C_prefix.h
[  1%] Building C precompiled header src/core/cotire/lucene++_C_prefix.h.pch
Scanning dependencies of target lucene++
[  1%] Building CXX object src/core/CMakeFiles/lucene++.dir/search/BooleanClause.cpp.o
[  1%] Building CXX object src/core/CMakeFiles/lucene++.dir/search/BooleanQuery.cpp.o
[  1%] Building CXX object src/core/CMakeFiles/lucene++.dir/search/BooleanScorer.
....
....
[ 52%] Linking CXX shared library liblucene++.dylib
[ 52%] Built target lucene++
[ 52%] Generating C unity source src/contrib/cotire/lucene++-contrib_C_unity.c
[ 52%] Generating CXX unity source src/contrib/cotire/lucene++-contrib_CXX_unity.cxx
[ 52%] Generating CXX prefix source src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx
[ 52%] Generating CXX prefix header src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx
[ 52%] Building CXX precompiled header src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx.pch
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:6:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:133:77: error: use of undeclared identifier 'wcschr'
wchar_t* __libcpp_wcschr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcschr(__s, __c);}
                                                                            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:140:87: error: use of undeclared identifier 'wcspbrk'
wchar_t* __libcpp_wcspbrk(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcspbrk(__s1, __s2);}
                                                                                      ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:147:78: error: use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsrchr(const wchar_t* __s, wchar_t __c) {return (wchar_t*)wcsrchr(__s, __c);}
                                                                             ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:135:16: note: 'wcschr' declared here
const wchar_t* wcschr(const wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:154:86: error: use of undeclared identifier 'wcsstr'; did you mean 'wcschr'?
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}
                                                                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:137:16: note: 'wcschr' declared here
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:154:86: error: no matching function for call to 'wcschr'
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}
                                                                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:137:16: note: candidate disabled: <no message provided>
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
               ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:154:93: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'const wchar_t *'
wchar_t* __libcpp_wcsstr(const wchar_t* __s1, const wchar_t* __s2) {return (wchar_t*)wcsstr(__s1, __s2);}
                                                                                            ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:137:38: note: passing argument to parameter '__s' here
      wchar_t* wcschr(      wchar_t* __s, wchar_t __c) {return __libcpp_wcschr(__s, __c);}
                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:161:60: error: unknown type name 'size_t'
wchar_t* __libcpp_wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return (wchar_t*)wmemchr(__s, __c, __n);}
                                                           ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:163:57: error: unknown type name 'size_t'
const wchar_t* wmemchr(const wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}
                                                        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/wchar.h:165:57: error: unknown type name 'size_t'
      wchar_t* wmemchr(      wchar_t* __s, wchar_t __c, size_t __n) {return __libcpp_wmemchr(__s, __c, __n);}
                                                        ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:215:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:176:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    streampos;
             ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:215:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:177:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    wstreampos;
             ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:215:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:179:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    u16streampos;
             ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:215:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:180:14: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
typedef fpos<mbstate_t>    u32streampos;
             ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:169:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:81:13: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
    typedef mbstate_t state_type;
            ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:169:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:205:13: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
    typedef mbstate_t state_type;
            ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:169:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:292:13: error: unknown type name 'wint_t'
    typedef wint_t    int_type;
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:295:13: error: unknown type name 'mbstate_t'; did you mean '__mbstate_t'?
    typedef mbstate_t state_type;
            ^
/usr/include/i386/_types.h:79:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:169:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:311:47: error: use of undeclared identifier 'wmemmove'; did you mean 'memmove'?
        {return __n == 0 ? __s1 : (char_type*)wmemmove(__s1, __s2, __n);}
                                              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:71:9: note: 'memmove' declared here
using ::memmove;
        ^
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx:4:
In file included from /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.cxx:8:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:138:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:470:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:169:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:315:50: error: use of undeclared identifier 'wmemcpy'; did you mean 'memcpy'?
            return __n == 0 ? __s1 : (char_type*)wmemcpy(__s1, __s2, __n);
                                                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:70:9: note: 'memcpy' declared here
using ::memcpy;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
CMake Error at /Users/hugo/Devel/LucenePlusPlus/cmake/cotire.cmake:1622 (message):
  cotire: error 1 precompiling
  /Users/hugo/Devel/LucenePlusPlus/build/src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx.
Call Stack (most recent call first):
  /Users/hugo/Devel/LucenePlusPlus/cmake/cotire.cmake:3090 (cotire_precompile_prefix_header)


make[2]: *** [src/contrib/cotire/lucene++-contrib_CXX_prefix.hxx.pch] Error 1
make[1]: *** [src/contrib/CMakeFiles/lucene++-contrib.dir/all] Error 2
make: *** [all] Error 2

Pointers appreciated, though I'll try to continue investigate this.

@pcmoritz
Copy link

I wonder what your solution was. Removing all the precompiled header stuff (cotire) and also removing the wctype.h and wchar.h includes from LucenePlusPlus/include/Lucene.h fixes it for me.

@hugolm84
Copy link
Author

hugolm84 commented Jul 8, 2018

Actually, the only "solution" I have found that is sensible is to compile with GCC. No changes necessary.

If I ifndef APPLE for whcar/wctype I get FLT_MAX FLT_MIN undefined errors, which is only present if I build the whole project in clang. If I compile the erroneous target (gtest) by it's lonesome, there is no issue.

@pcmoritz
Copy link

Here is my fix that I mentioned above (also some random client library): pcmoritz@889ee48

@ghost
Copy link

ghost commented Nov 12, 2018

I don't think to remove the cotire is a good approach to solve the issue. Here is my fix (https://github.com/mazl123321/LucenePlusPlus/commit/885ba746858c86d588895d705002ff7a343403f3)

Which fixes the following issues:

  1. fix whcar/wctype, FLT_MAX/FLT_MIN issues.
  2. fix the cmake Policy warnings
  3. fix the -lboost_system issues

@Lelelo1
Copy link

Lelelo1 commented Aug 29, 2021

I am no macOS Big Sur. And It did none work to build with cmake:

ccmake .
make

It worked with gcc like hugolm84 said. I used this commands from SO: https://stackoverflow.com/questions/24380456/how-can-i-make-cmake-use-gcc-instead-of-clang-on-mac-os-x

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

No branches or pull requests

3 participants