eos icon indicating copy to clipboard operation
eos copied to clipboard

Build error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Open dominic-healid opened this issue 8 years ago • 7 comments

The first time build I got that.

I'm running this on MacOS 10.13.4

Any advise?

dominic-healid avatar Jun 05 '18 03:06 dominic-healid

@dominic-healid Please run the following commands and paste the full output here:

cd /path/to/eos rm -rf build/ git checkout master git pull git submodule update --init --recursive ./eosio_build.sh

pacificcode avatar Jun 05 '18 11:06 pacificcode

@pacificcode thanks for the response!

Got new response.

Uninstalling Boost Version 106400. Error: Refusing to uninstall /usr/local/Cellar/boost/1.64.0_1 because it is required by solidity, which is currently installed. You can override this and force removal with: brew uninstall --ignore-dependencies boost Unable to remove boost libraries at this time. 0 Exiting now.

Is there anyway to install build this without uninstalling boost?

dominic-healid avatar Jun 05 '18 11:06 dominic-healid

@dominic-healid EOSIO requires boost 1.67. To upgrade your boost installation run:

brew upgrade boost

pacificcode avatar Jun 05 '18 12:06 pacificcode

I'm now getting this.

In file included from /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
                 from src/mongoc/mongoc-stream-tls-secure-transport-private.h:2,
                 from src/mongoc/mongoc-secure-transport-private.h:27,
                 from src/mongoc/mongoc-stream-tls.c:38:
/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
  char bytes[kAuthorizationExternalFormLength];
       ^
In file included from /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
                 from src/mongoc/mongoc-rand-common-crypto.c:25:
/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
  char bytes[kAuthorizationExternalFormLength];
       ^
cc1: warning: unrecognized command line option '-Wno-unneeded-internal-declaration'
make[1]: *** [src/mongoc/libmongoc_la-mongoc-rand-common-crypto.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: warning: unrecognized command line option '-Wno-unneeded-internal-declaration'
make[1]: *** [src/mongoc/libmongoc_la-mongoc-stream-tls.lo] Error 1
In file included from /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
                 from src/mongoc/mongoc-stream-tls-secure-transport-private.h:2,
                 from src/mongoc/mongoc-secure-transport-private.h:27,
                 from src/mongoc/mongoc-ssl.c:32:
/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
  char bytes[kAuthorizationExternalFormLength];
       ^
cc1: warning: unrecognized command line option '-Wno-unneeded-internal-declaration'
make[1]: *** [src/mongoc/libmongoc_la-mongoc-ssl.lo] Error 1
In file included from /System/Library/Frameworks/Security.framework/Headers/AuthSession.h:32:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:43,
                 from src/mongoc/mongoc-stream-tls-secure-transport-private.h:2,
                 from src/mongoc/mongoc-secure-transport-private.h:27,
                 from src/mongoc/mongoc-secure-transport.c:28:
/System/Library/Frameworks/Security.framework/Headers/Authorization.h:193:7: error: variably modified 'bytes' at file scope
  char bytes[kAuthorizationExternalFormLength];
       ^
src/mongoc/mongoc-secure-transport.c: In function '_mongoc_secure_transport_import_pem':
src/mongoc/mongoc-secure-transport.c:181:4: error: unknown type name 'SecTransformRef'
    SecTransformRef sec_transform;
    ^
src/mongoc/mongoc-secure-transport.c:211:20: warning: implicit declaration of function 'SecTransformCreateReadTransformWithReadStream' [-Wimplicit-function-declaration]
    sec_transform = SecTransformCreateReadTransformWithReadStream (read_stream);
                    ^
src/mongoc/mongoc-secure-transport.c:212:14: warning: implicit declaration of function 'SecTransformExecute' [-Wimplicit-function-declaration]
    dataref = SecTransformExecute (sec_transform, &error);
              ^
src/mongoc/mongoc-secure-transport.c:212:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    dataref = SecTransformExecute (sec_transform, &error);
            ^
src/mongoc/mongoc-secure-transport.c:222:18: warning: passing argument 1 of 'CFRelease' makes pointer from integer without a cast [-Wint-conversion]
       CFRelease (sec_transform);
                  ^
In file included from /System/Library/Frameworks/Security.framework/Headers/SecBase.h:28:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:27,
                 from src/mongoc/mongoc-stream-tls-secure-transport-private.h:2,
                 from src/mongoc/mongoc-secure-transport-private.h:27,
                 from src/mongoc/mongoc-secure-transport.c:28:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:658:6: note: expected 'CFTypeRef {aka const void *}' but argument is of type 'int'
 void CFRelease(CFTypeRef cf);
      ^
src/mongoc/mongoc-secure-transport.c:235:15: warning: passing argument 1 of 'CFRelease' makes pointer from integer without a cast [-Wint-conversion]
    CFRelease (sec_transform);
               ^
In file included from /System/Library/Frameworks/Security.framework/Headers/SecBase.h:28:0,
                 from /System/Library/Frameworks/Security.framework/Headers/Security.h:27,
                 from src/mongoc/mongoc-stream-tls-secure-transport-private.h:2,
                 from src/mongoc/mongoc-secure-transport-private.h:27,
                 from src/mongoc/mongoc-secure-transport.c:28:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:658:6: note: expected 'CFTypeRef {aka const void *}' but argument is of type 'int'
 void CFRelease(CFTypeRef cf);
      ^
src/mongoc/mongoc-secure-transport.c: At top level:
cc1: warning: unrecognized command line option '-Wno-unneeded-internal-declaration'
make[1]: *** [src/mongoc/libmongoc_la-mongoc-secure-transport.lo] Error 1
make: *** [all-recursive] Error 1
	Error compiling MongoDB C driver.
	Exiting now.

dominic-healid avatar Jun 06 '18 00:06 dominic-healid

@dominic-healid I need a little more information. Can you run the following commands and paste the full output here?

cd /path/to/eos rm -rf build/ git checkout master git pull git submodule update --init --recursive ./eosio_build.sh

pacificcode avatar Jun 07 '18 21:06 pacificcode

Is this issue fixed?

taokayan avatar Jun 25 '18 03:06 taokayan

If you still have the problem and wish to discuss further, please post it in https://eosio.stackexchange.com. To keep things organized, Github issues are intended for bugs reporting and features tracking, and Stack Exchange is the right place for any technical support discussions. Thanks!

sergmetelin avatar Nov 02 '18 11:11 sergmetelin