My website is running locally but I can't deploy it

My website is running locally but once deployed to netlify I got this message: Building site”: build script returned non-zero exit code:1.

Here is the Deploy log Netlify App

Could someone help me please ?

Unfortunately the deploy log is not available.

Can you post the build log here?

No duplicated please, @Mandjo: Building site": build script returned non-zero exit code:1

@jasiqli, for context, the deploy logs are:

5:46:19 AM: build-image version: 099264affa13d33ffbaea4ccf963ddbead423c30 (focal)
5:46:19 AM: buildbot version: 099264affa13d33ffbaea4ccf963ddbead423c30
5:46:19 AM: Fetching cached dependencies
5:46:19 AM: Failed to fetch cache, continuing with build
5:46:19 AM: Starting to prepare the repo for build
5:46:20 AM: No cached dependencies found. Cloning fresh repo
5:46:20 AM: git clone --filter=blob:none https://github.com/mandjo2010/monsite2
5:46:20 AM: Preparing Git Reference refs/heads/main
5:46:24 AM: Parsing package.json dependencies
5:46:26 AM: Starting build script
5:46:26 AM: Installing dependencies
5:46:26 AM: Python version set to 2.7
5:46:26 AM: Attempting Node.js version '8.17.0' from .nvmrc
5:46:26 AM: Downloading and installing node v8.17.0...
5:46:26 AM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz...
5:46:26 AM: Computing checksum with sha256sum
5:46:26 AM: Checksums matched!
5:46:28 AM: Now using node v8.17.0 (npm v6.13.4)
5:46:28 AM: Started restoring cached build plugins
5:46:28 AM: Finished restoring cached build plugins
5:46:28 AM: Attempting Ruby version 2.7.1, read from environment
5:46:28 AM: Required ruby-2.7.1 is not installed - installing.
5:46:28 AM: Searching for binary rubies, this might take some time.
5:46:28 AM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.7.1.tar.bz2
5:46:28 AM: Checking requirements for ubuntu.
5:46:29 AM: Requirements installation successful.
5:46:29 AM: ruby-2.7.1 - #configure
5:46:29 AM: ruby-2.7.1 - #download
5:46:29 AM: ruby-2.7.1 - #validate archive
5:46:32 AM: ruby-2.7.1 - #extract
5:46:34 AM: ruby-2.7.1 - #validate binary
5:46:34 AM: ruby-2.7.1 - #setup
5:46:35 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1@global
5:46:35 AM: ruby-2.7.1 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
5:46:35 AM: ruby-2.7.1 - #generating global wrappers........
5:46:35 AM: ruby-2.7.1 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.1
5:46:35 AM: ruby-2.7.1 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
5:46:35 AM: ruby-2.7.1 - #generating default wrappers........
5:46:36 AM: Using /opt/buildhome/.rvm/gems/ruby-2.7.1
5:46:36 AM: Using Ruby version 2.7.1
5:46:36 AM: Using PHP version 8.0
5:46:36 AM: Started restoring cached corepack dependencies
5:46:36 AM: Finished restoring cached corepack dependencies
5:46:36 AM: Started restoring cached yarn cache
5:46:36 AM: Finished restoring cached yarn cache
5:46:37 AM: Found Yarn version (1.22.19) that doesn't match expected (1.22.4)
up to date in 0.026s
5:46:37 AM: Installing Yarn version 1.22.4
5:46:37 AM: Installing Yarn!
5:46:37 AM: > Downloading tarball...
5:46:37 AM: [1/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz --> /tmp/yarn.tar.gz.Rvxu0lwbKK
5:46:37 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
5:46:37 AM:                                  Dload  Upload   Total   Spent    Left  Speed
5:46:37 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:46:37 AM: 100    80  100    80    0     0    592      0 --:--:-- --:--:-- --:--:--   592
5:46:37 AM: 100    92  100    92    0     0    446      0 --:--:-- --:--:-- --:--:--   446
5:46:37 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:46:37 AM: 100 1215k  100 1215k    0     0  2436k      0 --:--:-- --:--:-- --:--:-- 2436k
5:46:37 AM: [2/2]: https://yarnpkg.com/downloads/1.22.4/yarn-v1.22.4.tar.gz.asc --> /tmp/yarn.tar.gz.Rvxu0lwbKK.asc
5:46:37 AM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
5:46:37 AM:                                  Dload  Upload   Total   Spent    Left  Speed
5:46:37 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:46:37 AM: 100    83  100    83    0     0   1693      0 --:--:-- --:--:-- --:--:--  1693
5:46:37 AM: 100    96  100    96    0     0   1548      0 --:--:-- --:--:-- --:--:--  1548
5:46:37 AM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
5:46:37 AM: 100  1028  100  1028    0     0   5468      0 --:--:-- --:--:-- --:--:--  5468
5:46:37 AM: 100  1028  100  1028    0     0   5468      0 --:--:-- --:--:-- --:--:--     0
5:46:37 AM: > Verifying integrity...
5:46:37 AM: gpg: Signature made Mon 09 Mar 2020 03:52:13 PM UTC
5:46:37 AM: gpg:                using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
5:46:37 AM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>" [unknown]
5:46:37 AM: gpg: WARNING: This key is not certified with a trusted signature!
5:46:37 AM: gpg:          There is no indication that the signature belongs to the owner.
5:46:37 AM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
5:46:37 AM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
5:46:37 AM: > GPG signature looks good
5:46:37 AM: > Extracting to ~/.yarn...
5:46:37 AM: > Adding to $PATH...
5:46:38 AM: > Successfully installed Yarn 1.22.4! Please open another terminal where the `yarn` command will now be available.
5:46:38 AM: No yarn workspaces detected
5:46:38 AM: Started restoring cached node modules
5:46:38 AM: Finished restoring cached node modules
5:46:38 AM: Installing npm packages using Yarn version 1.22.4
5:46:38 AM: yarn install v1.22.4
5:46:38 AM: [1/4] Resolving packages...
5:46:39 AM: [2/4] Fetching packages...
5:46:56 AM: info fsevents@1.1.3: The platform "linux" is incompatible with this module.
5:46:56 AM: info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
5:46:56 AM: warning multiyargs@1.0.0: The engine "yargs" appears to be invalid.
5:46:56 AM: [3/4] Linking dependencies...
5:46:56 AM: warning " > @material-ui/core@1.4.0" has unmet peer dependency "react@^16.3.0".
5:46:56 AM: warning " > @material-ui/core@1.4.0" has unmet peer dependency "react-dom@^16.3.0".
5:46:56 AM: warning "@material-ui/core > react-event-listener@0.6.1" has unmet peer dependency "react@^16.3.0".
5:46:56 AM: warning "@material-ui/core > react-jss@8.3.0" has unmet peer dependency "react@>=0.13".
5:46:56 AM: warning "@material-ui/core > react-transition-group@2.2.1" has unmet peer dependency "react@>=15.0.0".
5:46:56 AM: warning "@material-ui/core > react-transition-group@2.2.1" has unmet peer dependency "react-dom@>=15.0.0".
5:46:56 AM: warning "@material-ui/core > recompose@0.27.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning "@material-ui/core > react-jss > theming@1.3.0" has unmet peer dependency "react@>=0.15".
5:46:56 AM: warning " > @material-ui/icons@1.1.0" has unmet peer dependency "react@^16.3.0".
5:46:56 AM: warning " > @material-ui/icons@1.1.0" has unmet peer dependency "react-dom@^16.3.0".
5:46:56 AM: warning "gatsby > postcss-cssnext@2.11.0" has unmet peer dependency "caniuse-db@^1.0.30000652".
5:46:56 AM: warning "gatsby-plugin-jss > react-jss@7.2.0" has unmet peer dependency "react@>=0.13".
5:46:56 AM: warning "gatsby-transformer-remark > graphql-type-json@0.1.4" has unmet peer dependency "graphql@>=0.4.0".
5:46:56 AM: warning " > react-custom-scrollbars@4.2.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-custom-scrollbars@4.2.1" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-facebook@5.0.3" has unmet peer dependency "react@15.x || 16.x".
5:46:56 AM: warning "react-facebook > react-spinner-children@1.0.8" has unmet peer dependency "react@15.x || 16.x".
5:46:56 AM: warning " > react-headroom@2.2.2" has unmet peer dependency "react@*".
5:46:56 AM: warning " > react-helmet@5.2.0" has unmet peer dependency "react@>=15.0.0".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-core@5.2.2" has unmet peer dependency "react@>= 15.3.0 < 17".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-dom@5.2.2" has unmet peer dependency "react@>= 15.3.0 < 17".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-dom@5.2.2" has unmet peer dependency "react-dom@>= 15.3.0 < 17".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-native@5.2.2" has unmet peer dependency "react@>= 15.3.0 < 17".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-native@5.2.2" has unmet peer dependency "react-native@>= 0.32.0".
5:46:56 AM: warning "react-instantsearch > react-instantsearch-core > algoliasearch-helper@2.26.0" has unmet peer dependency "algoliasearch@>= 3.1 < 4".
5:46:56 AM: warning " > react-lazyload@2.3.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-lazyload@2.3.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-loadable-visibility@2.5.0" has unmet peer dependency "react@>=15.4.0".
5:46:56 AM: warning " > react-material-ui-form-validator@2.0.1" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-material-ui-form-validator@2.0.1" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-material-ui-form-validator@2.0.1" has unmet peer dependency "prop-types@^15.0.0".
5:46:56 AM: warning "react-material-ui-form-validator > react-form-validator-core@0.4.4" has unmet peer dependency "react@^15.0.0 || ^16.0.0".
5:46:56 AM: warning "react-material-ui-form-validator > react-form-validator-core@0.4.4" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0".
5:46:56 AM: warning "react-material-ui-form-validator > react-form-validator-core@0.4.4" has unmet peer dependency "prop-types@^15.0.0".
5:46:56 AM: warning " > react-popper@0.10.4" has unmet peer dependency "react@0.14.x || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-popper@0.10.4" has unmet peer dependency "react-dom@0.14.x || ^15.0.0 || ^16.0.0".
5:46:56 AM: warning " > react-redux@5.0.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0".
5:46:56 AM: warning " > react-share@2.2.0" has unmet peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0-0".
5:46:56 AM: warning " > eslint-plugin-graphql@2.1.1" has unmet peer dependency "graphql@^0.12.0 || ^0.13.0".
5:46:56 AM: warning "eslint-plugin-graphql > graphql-config@2.0.1" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
5:46:56 AM: warning "eslint-plugin-graphql > graphql-config > graphql-import@0.4.5" has unmet peer dependency "graphql@^0.11.0 || ^0.12.0 || ^0.13.0".
5:47:03 AM: [4/4] Building fresh packages...
5:47:10 AM: error /opt/build/repo/node_modules/sharp: Command failed.
5:47:10 AM: Exit code: 1
5:47:10 AM: Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
5:47:10 AM: Arguments:
5:47:10 AM: Directory: /opt/build/repo/node_modules/sharp
5:47:10 AM: Output:
5:47:10 AM: info sharp Detected globally-installed libvips v8.9.1
5:47:10 AM: info sharp Building from source via node-gyp
5:47:10 AM: gyp info it worked if it ends with ok
5:47:10 AM: gyp info using node-gyp@5.0.5
5:47:10 AM: gyp info using node@8.17.0 | linux | x64
5:47:10 AM: gyp info find Python using Python version 2.7.18 found at "/opt/buildhome/python2.7/bin/python"
5:47:10 AM: gyp info spawn /opt/buildhome/python2.7/bin/python
5:47:10 AM: gyp info spawn args [ '/opt/buildhome/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
5:47:10 AM: gyp info spawn args   'binding.gyp',
5:47:10 AM: gyp info spawn args   '-f',
5:47:10 AM: gyp info spawn args   'make',
5:47:10 AM: gyp info spawn args   '-I',
5:47:10 AM: gyp info spawn args   '/opt/build/repo/node_modules/sharp/build/config.gypi',
5:47:10 AM: gyp info spawn args   '-I',
5:47:10 AM: gyp info spawn args   '/opt/buildhome/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
5:47:10 AM: gyp info spawn args   '-I',
5:47:10 AM: gyp info spawn args   '/opt/buildhome/.cache/node-gyp/8.17.0/include/node/common.gypi',
5:47:10 AM: gyp info spawn args   '-Dlibrary=shared_library',
5:47:10 AM: gyp info spawn args   '-Dvisibility=default',
5:47:10 AM: gyp info spawn args   '-Dnode_root_dir=/opt/buildhome/.cache/node-gyp/8.17.0',
5:47:10 AM: gyp info spawn args   '-Dnode_gyp_dir=/opt/buildhome/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp',
5:47:10 AM: gyp info spawn args   '-Dnode_lib_file=/opt/buildhome/.cache/node-gyp/8.17.0/<(target_arch)/node.lib',
5:47:10 AM: gyp info spawn args   '-Dmodule_root_dir=/opt/build/repo/node_modules/sharp',
5:47:10 AM: gyp info spawn args   '-Dnode_engine=v8',
5:47:10 AM: gyp info spawn args   '--depth=.',
5:47:11 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
5:47:10 AM: gyp info spawn args   '--no-parallel',
5:47:10 AM: gyp info spawn args   '--generator-output',
5:47:10 AM: gyp info spawn args   'build',
5:47:10 AM: gyp info spawn args   '-Goutput_dir=.' ]
5:47:10 AM: gyp info spawn make
5:47:10 AM: gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
5:47:10 AM: make: Entering directory '/opt/build/repo/node_modules/sharp/build'
5:47:10 AM:   TOUCH Release/obj.target/libvips-cpp.stamp
5:47:10 AM:   CXX(target) Release/obj.target/sharp/src/common.o
5:47:10 AM: In file included from /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node.h:63,
5:47:10 AM:                  from ../src/common.cc:22:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
5:47:10 AM: 10304 |           callback));
5:47:10 AM:       |                   ^
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
5:47:10 AM: 10349 |       reinterpret_cast<Isolate::GCCallback>(callback));
5:47:10 AM:       |                                                     ^
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
5:47:10 AM: 10356 |       reinterpret_cast<Isolate::GCCallback>(callback));
5:47:10 AM:       |                                                     ^
5:47:10 AM: In file included from ../src/common.cc:24:
5:47:10 AM: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
5:47:10 AM: ../../nan/nan.h:2068:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
5:47:10 AM:  2068 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
5:47:10 AM:       |                                                              ^
5:47:10 AM: In file included from /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node.h:63,
5:47:10 AM:                  from ../src/common.cc:22:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78:   required from here
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
5:47:10 AM:  9313 |                reinterpret_cast<Callback>(callback), type);
5:47:10 AM:       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
5:47:10 AM: ../../nan/nan_object_wrap.h:66:61:   required from here
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
5:47:10 AM:   CXX(target) Release/obj.target/sharp/src/metadata.o
5:47:10 AM: In file included from /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node.h:63,
5:47:10 AM:                  from ../src/metadata.cc:18:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::SetAllowCodeGenerationFromStringsCallback(v8::DeprecatedAllowCodeGenerationFromStringsCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10304:19: warning: cast between incompatible function types from ‘v8::DeprecatedAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>)’} to ‘v8::FreshNewAllowCodeGenerationFromStringsCallback’ {aka ‘bool (*)(v8::Local<v8::Context>, v8::Local<v8::String>)’} [-Wcast-function-type]
5:47:10 AM: 10304 |           callback));
5:47:10 AM:       |                   ^
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCPrologueCallback(v8::GCCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10349:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
5:47:10 AM: 10349 |       reinterpret_cast<Isolate::GCCallback>(callback));
5:47:10 AM:       |                                                     ^
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In static member function ‘static void v8::V8::RemoveGCEpilogueCallback(v8::GCCallback)’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:10356:53: warning: cast between incompatible function types from ‘v8::GCCallback’ {aka ‘void (*)(v8::GCType, v8::GCCallbackFlags)’} to ‘v8::Isolate::GCCallback’ {aka ‘void (*)(v8::Isolate*, v8::GCType, v8::GCCallbackFlags)’} [-Wcast-function-type]
5:47:10 AM: 10356 |       reinterpret_cast<Isolate::GCCallback>(callback));
5:47:10 AM:       |                                                     ^
5:47:10 AM: In file included from ../src/metadata.cc:19:
5:47:10 AM: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
5:47:10 AM: ../../nan/nan.h:2068:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
5:47:10 AM:  2068 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
5:47:10 AM:       |                                                              ^
5:47:10 AM: ../src/metadata.cc: In member function ‘virtual void MetadataWorker::Execute()’:
5:47:10 AM: ../src/metadata.cc:86:28: error: ‘VIPS_META_IPCT_NAME’ was not declared in this scope; did you mean ‘VIPS_META_IPTC_NAME’?
5:47:10 AM:    86 |       if (image.get_typeof(VIPS_META_IPCT_NAME) == VIPS_TYPE_BLOB) {
5:47:10 AM:       |                            ^~~~~~~~~~~~~~~~~~~
5:47:10 AM:       |                            VIPS_META_IPTC_NAME
5:47:10 AM: In file included from /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node.h:63,
5:47:10 AM:                  from ../src/metadata.cc:18:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/node_object_wrap.h:85:78:   required from here
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
5:47:10 AM:  9313 |                reinterpret_cast<Callback>(callback), type);
5:47:10 AM:       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
5:47:10 AM: ../../nan/nan_object_wrap.h:66:61:   required from here
5:47:10 AM: /opt/buildhome/.cache/node-gyp/8.17.0/include/node/v8.h:9313:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
5:47:10 AM: make: *** [sharp.target.mk:172: Release/obj.target/sharp/src/metadata.o] Error 1
5:47:10 AM: make: Leaving directory '/opt/build/repo/node_modules/sharp/build'
5:47:10 AM: gyp ERR! build error
5:47:10 AM: gyp ERR! stack Error: `make` failed with exit code: 2
5:47:10 AM: gyp ERR! stack     at ChildProcess.onExit (/opt/buildhome/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
5:47:10 AM: gyp ERR! stack     at emitTwo (events.js:126:13)
5:47:10 AM: gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
5:47:10 AM: gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
5:47:10 AM: gyp ERR! System Linux 5.4.228-131.415.amzn2.x86_64
5:47:10 AM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v8.17.0/bin/node" "/opt/buildhome/.nvm/versions/node/v8.17.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
5:47:10 AM: gyp ERR! cwd /opt/build/repo/node_modules/sharp
5:47:10 AM: gyp ERR! node -v v8.17.0
5:47:10 AM: gyp ERR! node-gyp -v v5.0.5
5:47:10 AM: gyp ERR! not ok
5:47:10 AM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
5:47:11 AM: Error during Yarn install
5:47:11 AM: Build was terminated: Build script returned non-zero exit code: 1
5:47:11 AM: Failing build: Failed to build site
5:47:11 AM: Finished processing build request in 51.871s
1 Like