Not able to generate IONIC Pro build


#1

I am able to create build at my pc locally but IONIC pro is showing me below error:
App name: eyewitness-traxx-kiosk

Running with gitlab-ci-multi-runner 9.1.0 (0118d89)
  on ip-10-2-124-154 (c9648220)
Using Shell executor...
Running on ip-10-2-124-154...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'...
Checking out ee90be7f as master...
Updating/initializing submodules recursively...
$ run "fetch-updates"
Running Stage fetch-updates for Job: 5444636
Checking for build process updates...
$ run "build-app"
Running Stage build-app for Job: 5444636
Parsing ionic.config.json for project settings
Project Settings:
	Name: Eyewitness Traxx
	App ID: c878a5db
	Type: ionic-angular
Build script detected in package.json...
$ npm install --quiet --no-optional

> bson-ext@0.1.13 install /usr/src/app/node_modules/bson-ext
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/usr/src/app/node_modules/bson-ext/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
bson.target.mk:93: recipe for target 'Release/obj.target/bson/ext/bson.o' failed
make: Leaving directory '/usr/src/app/node_modules/bson-ext/build'

> node-sass@4.7.2 install /usr/src/app/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node
Download complete
Binary saved to /usr/src/app/node_modules/node-sass/vendor/linux-x64-57/binding.node
Caching binary to /home/gitlab-runner/.npm/node-sass/4.7.2/linux-x64-57_binding.node

> aios@0.1.5 install /usr/src/app/node_modules/aios
> CC=clang CXX=clang++ node-gyp configure build --verbose

gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'configure',
gyp verb cli   'build',
gyp verb cli   '--verbose' ]
gyp info using node-gyp@3.6.2
gyp info using node@8.2.1 | linux | x64
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` succeeded python2 /usr/bin/python2
gyp verb check python version `/usr/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.9\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.2.1
gyp verb command install [ '8.2.1' ]
gyp verb install input version string "8.2.1"
gyp verb install installing version: 8.2.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 8.2.1
gyp verb build dir attempting to create "build" dir: /usr/src/app/node_modules/aios/build
gyp verb build dir "build" dir needed to be created? /usr/src/app/node_modules/aios/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /usr/src/app/node_modules/aios/build/config.gypi
gyp verb config.gypi checking for gypi file: /usr/src/app/node_modules/aios/config.gypi
gyp verb common.gypi checking for gypi file: /usr/src/app/node_modules/aios/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/src/app/node_modules/aios/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/gitlab-runner/.node-gyp/8.2.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/gitlab-runner/.node-gyp/8.2.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/gitlab-runner/.node-gyp/8.2.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/usr/src/app/node_modules/aios',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/gitlab-runner/.node-gyp/8.2.1
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/src/app/node_modules/aios/build'
  clang++ '-DNODE_GYP_MODULE_NAME=sockit' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/gitlab-runner/.node-gyp/8.2.1/include/node -I/home/gitlab-runner/.node-gyp/8.2.1/src -I/home/gitlab-runner/.node-gyp/8.2.1/deps/uv/include -I/home/gitlab-runner/.node-gyp/8.2.1/deps/v8/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF ./Release/.deps/Release/obj.target/sockit/src/addon.o.d.raw   -c -o Release/obj.target/sockit/src/addon.o ../src/addon.cc
make: clang++: Command not found
sockit.target.mk:94: recipe for target 'Release/obj.target/sockit/src/addon.o' failed
make: Leaving directory '/usr/src/app/node_modules/aios/build'
make: *** [Release/obj.target/sockit/src/addon.o] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-1044-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" "--verbose"
gyp ERR! cwd /usr/src/app/node_modules/aios
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! aios@0.1.5 install: `CC=clang CXX=clang++ node-gyp configure build --verbose`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the aios@0.1.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/gitlab-runner/.npm/_logs/2018-04-02T12_06_32_620Z-debug.log
npm install --quiet --no-optional failed
Running after script...
$ run "clean-up"
Running Stage clean-up for Job: 5444636
ERROR: Job failed: exit status 1

Please provide a solution to solve this issue.