Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Fail building in local machine #184

Open
OmerHerera opened this issue Oct 17, 2019 · 5 comments
Open

Fail building in local machine #184

OmerHerera opened this issue Oct 17, 2019 · 5 comments

Comments

@OmerHerera
Copy link

  • Version:
    It's the latest version from master, just clone now

  • Platform:
    MacOs Mojave 10.14.6

  • Dependencies installed:

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version

Output:

Xcode 11.0
Build version 11A420a

gcc -v

Output:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

g++ -v

Output:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

python --version

Output:

Python 2.7.10

I'm trying to build node in my local machine but it fails, when running:

make -j4

Output:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C out BUILDTYPE=Release V=0
  touch 0b5405efde7649133c583ad08819719e8f249d56.intermediate
  LD_LIBRARY_PATH=/Users/omerherera/github-src/quic/out/Release/lib.host:/Users/omerherera/github-src/quic/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../tools/v8_gypfiles; mkdir -p /Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated/../../deps/v8/test/torque /Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated /Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated/../../deps/v8/src/builtins /Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated/../../deps/v8/src/objects /Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated/../../deps/v8/third_party/v8/builtins; "/Users/omerherera/github-src/quic/out/Release/torque" ../../deps/v8/src/builtins/arguments.tq ../../deps/v8/src/builtins/array-copywithin.tq ../../deps/v8/src/builtins/array-every.tq ../../deps/v8/src/builtins/array-filter.tq ../../deps/v8/src/builtins/array-find.tq ../../deps/v8/src/builtins/array-findindex.tq ../../deps/v8/src/builtins/array-foreach.tq ../../deps/v8/src/builtins/array-join.tq ../../deps/v8/src/builtins/array-lastindexof.tq ../../deps/v8/src/builtins/array-map.tq ../../deps/v8/src/builtins/array-of.tq ../../deps/v8/src/builtins/array-reduce-right.tq ../../deps/v8/src/builtins/array-reduce.tq ../../deps/v8/src/builtins/array-reverse.tq ../../deps/v8/src/builtins/array-shift.tq ../../deps/v8/src/builtins/array-slice.tq ../../deps/v8/src/builtins/array-some.tq ../../deps/v8/src/builtins/array-splice.tq ../../deps/v8/src/builtins/array-unshift.tq ../../deps/v8/src/builtins/array.tq ../../deps/v8/src/builtins/base.tq ../../deps/v8/src/builtins/bigint.tq ../../deps/v8/src/builtins/boolean.tq ../../deps/v8/src/builtins/collections.tq ../../deps/v8/src/builtins/data-view.tq ../../deps/v8/src/builtins/extras-utils.tq ../../deps/v8/src/builtins/frames.tq ../../deps/v8/src/builtins/growable-fixed-array.tq ../../deps/v8/src/builtins/internal-coverage.tq ../../deps/v8/src/builtins/iterator.tq ../../deps/v8/src/builtins/math.tq ../../deps/v8/src/builtins/object-fromentries.tq ../../deps/v8/src/builtins/object.tq ../../deps/v8/src/builtins/proxy-constructor.tq ../../deps/v8/src/builtins/proxy-delete-property.tq ../../deps/v8/src/builtins/proxy-get-property.tq ../../deps/v8/src/builtins/proxy-get-prototype-of.tq ../../deps/v8/src/builtins/proxy-has-property.tq ../../deps/v8/src/builtins/proxy-is-extensible.tq ../../deps/v8/src/builtins/proxy-prevent-extensions.tq ../../deps/v8/src/builtins/proxy-revocable.tq ../../deps/v8/src/builtins/proxy-revoke.tq ../../deps/v8/src/builtins/proxy-set-property.tq ../../deps/v8/src/builtins/proxy-set-prototype-of.tq ../../deps/v8/src/builtins/proxy.tq ../../deps/v8/src/builtins/reflect.tq ../../deps/v8/src/builtins/regexp-replace.tq ../../deps/v8/src/builtins/regexp.tq ../../deps/v8/src/builtins/string.tq ../../deps/v8/src/builtins/string-endswith.tq ../../deps/v8/src/builtins/string-html.tq ../../deps/v8/src/builtins/string-iterator.tq ../../deps/v8/src/builtins/string-repeat.tq ../../deps/v8/src/builtins/string-slice.tq ../../deps/v8/src/builtins/string-startswith.tq ../../deps/v8/src/builtins/string-substring.tq ../../deps/v8/src/builtins/typed-array-createtypedarray.tq ../../deps/v8/src/builtins/typed-array-every.tq ../../deps/v8/src/builtins/typed-array-filter.tq ../../deps/v8/src/builtins/typed-array-find.tq ../../deps/v8/src/builtins/typed-array-findindex.tq ../../deps/v8/src/builtins/typed-array-foreach.tq ../../deps/v8/src/builtins/typed-array-reduce.tq ../../deps/v8/src/builtins/typed-array-reduceright.tq ../../deps/v8/src/builtins/typed-array-slice.tq ../../deps/v8/src/builtins/typed-array-some.tq ../../deps/v8/src/builtins/typed-array-subarray.tq ../../deps/v8/src/builtins/typed-array.tq ../../deps/v8/third_party/v8/builtins/array-sort.tq ../../deps/v8/test/torque/test-torque.tq ../../deps/v8/src/objects/intl-objects.tq -o "/Users/omerherera/github-src/quic/out/Release/obj/gen/torque-output-root/torque-generated" -v8-root ../../deps/v8
  c++ -o /Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/coleitr.o ../deps/icu-small/source/i18n/coleitr.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DU_I18N_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/omerherera/github-src/quic/out/Release/.deps//Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/coleitr.o.d.raw   -c
  c++ -o /Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/csrutf8.o ../deps/icu-small/source/i18n/csrutf8.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DU_I18N_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/omerherera/github-src/quic/out/Release/.deps//Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/csrutf8.o.d.raw   -c
  c++ -o /Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uitercollationiterator.o ../deps/icu-small/source/i18n/uitercollationiterator.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_DARWIN_USE_64_BIT_INODE=1' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DU_I18N_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common  -Os -gdwarf-2 -mmacosx-version-min=10.10 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++1y -stdlib=libc++ -fno-exceptions -fno-strict-aliasing -MMD -MF /Users/omerherera/github-src/quic/out/Release/.deps//Users/omerherera/github-src/quic/out/Release/obj.target/icui18n/deps/icu-small/source/i18n/uitercollationiterator.o.d.raw   -c
