Solidity: Cannot build latest develop on OS X Sierra

Created on 17 Jan 2017  路  4Comments  路  Source: ethereum/solidity

I have tried:

running the install_deps.sh script.

running cmake .. again.

running make -j 2 again.

And each time I'm getting this strange error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:10: fatal error: 'wchar.h' file not found
In file included from /Users/vor0220/solidity/libdevcore/SHA3.cpp:22:
In file included from /Users/vor0220/solidity/libdevcore/SHA3.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:435:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:10: fatal error: 'wchar.h' file not found
#include <wchar.h>  // for mbstate_t
         ^
#include <wchar.h>  // for mbstate_t
         ^
In file included from /Users/vor0220/solidity/libdevcore/CommonData.cpp:22:
In file included from /Users/vor0220/solidity/libdevcore/CommonData.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:265:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__bit_reference:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:626:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:61:10: fatal error: 'string.h' file not found
#include <string.h>
         ^
In file included from /Users/vor0220/solidity/libdevcore/SwarmHash.cpp:20:
In file included from /Users/vor0220/solidity/libdevcore/../libdevcore/SwarmHash.h:22:
In file included from /Users/vor0220/solidity/libdevcore/../libdevcore/FixedHash.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/array:107:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:10: fatal error: 'wchar.h' file not found

Any ideas for a quick fix?

bug

Most helpful comment

Thanks @federicobond the link worked for me. Specifically on macOS Mojave I needed to run:

https://stackoverflow.com/a/55465527/128028

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

All 4 comments

I have not. Thanks for the tip. Probably a problem with xcode when upgrading to Sierra.

Yep...that did the trick. Thanks @federicobond !

Thanks @federicobond the link worked for me. Specifically on macOS Mojave I needed to run:

https://stackoverflow.com/a/55465527/128028

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
Was this page helpful?
0 / 5 - 0 ratings