electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.68k stars 1.74k forks source link

[question] error on running electron-builder #1416

Closed biroplane closed 7 years ago

biroplane commented 7 years ago

I'm trying to run electron-builder to pack my app, but i got a bunch of errors and i don't know where to start checking...

Rebuilding native production dependencies for darwin:x64
Error: /usr/local/Cellar/node/7.7.4/bin/node exited with code 1
Output:

> sodium-prebuilt@1.0.22 install /Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt
> prebuild --install --preinstall make

glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
checking build system type... x86_64-apple-darwin16.4.0
checking host system type... x86_64-apple-darwin16.4.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '501' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C compiler accepts -fvisibility=hidden... yes
checking whether C compiler accepts -fPIC... yes
checking whether the linker accepts -fPIC... yes
checking whether C compiler accepts -fPIE... yes
checking whether the linker accepts -fPIE... yes
checking whether the linker accepts -pie... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -fstack-protector... yes
checking whether the linker accepts -fstack-protector... yes
checking whether C compiler accepts -Winit-self... yes
checking whether C compiler accepts -Wwrite-strings... yes
checking whether C compiler accepts -Wdiv-by-zero... yes
checking whether C compiler accepts -Wsometimes-uninitialized... yes
checking whether C compiler accepts  -Wall... yes
checking whether C compiler accepts  -Wall -Wextra... yes
checking for clang... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses -Wpointer-arith... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses -Wpointer-arith -Wredundant-decls... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum... yes
checking whether C compiler accepts  -Wall -Wextra -Wno-unknown-warning-option -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnormalized=id -Woverride-init -Wparentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wswitch-enum -Wvariable-decl... yes
checking whether the linker accepts -Wl,-z,relro... no
checking whether the linker accepts -Wl,-z,now... no
checking whether the linker accepts -Wl,-z,noexecstack... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin16.4.0 file names to x86_64-apple-darwin16.4.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin16.4.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin16.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ar... (cached) ar
checking for MMX instructions set... yes
checking for SSE2 instructions set... yes
checking for SSE3 instructions set... yes
checking for SSSE3 instructions set... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking whether __STDC_LIMIT_MACROS is required... no
checking whether we should use x86_64 asm code... yes
checking for 128-bit arithmetic... yes
checking for cpuid instruction... yes
checking if weak symbols are supported... yes
configure: data alignment is not required on this target
checking for arc4random... yes
checking for arc4random_buf... yes
checking for mmap... yes
checking for mlock... yes
checking for madvise... yes
checking for mprotect... yes
checking for explicit_bzero... no
checking for posix_memalign... yes
checking if gcc/ld supports -Wl,--output-def... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating dist-build/Makefile
config.status: creating libsodium.pc
config.status: creating libsodium-uninstalled.pc
config.status: creating msvc-scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/libsodium/Makefile
config.status: creating src/libsodium/include/Makefile
config.status: creating src/libsodium/include/sodium/version.h
config.status: creating test/default/Makefile
config.status: creating test/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
Extracting DEFINES from Libsodium make file...
Detected system architecture x64
Libsodium Makefile : ./deps/libsodium/Makefile
Libsodium GYP template file deps/libsodium.gyp.in
Writing output to GYP file deps/libsodium.gyp
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/crypto_auth.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/hmac_hmacsha256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512/auth_hmacsha512_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/hmac_hmacsha512.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/hmac_hmacsha512256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/crypto_box.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/crypto_box_easy.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/hsalsa20/ref2/core_hsalsa20.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/hsalsa20/core_hsalsa20_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa20/ref/core_salsa20.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa20/core_salsa20_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_generichash/crypto_generichash.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_generichash/blake2/generichash_blake2_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_generichash/blake2/ref/generichash_blake2b.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_hash/crypto_hash.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_hash/sha256/hash_sha256_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_hash/sha256/cp/hash_sha256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_hash/sha512/hash_sha512_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_hash/sha512/cp/hash_sha512.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/crypto_onetimeauth.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/auth_poly1305_donna.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/verify_poly1305_donna.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pbkdf2-sha256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_shorthash/crypto_shorthash.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/shorthash_siphash24.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/crypto_sign.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_0.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_1.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_add.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_cmov.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_copy.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_frombytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_invert.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnegative.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_isnonzero.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_mul.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_neg.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_pow22523.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sq2.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_sub.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/fe_tobytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_add.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_double_scalarmult.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_frombytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_madd.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_msub.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p2.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p1p1_to_p3.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_0.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p2_dbl.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_0.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_dbl.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_cached.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_to_p2.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_precomp_0.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_scalarmult_base.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_sub.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_tobytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_muladd.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sc_reduce.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/crypto_stream.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/chacha20/stream_chacha20_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa20/stream_salsa20_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/16/verify_16_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/16/ref/verify_16.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/32/verify_32_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/32/ref/verify_32.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/64/verify_64_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_verify/64/ref/verify_64.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/randombytes/randombytes.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/sodium/core.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/sodium/runtime.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/sodium/utils.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/sodium/version.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/base_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_0_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_1_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_add_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_copy_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_cswap_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_frombytes_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_invert_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_mul121666_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sq_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_sub_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/fe_tobytes_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/scalarmult_curve25519_ref10.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/base_curve25519_donna_c64.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_scalarmult/curve25519/donna_c64/smult_curve25519_donna_c64.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa20/amd64_xmm6/stream_salsa20_amd64_xmm6.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa2012/ref/core_salsa2012.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa2012/core_salsa2012_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa208/ref/core_salsa208.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_core/salsa208/core_salsa208_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/ge25519_edwards25519sha512batch.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sc25519_edwards25519sha512batch.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/beforenm_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/common_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/consts_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/int128_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/stream_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa2012/stream_salsa2012_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa208/stream_salsa208_api.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.o
  CC(target) Release/obj.target/libsodium/deps/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.o
  LIBTOOL-STATIC Release/sodium.a
  CXX(target) Release/obj.target/sodium/sodium.o
  SOLINK_MODULE(target) Release/sodium.node