/bin/sh: /Users/omerherera/github-src/quic/out/Release/torque: Operation not permitted
make[1]: *** [0b5405efde7649133c583ad08819719e8f249d56.intermediate] Error 126
make[1]: *** Waiting for unfinished jobs....
rm 0b5405efde7649133c583ad08819719e8f249d56.intermediate
make: *** [node] Error 2

I see in the error: /bin/sh: /Users/omerherera/github-src/quic/out/Release/torque: Operation not permitted

Maybe its the reason, do I need to do something else or gave some special permisssion

Thanks

@lundibundi
Copy link
Member

Perhaps you may have started the build as a different user or under root sometime which lead to files being unavailable to your current user. You can try to clean the output directory (./out) or run make clean (which may require root access).

@OmerHerera
Copy link
Author

@lundibundi - Thanks for your input, looks better after running: make clean, but now getting this error 😞 :

/bin/sh: /Users/omerherera/github-src/quic/out/Release/torque: Operation not permitted
make[1]: *** [0b5405efde7649133c583ad08819719e8f249d56.intermediate] Killed: 9
make[1]: *** Deleting file `0b5405efde7649133c583ad08819719e8f249d56.intermediate'
make[1]: *** Waiting for unfinished jobs....
rm 8cfb45d8d3512a38127ddf9f4a67abcf32a639ba.intermediate
make: *** [node] Error 2

Thanks

@jasnell
Copy link
Member

jasnell commented Jan 6, 2020

still having this issue?

@OmerHerera
Copy link
Author

still having this issue?

Sadly yes, and in the end I leave this without solving the issue so I can't build it locally 😢

@gengjiawen
Copy link
Member

@OmerHerera Will git clean -xdf help ?

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