while running build.py i got below error
CMP-210:tools d.v.v.avinash$ python build.py
ninja: Entering directory `/Users/d.v.v.avinash/Desktop/personal/deno/target/debug'
[1/554] CC obj/build_extra/r...st/ring_primitives/cpu-arm.o
FAILED: obj/build_extra/rust/ring_primitives/cpu-arm.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/cpu-arm.o.d-DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden-Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-arm.c -o obj/build_extra/rust/ring_primitives/cpu-arm.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-arm.c:15:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/cpu.h:64:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
[2/554] CC obj/build_extra/r...mitives/constant_time_test.o
FAILED: obj/build_extra/rust/ring_primitives/constant_time_test.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/constant_time_test.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/constant_time_test.c -o obj/build_extra/rust/ring_primitives/constant_time_test.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/constant_time_test.c:46:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/internal.h:112:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
[3/554] CC obj/build_extra/r.../ring_primitives/cpu-intel.o
FAILED: obj/build_extra/rust/ring_primitives/cpu-intel.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/cpu-intel.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD-DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-intel.c -o obj/build_extra/rust/ring_primitives/cpu-intel.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-intel.c:57:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/cpu.h:64:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
[4/554] CC obj/build_extra/r...g_primitives/cpu-arm-linux.o
FAILED: obj/build_extra/rust/ring_primitives/cpu-arm-linux.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/cpu-arm-linux.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang-instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-arm-linux.c -o obj/build_extra/rust/ring_primitives/cpu-arm-linux.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-arm-linux.c:15:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/cpu.h:64:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
[5/554] CC obj/build_extra/rust/ring_primitives/aes.o
FAILED: obj/build_extra/rust/ring_primitives/aes.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/aes.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION-DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64-Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers-Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/fipsmodule/aes/aes.c -o obj/build_extra/rust/ring_primitives/aes.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/fipsmodule/aes/aes.c:49:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/aes.h:52:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
[6/554] CC obj/build_extra/r...imitives/cpu-aarch64-linux.o
FAILED: obj/build_extra/rust/ring_primitives/cpu-aarch64-linux.o
/Users/d.v.v.avinash/Desktop/personal/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring_primitives/cpu-aarch64-linux.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"346388-5\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include -I../.. -Igen-fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough-Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-user-defined-warnings -Wno-unused-lambda-capture -Wno-null-pointer-arithmetic -Wno-enum-compare-switch -Wno-ignored-pragma-optimize -Wno-defaulted-function-deleted -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -mmacosx-version-min=10.9.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-aarch64-linux.c -o obj/build_extra/rust/ring_primitives/cpu-aarch64-linux.o
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/crypto/cpu-aarch64-linux.c:15:
In file included from ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/cpu.h:64:
../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.13.5/include/GFp/base.h:65:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
Did you: update the third_party submodule and run setup.py successfully?
I cloned repo with git clone --recurse-submodules https://github.com/denoland/deno.git
and setup.py worked fine
Have you installed Xcode Command Line Tools? You can install it with the command xcode-select --install.
CMP-210:~ d.v.v.avinash$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
yes i installed it
Bit different, but I'm also facing build failure in ./tools/build.py:
$ rustc --version
rustc 1.31.0 (abe02cefd 2018-12-04)
$ python -V
Python 2.7.15
$ ./tools/setup.py
...
/Users/jung/workspace/etc/deno/third_party/depot_tools/gn gen /Users/jung/workspace/etc/deno/target/debug
Done. Made 375 targets from 84 files in 2554ms
$ ./tools/build.py
ninja: Entering directory `/Users/workspace/deno/target/debug'
ninja: error: '../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/libc-0.2.46/src/lib.rs', needed by 'rust_crates/liblibc.rlib', missing and no known rule to make it
Did someone see this?
@djKooks I have seen that before,but can't recall the fix. deleting the target directory might work? And ensure all submodules are updated.
Yea - try a clean build.
Have you recently upgraded rust ?
after removing the deno project from my system. re-cloned the project and build.py worked fine for me. i don't know why it is worked.
CC @ry I think we can close this issue
Most helpful comment
CC @ry I think we can close this issue