> ursa@0.9.4 install /Users/gaetano/Desktop/sqlite/node_modules/ursa
> node-gyp rebuild

  CXX(target) Release/obj.target/ursaNative/src/ursaNative.o

Error output:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:142: installing 'build-aux/compile'
configure.ac:10: installing 'build-aux/missing'
src/libsodium/Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory `.'
../sodium.cc:493:40: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations]
    unsigned long long slen = info[0]->ToUint32()->Value();
                                       ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:9118:22: note: 'ToUint32' has been explicitly marked deprecated here
Local<Uint32> Value::ToUint32() const {
                     ^
../sodium.cc:882:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("publicKey").ToLocalChecked(), vk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
../sodium.cc:883:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("secretKey").ToLocalChecked(), sk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
../sodium.cc:929:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("publicKey").ToLocalChecked(), vk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
../sodium.cc:930:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("secretKey").ToLocalChecked(), sk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
../sodium.cc:1223:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("publicKey").ToLocalChecked(), pk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
../sodium.cc:1224:17: warning: 'ForceSet' is deprecated [-Wdeprecated-declarations]
        result->ForceSet(Nan::New<String>("secretKey").ToLocalChecked(), sk, DontDelete);
                ^
/Users/gaetano/Desktop/sqlite/node_modules/sodium-prebuilt/iojs-1.6.2/deps/v8/include/v8.h:2942:22: note: 'ForceSet' has been explicitly marked deprecated here
                bool ForceSet(Local<Value> key, Local<Value> value,
                     ^
7 warnings generated.
In file included from ../src/ursaNative.cc:3:
../src/ursaNative.h:13:10: fatal error: 'openssl/rsa.h' file not found
#include <openssl/rsa.h>
         ^
1 error generated.
make: *** [Release/obj.target/ursaNative/src/ursaNative.o] Error 1
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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/usr/local/Cellar/node/7.7.4/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/gaetano/Desktop/sqlite/node_modules/ursa
gyp ERR! node -v v7.7.4
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok 

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.7.4/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "rebuild" "ursa" "sodium-prebuilt"
npm ERR! node v7.7.4
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! ursa@0.9.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ursa@0.9.4 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ursa package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs ursa
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls ursa
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/gaetano/Desktop/sqlite/npm-debug.log

    at ChildProcess.childProcess.once.code (/Users/gaetano/Desktop/sqlite/node_modules/electron-builder-util/src/util.ts:134:14)
    at Object.onceWrapper (events.js:293:19)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Socket.<anonymous> (internal/child_process.js:342:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at Pipe._handle.close [as _onclose] (net.js:513:12)
From previous event:
    at spawn (/Users/gaetano/Desktop/sqlite/node_modules/electron-builder-util/src/util.ts:97:3)
    at /Users/gaetano/Desktop/sqlite/node_modules/electron-builder/src/yarn.ts:118:11
    at Generator.next (<anonymous>)
    at runCallback (timers.js:666:20)
    at tryOnImmediate (timers.js:639:5)
    at processImmediate [as _immediateCallback] (timers.js:611:5)

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.7.4/bin/node" "/usr/local/bin/npm" "run" "dist"
npm ERR! node v7.7.4
npm ERR! npm  v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! LookIn20@2.0.1 dist: `build`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the LookIn20@2.0.1 dist script 'build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the LookIn20 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs LookIn20
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls LookIn20
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/gaetano/Desktop/sqlite/npm-debug.log

and i actually don't know/use libsodium or sodium library

develar commented 7 years ago

electron-builder automatically rebuilds your app for target arch. You have direct or transitive native dependency. So, you need somehow fix compilation error. It is not electron-builder error.

If you cannot manage to fix compilation errors, well, you can share your app and I can check it.

biroplane commented 7 years ago

here's the repo of my project.

https://github.com/biroplane/lookin

biroplane commented 7 years ago

it still looks like libsoudium generates a bunch of errors :/

black-snow commented 7 years ago

@biroplane Taking a quick look I can't find ursa in the deps. Do you still have issues?

If yes please try upgrading to the latest version / file an issue in the corresponding repo. Cheers