node-packer
node-packer copied to clipboard
Unable to compile my js using nodec
This is what I see when I try to compile my js. Why is it saying no module named nodedownload? Please help....
-> cd /tmp/nodec/node
-> Running ["./configure "]
Traceback (most recent call last):
File "./configure", line 38, in <module>
import nodedownload
ImportError: No module named nodedownload
Failed running ["./configure "]
It appears /tmp/nodec
is incomplete, either remove that temporary folder or run with --clean-tmpdir
.
ok,I'll try that and get back asap...
It has failed again...
used-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF /tmp/nodec/node-v8.1.4/out/Release/.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_digest.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_digest.o ../deps/openssl/openssl/crypto/asn1/a_digest.c
cc '-D_REENTRANT' '-DPURIFY' '-DOPENSSL_NO_COMP' '-DOPENSSL_NO_SSL3' '-DOPENSSL_NO_HEARTBEATS' '-DOPENSSL_NO_HW' '-DENGINESDIR="/dev/null"' '-DTERMIOS' '-DOPENSSLDIR="/etc/ssl"' '-DL_ENDIAN' '-DAES_ASM' '-DCPUID_ASM' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_CPUID_OBJ' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DGHASH_ASM' '-DVPAES_ASM' '-DBN_ASM' '-DBF_ASM' '-DBNCO_ASM' '-DDES_ASM' '-DLIB_BN_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM' '-DRIP_ASM' '-DRMD160_ASM' '-DWHIRLPOOL_ASM' '-DWP_ASM' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_IA32_SSE2' '-DBSAES_ASM' '-DDSO_DLFCN' '-DHAVE_DLFCN_H' -I../deps/openssl -I../deps/openssl/openssl -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/asn1 -I../deps/openssl/openssl/crypto/evp -I../deps/openssl/openssl/crypto/md2 -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/store -I../deps/openssl/openssl/include -Wno-missing-field-initializers -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF /tmp/nodec/node-v8.1.4/out/Release/.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_dup.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_dup.o ../deps/openssl/openssl/crypto/asn1/a_dup.c
cc '-D_REENTRANT' '-DPURIFY' '-DOPENSSL_NO_COMP' '-DOPENSSL_NO_SSL3' '-DOPENSSL_NO_HEARTBEATS' '-DOPENSSL_NO_HW' '-DENGINESDIR="/dev/null"' '-DTERMIOS' '-DOPENSSLDIR="/etc/ssl"' '-DL_ENDIAN' '-DAES_ASM' '-DCPUID_ASM' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_CPUID_OBJ' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DGHASH_ASM' '-DVPAES_ASM' '-DBN_ASM' '-DBF_ASM' '-DBNCO_ASM' '-DDES_ASM' '-DLIB_BN_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM' '-DRIP_ASM' '-DRMD160_ASM' '-DWHIRLPOOL_ASM' '-DWP_ASM' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_IA32_SSE2' '-DBSAES_ASM' '-DDSO_DLFCN' '-DHAVE_DLFCN_H' -I../deps/openssl -I../deps/openssl/openssl -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/asn1 -I../deps/openssl/openssl/crypto/evp -I../deps/openssl/openssl/crypto/md2 -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/store -I../deps/openssl/openssl/include -Wno-missing-field-initializers -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF / cc '-D_REENTRANT' '-DPURIFY' '-DOPENSSL_NO_COMP' '-DOPENSSL_NO_SSL3' '-DOPENSSL_NO_HEARTBEATS' '-DOPENSSL_NO_HW' '-DENGINESDIR="/dev/null"' '-DTERMIOS' '-DOPENSSLDIR="/etc/ssl"' '-DL_ENDIAN' '-DAES_ASM' '-DCPUID_ASM' '-DOPENSSL_BN_ASM_MONT' '-DOPENSSL_CPUID_OBJ' '-DSHA1_ASM' '-DSHA256_ASM' '-DSHA512_ASM' '-DGHASH_ASM' '-DVPAES_ASM' '-DBN_ASM' '-DBF_ASM' '-DBNCO_ASM' '-DDES_ASM' '-DLIB_BN_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM' '-DRIP_ASM' '-DRMD160_ASM' '-DWHIRLPOOL_ASM' '-DWP_ASM' '-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_IA32_SSE2' '-DBSAES_ASM' '-DDSO_DLFCN' '-DHAVE_DLFCN_H' -I../deps/openssl -I../deps/openssl/openssl -I../deps/openssl/openssl/crypto -I../deps/openssl/openssl/crypto/asn1 -I../deps/openssl/openssl/crypto/evp -I../deps/openssl/openssl/crypto/md2 -I../deps/openssl/openssl/crypto/modes -I../deps/openssl/openssl/crypto/store -I../deps/openssl/openssl/include -Wno-missing-field-initializers -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF /virtual memory exhausted: Cannot allocate memory
tmp/nodec/node-v8.1.4/out/Release/.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_enum.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_enum.o ../deps/openssl/openssl/crypto/asn1/a_enum.c
tmp/nodec/node-v8.1.4/out/Release/.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_gentm.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Release/obj.target/openssl/deps/openssl/openssl/crypto/asn1/a_gentm.o ../deps/openssl/openssl/crypto/asn1/a_gentm.c
deps/libsquash/enclose_io_libsquash.target.mk:97: recipe for target '/tmp/nodec/node-v8.1.4/out/Release/obj.target/enclose_io_libsquash/deps/libsquash/sample/enclose_io_memfs.o' failed
make[1]: *** [/tmp/nodec/node-v8.1.4/out/Release/obj.target/enclose_io_libsquash/deps/libsquash/sample/enclose_io_memfs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm 2bd47e96d6715d427749a9aecb9fbbcb47a76f14.intermediate
Makefile:76: recipe for target 'node' failed
make: *** [node] Error 2
Failed running ["make -j4"]
Please help me..
@geekycompy virtual memory exhausted: Cannot allocate memory
How big is your project and memory? Could you set a bigger vitual memory size?
It has 2 gb memory...
here's the output of "free -m"
total used free shared buff/cache available
Mem: 2000 24 1898 1 77 1943
Swap: 3903 16 3887
How do I set a bigger virtual memory size? Is it in the OS or in nodec?
In the OS.
geekycompy [email protected]于2017年7月20日 周四19:20写道:
It has 2 gb memory...
here's the output of "free -m"
total used free shared buff/cache available
Mem: 2000 24 1898 1 77 1943 Swap: 3903 16 3887
How do I set a bigger virtual memory size? Is it in the OS or in nodec?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/pmq20/node-compiler/issues/64#issuecomment-316674105, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA0A6AbzyYqHHwUZMHhD2qgeddt7IJsks5sPzf3gaJpZM4Oc6io .
now, I am trying with a fresh server with 32gb of memory
total used free shared buff/cache available
Mem: 32095 67 29793 21 2235 31755
Swap: 0 0 0
Hope it will work...ill come back with the results...
How big is your project folder? Check if anything big got unexpected included.
geekycompy [email protected]于2017年7月20日 周四19:41写道:
This has 4GB of memory and yet its not working.. Here's the output
^
../deps/libsquash/sample/enclose_io_unix.h:43:8: warning: C++ style comments are not allowed in ISO C90 #endif // !_WIN32 ^ ../deps/libsquash/sample/enclose_io_unix.h:43:8: warning: (this will be reported only once per input file) g++ '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' -I../deps/icu-small/source /common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-deprecated-declarations -O3 -fno-omit-frame-pointer -fno -exceptions -std=gnu++0x -frtti -MMD -MF /tmp/nodec/node-v8.1.4/out/Release/.deps//tmp/nodec/node-v8.1.4/out/Release/obj .target/icustubdata/deps/icu-small/source/stubdata/stubdata.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Release/obj.targe t/icustubdata/deps/icu-small/source/stubdata/stubdata.o ../deps/icu-small/source/stubdata/stubdata.cpp g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-ini tializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Release /.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw -c -o /tmp/nodec/no de-v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-ini tializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Release /.deps//tmp/nodec/node-v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o.d.raw -c -o /tmp/nodec/node -v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o ../deps/gtest/src/gtest-filepath.cc virtual memory exhausted: Cannot allocate memory deps/v8/src/v8_libsampler.target.mk:101: recipe for target '/tmp/nodec/node-v8.1.4/out/Release/obj.target/v8_libsampler/ deps/v8/src/libsampler/sampler.o' failed make[1]: *** [/tmp/nodec/node-v8.1.4/out/Release/obj.target/v8_libsampler/deps/v8/src/libsampler/sampler.o] Error 1 make[1]: *** Waiting for unfinished jobs.... virtual memory exhausted: Cannot allocate memory deps/gtest/gtest.target.mk:82: recipe for target '/tmp/nodec/node-v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gte st-filepath.o' failed make[1]: *** [/tmp/nodec/node-v8.1.4/out/Release/obj.target/gtest/deps/gtest/src/gtest-filepath.o] Error 1 virtual memory exhausted: Cannot allocate memory deps/libsquash/enclose_io_libsquash.target.mk:97: recipe for target '/tmp/nodec/node-v8.1.4/out/Release/obj.target/enclo se_io_libsquash/deps/libsquash/sample/enclose_io_memfs.o' failed make[1]: *** [/tmp/nodec/node-v8.1.4/out/Release/obj.target/enclose_io_libsquash/deps/libsquash/sample/enclose_io_memfs. o] Error 1 rm 2bd47e96d6715d427749a9aecb9fbbcb47a76f14.intermediate Makefile:76: recipe for target 'node' failed make: *** [node] Error 2 Failed running ["make -j4"]
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/pmq20/node-compiler/issues/64#issuecomment-316678111, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA0A8uu5zDsHZFdk8R18tSJM7p8-bqGks5sPzzWgaJpZM4Oc6io .
The folder is really really big...
Compiling on the 32GB Ram server worked..but I get this error when I run the compiled program...
events.js:182
throw er; // Unhandled 'error' event
And I don't know from which events.js this error is thrown. There are many files named events.js among the many modules installed in the project.
Is it possible for me to see more debug information about the path of the file?
Thanks.
@geekycompy Try setting environment variable NODE_DEBUG
or use ENCLOSE_IO_USE_ORIGINAL_NODE=1
and start with argument --inspect
then manually start the program.
--inspect-brk
might also help.
Sure, I will try this..Im new to this stuff even to setting those environment variables...where do I set them?
Meanwhile, I am trying out on an ARM server just to see if nodec works..
if I try the --inspect-brk and --inspect, it shows this...
/__enclose_io_memfs__/local/bin/nodec:139:in
after compiling with those environment variables, same error ...
events.js:182
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/__enclose_io_memfs__/Module/l.txt
Please guide me
Thanks
pmq20,I need your help please...advise me ..what do I do to overcome this error?
@pmq20 , did you mean passing --inspect and --inspect-brk to node? But my app works perfectly fine with node or even with pm2 before compiling.
Only after compiling with nodec and running app.out, it does not work and shows
events.js:182
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/__enclose_io_memfs__/Module/l.txt
What could be the cause for this?
I tried again with this hoping to find some debug info...
sudo ./nodec --debug --clean-tmpdir --root=/usr/local/appdir/ app.js -o app.out
and ended up with this...
'-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o ../src/node_crypto_clienthello.cc
g++ '-DGTEST_DONT_DEFINE_ASSERT_EQ=1' '-DGTEST_DONT_DEFINE_ASSERT_GE=1' '-DGTEST_DONT_DEFINE_ASSERT_GT=1' '-DGTEST_DONT_DEFINE_ASSERT_LE=1' '-DGTEST_DONT_DEFINE_ASSERT_LT=1' '-DGTEST_DONT_DEFINE_ASSERT_NE=1' '-DNODE_WANT_INTERNALS=1' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_INSPECTOR=1' '-DHAVE_OPENSSL=1' '-D__POSIX__' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o ../src/tls_wrap.cc
g++ '-DGTEST_DONT_DEFINE_ASSERT_EQ=1' '-DGTEST_DONT_DEFINE_ASSERT_GE=1' '-DGTEST_DONT_DEFINE_ASSERT_GT=1' '-DGTEST_DONT_DEFINE_ASSERT_LE=1' '-DGTEST_DONT_DEFINE_ASSERT_LT=1' '-DGTEST_DONT_DEFINE_ASSERT_NE=1' '-DNODE_WANT_INTERNALS=1' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_INSPECTOR=1' '-DHAVE_OPENSSL=1' '-D__POSIX__' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o ../src/backtrace_posix.cc
g++ -pthread -rdynamic -m64 -Wl,--whole-archive,/tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/openssl/libopenssl.a -Wl,--no-whole-archive -Wl,-z,noexecstack -Wl,--whole-archive /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_base.a -Wl,--no-whole-archive -pthread -o /tmp/nodec/node-v8.1.4/out/Debug/cctest -Wl,--start-group /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_base64.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_environment.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_util.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_url.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_inspector_socket.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_inspector_socket_server.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_agent.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_io.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_socket.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_socket_server.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_bio.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/gtest/libgtest.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/libsquash/libenclose_io_libsquash.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/libautoupdate/libautoupdate.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/zlib/libzlib.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/openssl/libopenssl.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/http_parser/libhttp_parser.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/uv/libuv.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libplatform.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicui18n.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/cares/libcares.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libbase.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_base.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libsampler.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicuucx.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicudata.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicustubdata.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_nosnapshot.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/gen/node_javascript.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_debug_options.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/async-wrap.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/env.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_buffer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_i18n.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_url.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/util.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/string_bytes.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/string_search.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/stream_base.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_constants.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_revert.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/agent.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/node_trace_buffer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/node_trace_writer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/trace_event.o -lm -ldl -lrt -Wl,--end-group
if [ ! -r node_g -o ! -L node_g ]; then ln -fs out/Debug/node node_g; fi
Failed running ["make -j4"]
Do you believe that this issue can be solved or maybe i have to give up on this?
It seems that you app require a file named l.txt. Maybe this file is not included. If you load from the outside of your app, you must use the absolute path with the require.
Le sam. 22 juil. 2017 à 09:39, geekycompy [email protected] a écrit :
I tried again with this hoping to find some debug info... sudo ./nodec --debug --clean-tmpdir --root=/usr/local/appdir/ app.js -o app.out
and ended up with this...
'-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o ../src/node_crypto_clienthello.cc g++ '-DGTEST_DONT_DEFINE_ASSERT_EQ=1' '-DGTEST_DONT_DEFINE_ASSERT_GE=1' '-DGTEST_DONT_DEFINE_ASSERT_GT=1' '-DGTEST_DONT_DEFINE_ASSERT_LE=1' '-DGTEST_DONT_DEFINE_ASSERT_LT=1' '-DGTEST_DONT_DEFINE_ASSERT_NE=1' '-DNODE_WANT_INTERNALS=1' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_INSPECTOR=1' '-DHAVE_OPENSSL=1' '-D__POSIX__' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o ../src/tls_wrap.cc g++ '-DGTEST_DONT_DEFINE_ASSERT_EQ=1' '-DGTEST_DONT_DEFINE_ASSERT_GE=1' '-DGTEST_DONT_DEFINE_ASSERT_GT=1' '-DGTEST_DONT_DEFINE_ASSERT_LE=1' '-DGTEST_DONT_DEFINE_ASSERT_LT=1' '-DGTEST_DONT_DEFINE_ASSERT_NE=1' '-DNODE_WANT_INTERNALS=1' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_INSPECTOR=1' '-DHAVE_OPENSSL=1' '-D__POSIX__' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRESSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DDEBUG' '-D_DEBUG' '-DV8_ENABLE_CHECKS' -I../src -I../tools/msvs/genfiles -I../deps/v8/include -I../deps/cares/include -I../deps/uv/include -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen -I/tmp/nodec/node-v8.1.4/out/Debug/obj/gen/include -I../deps/gtest/include -I../deps/zlib -I../deps/openssl/openssl/include -I../deps/http_parser -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -g -O0 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /tmp/nodec/node-v8.1.4/out/Debug/.deps//tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o.d.raw -c -o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o ../src/backtrace_posix.cc g++ -pthread -rdynamic -m64 -Wl,--whole-archive,/tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/openssl/libopenssl.a -Wl,--no-whole-archive -Wl,-z,noexecstack -Wl,--whole-archive /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_base.a -Wl,--no-whole-archive -pthread -o /tmp/nodec/node-v8.1.4/out/Debug/cctest -Wl,--start-group /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_base64.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_environment.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_util.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_url.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_inspector_socket.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/test/cctest/test_inspector_socket_server.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_agent.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_io.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_socket.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/inspector_socket_server.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_bio.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/node_crypto_clienthello.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/tls_wrap.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/cctest/src/backtrace_posix.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/gtest/libgtest.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/libsquash/libenclose_io_libsquash.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/libautoupdate/libautoupdate.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/zlib/libzlib.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/openssl/libopenssl.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/http_parser/libhttp_parser.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/uv/libuv.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libplatform.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicui18n.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/cares/libcares.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libbase.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_base.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_libsampler.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicuucx.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicudata.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/tools/icu/libicustubdata.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/deps/v8/src/libv8_nosnapshot.a /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/gen/node_javascript.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_debug_options.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/async-wrap.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/env.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_buffer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_i18n.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_url.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/util.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/string_bytes.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/string_search.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/stream_base.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_constants.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/node_revert.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/agent.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/node_trace_buffer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/node_trace_writer.o /tmp/nodec/node-v8.1.4/out/Debug/obj.target/node/src/tracing/trace_event.o -lm -ldl -lrt -Wl,--end-group if [ ! -r node_g -o ! -L node_g ]; then ln -fs out/Debug/node node_g; fi Failed running ["make -j4"]
Do you believe that this issue can be solved or maybe i have to give up on this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pmq20/node-compiler/issues/64#issuecomment-317163954, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjTs1rOi5poinUC1U_TJiYXuL6VHMUxks5sQaclgaJpZM4Oc6io .
@geekycompy Just like what @Ni-vek said, is /Module/l.txt
existent in your project before compiling?
Could you share a minimal set of code with me so that I can reproduce the issue locally and fix it? Thanks.
echofriend [email protected]于2017年7月23日 周日21:40写道:
yes it is exists. it is a real file. All files are in the root folder.nothing is outside the root folder.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/pmq20/node-compiler/issues/64#issuecomment-317253712, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA0A0J8f4RXGsxgii0RJFs6oB_b-GBcks5sQ008gaJpZM4Oc6io .
sure...
hi @pmq20 , the project is so big and it's hard for me to find out which part of the code to use to make a minimal code sample.
When I use pkg, it shows more debug information and I was able to solve it.
However, I am a fan of node-compiler because it goes directly inside c++ to compile the code. I think I get the end program compiled using pure c++. That is what I really love about your compiler.
Maybe you just need the part where fs writing a txt file? if the program writes a file to __dirname + /l.txt
, will it work? That's exactly what is happening...
I understand using processs.cwd, but why would __dirname + /l.txt
not work without using it inside the squashfs which you have used?
Thanks.
@geekycompy When the program writes to __dirname + /l.txt
it will work. See,
https://github.com/pmq20/libsquash/blob/master/sample/enclose_io_unix.c#L606
and
https://github.com/pmq20/libsquash/blob/master/sample/enclose_io_unix.c#L606