Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

make failed on Mac #318

Open
heyonly opened this issue Jun 13, 2020 · 4 comments
Open

make failed on Mac #318

heyonly opened this issue Jun 13, 2020 · 4 comments

Comments

@heyonly
Copy link

heyonly commented Jun 13, 2020

[10/524] Building CXX object Libraries/acdriver/CMakeFiles/acdriver.dir/Sources/Compile/AppIconSet.cpp.o
FAILED: Libraries/acdriver/CMakeFiles/acdriver.dir/Sources/Compile/AppIconSet.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Dacdriver_EXPORTS -I../Libraries/acdriver/Headers -I../Libraries/xcassets/Headers -I../Libraries/libutil/Headers -I../Libraries/ext/Headers -I../Libraries/plist/Headers -I../Libraries/process/Headers -I../Libraries/graphics/Headers -I../Libraries/dependency/Headers -I../Libraries/libbom/Headers -I../Libraries/libcar/Headers -std=c++11 -fno-rtti -fno-exceptions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fPIC -Wall -Werror -fcolor-diagnostics -MD -MT Libraries/acdriver/CMakeFiles/acdriver.dir/Sources/Compile/AppIconSet.cpp.o -MF Libraries/acdriver/CMakeFiles/acdriver.dir/Sources/Compile/AppIconSet.cpp.o.d -o Libraries/acdriver/CMakeFiles/acdriver.dir/Sources/Compile/AppIconSet.cpp.o -c ../Libraries/acdriver/Sources/Compile/AppIconSet.cpp
In file included from ../Libraries/acdriver/Sources/Compile/AppIconSet.cpp:9:
In file included from ../Libraries/acdriver/Headers/acdriver/Compile/AppIconSet.h:12:
In file included from ../Libraries/xcassets/Headers/xcassets/Asset/Asset.h:15:
../Libraries/libutil/Headers/libutil/Base.h:24:32: error: 'ptr_fun<int, int>' is deprecated [-Werror,-Wdeprecated-declarations]
std::not1(std::ptr_fun<int, int>(::isspace))));
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1100:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
# define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# define _LIBCPP_DEPRECATED attribute ((deprecated))
^
In file included from ../Libraries/acdriver/Sources/Compile/AppIconSet.cpp:9:
In file included from ../Libraries/acdriver/Headers/acdriver/Compile/AppIconSet.h:12:
In file included from ../Libraries/xcassets/Headers/xcassets/Asset/Asset.h:15:
../Libraries/libutil/Headers/libutil/Base.h:32:32: error: 'ptr_fun<int, int>' is deprecated [-Werror,-Wdeprecated-declarations]
std::not1(std::ptr_fun<int, int>(::isspace))).base(),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1100:1: note: 'ptr_fun<int, int>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:1054:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
# define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:1043:48: note: expanded from macro '_LIBCPP_DEPRECATED'
# 318 define _LIBCPP_DEPRECATED attribute ((deprecated))
^
2 errors generated.
ninja: build stopped: subcommand failed.
make: *** [all] Error 1

$ cmake --version
cmake version 3.17.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ ninja --version
1.10.0

@YanjieZhao
Copy link

me too

@alexandre-janniaux
Copy link

Hi, remove -Werror from CMakeLists.txt.

@hanwencheng
Copy link

get following errors after removing -Werror

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;

@alexandre-janniaux
Copy link

get following errors after removing -Werror

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;

Link the c++.tbd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants