-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation problem #1173
Comments
hmmm i see " gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) i will try upgrading my gcc and see if that helps, although i would have thought that ./configure would have caught that. UPDATE: Python 2.6.6 clang version 3.4.2 (tags/RELEASE_34/dot2-final) |
./iojs -v i see i can just install the binary instead. i still am a little old-school and like the idea of running "make install" |
@edwardsmarkf did it work with gcc 4.8+? |
It matches what GYP's Makefile generator does and it should improve compiler detection because cc and c++ are not always gcc and g++. Fixes: nodejs#1173 PR-URL: nodejs#1174 Reviewed-By: Johan Bergström <[email protected]>
i am installing gcc-4.8.2 now - although i am tempted to just use the binary that worked and call it a day, unless one of you other wizards can advise me differently. i found this link for upgrading gcc: http://wiki.mikejung.biz/Gcc_CentOS - looks good so far. one of these days, somebody needs to explain why yum uses a three year old gcc. |
@edwardsmarkf the commit @bnoordhuis just merged (run a $ CXX=clang++ CC=clang ./configure
<snip>
$ CXX=clang++ CC=clang make -j$(getconf _NPROCESSORS_ONLN) # parallelise build |
well, that got me a LOT farther - thank you. here is what i am running into now (below). i am currently building the new gcc but its taking a long time. latest error: clang++ '-DV8_TARGET_ARCH_X64' '-DENABLE_DISASSEMBLER' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I../deps/v8 -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-strict-aliasing -m64 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gn u++0x -MMD -MF /root/iojs/iojs/io.js-1.x/out/Release/.deps//root/iojs/iojs/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw -c -o /root/iojs/ iojs/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc |
@edwardsmarkf by the look of your include path, it still looks like it's referencing an older gcc. |
time to cut the losses on trying to build my own using an old gcc. i just downloaded the latest bin, put that directory in my path variable, and used iojs instead of node in the CLI - should i sound surprised that it worked ? |
@edwardsmarkf that's what the binaries are there for. Feel free to close this issue. |
FYI this is the setup we are using on CentOS5 for building io.js which you could easily replicate for yourself: https://github.com/iojs/build/tree/master/setup/centos5 We use the Scientific Linux CERN devtools distro to get 4.8 for compiling. |
thanks - actually i am on a centOS-6.6 VPS -- i have a question to my host what it will take to upgrade to centOS-7 which has the newer gcc. however, the bin works fine. i suppose there is no real reason why i need to build it myself, except for the challenge of it. i am still a bit surprised the bin worked so well out of the box, but i suppose the io.js dedicated support staff would have expected that. i am guessing the next step is to move the iojs and npm executables into the same directory where node now lives. this is pretty exciting for me. UPDATE: as an experiment, i built a centOS 6.6 env using virtualbox and am currently running this script: http://wiki.mikejung.biz/Gcc_CentOS -- i still want to create my own iosj using my old friend: |
The Linux binaries we build are made on CentOS5 so we compile against the oldest libc practical which gives it support all the way up to the newest distros. You would likely get some minor benefit from compiling it yourself against a newer libc and with a newer compiler (gcc 4.9) but in most cases the binaries made available should be good to go. |
thanks. from the outside looking in, i am still amazed all i needed to change was "node" to "iojs" in my command-string. for whatever this is worth, i had not even heard about io.js until yesterday when egghead.io sent out an email that they had added node videos, and they were asking opinions about using io.js instead. |
same problem! [root@novaline node-v6.2.1]# make install
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/node-v6.2.1/out'
g++ '-DV8_TARGET_ARCH_IA32' '-DENABLE_DISASSEMBLER' '-DV8_I18N_SUPPORT' '-DV8_ IMMINENT_DEPRECATION_WARNINGS' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' '-DUC ONFIG_NO_TRANSLITERATION=1' '-DUCONFIG_NO_SERVICE=1' '-DUCONFIG_NO_REGULAR_EXPRE SSIONS=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRI NG=0' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DUCONFIG_NO_LEGACY_CONVERSION=1' '-DUCO NFIG_NO_IDNA=1' '-DUCONFIG_NO_CONVERSION=1' -I../deps/v8 -I../deps -I../deps/icu -small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wn o-unused-parameter -m32 -msse2 -mfpmath=sse -mmmx -fno-strict-aliasing -m32 -O3 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-e xceptions -std=gnu++0x -MMD -MF /root/node-v6.2.1/out/Release/.deps//root/node-v 6.2.1/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw -c -o /root /node-v6.2.1/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/s rc/accessors.cc
In file included from ../deps/v8/src/hashmap.h:11,
from ../deps/v8/src/zone.h:13,
from ../deps/v8/src/handles.h:13,
from ../deps/v8/src/accessors.h:11,
from ../deps/v8/src/accessors.cc:5:
../deps/v8/src/utils.h:87: warning: integer constant is too large for 'long' typ e
In file included from ../deps/v8/src/accessors.h:8,
from ../deps/v8/src/accessors.cc:5:
../deps/v8/include/v8.h: In constructor 'v8::MaybeLocal<T>::MaybeLocal()':
../deps/v8/include/v8.h:358: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'bool v8::MaybeLocal<T>::IsEmpty() c onst':
../deps/v8/include/v8.h:365: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'bool v8::MaybeLocal<T>::ToLocal(v8: :Local<S>*) const':
../deps/v8/include/v8.h:369: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'bool v8::WeakCallbackInfo<T>::IsFir stPass() const':
../deps/v8/include/v8.h:437: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: At global scope:
../deps/v8/include/v8.h:477: error: expected unqualified-id before 'using'
../deps/v8/include/v8.h: In constructor 'v8::Global<T>::Global()':
../deps/v8/include/v8.h:809: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In constructor 'v8::Global<T>::Global(v8::Global<T>&&)' :
../deps/v8/include/v8.h:834: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'v8::Global<T>& v8::Global<T>::opera tor=(v8::Global<S>&&)':
../deps/v8/include/v8.h:846: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: At global scope:
../deps/v8/include/v8.h:871: error: expected unqualified-id before 'using'
../deps/v8/include/v8.h:1108: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h:1114: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'v8::MaybeLocal<v8::Object> v8::Func tion::NewInstance(v8::Local<v8::Context>) const':
../deps/v8/include/v8.h:3246: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: At global scope:
../deps/v8/include/v8.h:4463: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h:4479: error: 'nullptr' was not declared in this scope
../deps/v8/include/v8.h: In member function 'v8::Local<T> v8::MaybeLocal<T>::ToL ocalChecked()':
../deps/v8/include/v8.h:7348: error: 'nullptr' was not declared in this scope
In file included from ../deps/v8/src/globals.h:14,
from ../deps/v8/src/allocation.h:8,
from ../deps/v8/src/accessors.h:9,
from ../deps/v8/src/accessors.cc:5:
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckEQImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:124: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckEQImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:124: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckNEImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:125: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckNEImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:125: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckLEImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:126: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckLEImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:126: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckLTImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:127: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckLTImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:127: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckGEImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:128: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckGEImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:128: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckGTImpl(c onst Lhs&, const Rhs&, const char*)':
../deps/v8/src/base/logging.h:129: error: 'nullptr' was not declared in this sco pe
../deps/v8/src/base/logging.h: In function 'std::string* v8::base::CheckGTImpl(i nt, int, const char*)':
../deps/v8/src/base/logging.h:129: error: 'nullptr' was not declared in this sco pe
In file included from ../deps/v8/src/base/platform/platform.h:29,
from ../deps/v8/src/utils.h:18,
from ../deps/v8/src/hashmap.h:11,
from ../deps/v8/src/zone.h:13,
from ../deps/v8/src/handles.h:13,
from ../deps/v8/src/accessors.h:11,
from ../deps/v8/src/accessors.cc:5:
../deps/v8/src/base/platform/mutex.h: At global scope:
../deps/v8/src/base/platform/mutex.h:36: error: variable 'v8::base::Mutex v8::ba se::final' has initializer but incomplete type
../deps/v8/src/base/platform/mutex.h:37: error: expected primary-expression befo re 'public'
../deps/v8/src/base/platform/mutex.h:37: error: expected '}' before 'public'
../deps/v8/src/base/platform/mutex.h:37: error: expected ',' or ';' before 'publ ic'
../deps/v8/src/base/platform/mutex.h:39: error: expected constructor, destructor , or type conversion before ';' token
../deps/v8/src/base/platform/mutex.h: In function 'v8::base::NativeHandle& v8::b ase::native_handle()':
../deps/v8/src/base/platform/mutex.h:63: error: 'native_handle_' was not declare d in this scope
../deps/v8/src/base/platform/mutex.h: At global scope:
../deps/v8/src/base/platform/mutex.h:65: error: non-member function 'const v8::b ase::NativeHandle& v8::base::native_handle()' cannot have cv-qualifier
../deps/v8/src/base/platform/mutex.h: In function 'const v8::base::NativeHandle& v8::base::native_handle()':
../deps/v8/src/base/platform/mutex.h:65: error: new declaration 'const v8::base: :NativeHandle& v8::base::native_handle()'
../deps/v8/src/base/platform/mutex.h:62: error: ambiguates old declaration 'v8:: base::NativeHandle& v8::base::native_handle()'
../deps/v8/src/base/platform/mutex.h:66: error: 'native_handle_' was not declare d in this scope
../deps/v8/src/base/platform/mutex.h: At global scope:
../deps/v8/src/base/platform/mutex.h:69: error: expected unqualified-id before ' private'
../deps/v8/src/base/platform/mutex.h:89: error: 'friend' used outside of class
../deps/v8/src/base/platform/mutex.h:91: error: expected unqualified-id before ' const'
../deps/v8/src/base/platform/mutex.h:91: error: expected ')' before 'const'
../deps/v8/src/base/platform/mutex.h:91: error: 'void v8::base::operator=(const v8::base::Mutex&)' must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:104: error: expected initializer before '<' token
../deps/v8/src/base/platform/mutex.h:130: error: variable 'v8::RecursiveMutex v8 ::final' has initializer but incomplete type
../deps/v8/src/base/platform/mutex.h:131: error: expected primary-expression bef ore 'public'
../deps/v8/src/base/platform/mutex.h:131: error: expected '}' before 'public'
../deps/v8/src/base/platform/mutex.h:131: error: expected ',' or ';' before 'pub lic'
../deps/v8/src/base/platform/mutex.h:133: error: expected constructor, destructo r, or type conversion before ';' token
../deps/v8/src/base/platform/mutex.h:155: error: 'Mutex' has not been declared
../deps/v8/src/base/platform/mutex.h:155: error: expected initializer before 'Na tiveHandle'
../deps/v8/src/base/platform/mutex.h:157: error: expected constructor, destructo r, or type conversion before '&' token
../deps/v8/src/base/platform/mutex.h:160: error: expected initializer before '&' token
../deps/v8/src/base/platform/mutex.h:164: error: expected unqualified-id before 'private'
../deps/v8/src/base/platform/mutex.h:170: error: expected unqualified-id before 'const'
../deps/v8/src/base/platform/mutex.h:170: error: expected ')' before 'const'
../deps/v8/src/base/platform/mutex.h:170: error: 'void v8::operator=(const v8::R ecursiveMutex&)' must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:184: error: expected initializer before '<' token
../deps/v8/src/base/platform/mutex.h:202: error: template declaration of 'LockGu ard final'
../deps/v8/src/base/platform/mutex.h:203: error: expected primary-expression bef ore 'public'
../deps/v8/src/base/platform/mutex.h:203: error: expected '}' before 'public'
../deps/v8/src/base/platform/mutex.h:205: error: declaration of '~LockGuard' as non-member
../deps/v8/src/base/platform/mutex.h:207: error: expected unqualified-id before 'private'
../deps/v8/src/base/platform/mutex.h:210: error: expected unqualified-id before 'const'
../deps/v8/src/base/platform/mutex.h:210: error: expected ')' before 'const'
../deps/v8/src/base/platform/mutex.h:210: error: 'void operator=(const LockGuard &)' must be a nonstatic member function
../deps/v8/src/base/platform/mutex.h:211: error: expected declaration before '}' token
make[1]: *** [/root/node-v6.2.1/out/Release/obj.target/v8_base/deps/v8/src/acces sors.o] Error 1
make[1]: Leaving directory `/root/node-v6.2.1/out'
make: *** [node] Error 2
centos system info: [root@novaline node-v6.2.1]# head -n 1 /etc/issue
CentOS release 6.8 (Final) |
@mrdulin You need g++ 4.8 or newer, see BUILDING.md for more info. On centos, that means you need to use devtoolset. Aside: building as root is not something I'd recommend. |
@mrdulin I got the same problem. I got the error when ran So, maybe this does |
have you tried v6.9.1? On Wed, Nov 23, 2016, 2:28 PM Robin Chen [email protected] wrote:
|
@thealphanerd yes, it runs! |
hello -
i HOPE this is the correct forum and apologize in advance if it is not. i am interested in trying out io,js on my centOS box. i ran into the following installation issue (below). node.js seemed to install without any issues. i tried both the following:
wget https://iojs.org/download/nightly/v1.5.2-nightly20150313056ed4b0c9/iojs-v1.5.2-nightly20150313056ed4b0c9.tar.gz; configure && make ;
wget https://github.com/iojs/io.js/archive/v1.x.zip ; configure && make ;
(git clone was giving me some odd "forbidden message" so i used the old fashioned way.
here is my installation issue:
g++ '-DV8_TARGET_ARCH_X64' '-DENABLE_DISASSEMBLER' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' -I../deps/v8 -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-strict-aliasing -m64 -O3 -ffunction-sections -fdata-sections -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /root/iojs/iojs/io.js-1.x/out/Release/.deps//root/iojs/iojs/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/accessors.o.d.raw -c -o /root/iojs/iojs/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/accessors.o ../deps/v8/src/accessors.cc
In file included from ../deps/v8/src/v8.h:39,
from ../deps/v8/src/accessors.cc:5:
../deps/v8/src/objects-inl.h: In static member function 'static uint32_t v8::internal::IteratingStringHasher::Hash(v8::internal::String_, uint32_t)':
../deps/v8/src/objects-inl.h:6832: error: 'nullptr' was not declared in this scope
../deps/v8/src/objects-inl.h: In member function 'void v8::internal::ExecutableAccessorInfo::clear_setter()':
../deps/v8/src/objects-inl.h:7039: error: 'nullptr' was not declared in this scope
../deps/v8/src/objects-inl.h:7039: error: unable to deduce 'auto' from ''
make[1]: *_* [/root/iojs/iojs/io.js-1.x/out/Release/obj.target/v8_base/deps/v8/src/accessors.o] Error 1
make[1]: Leaving directory `/root/iojs/iojs/io.js-1.x/out'
make: *** [iojs] Error 2
any help is appreciated.
The text was updated successfully, but these errors were encountered: