-
Notifications
You must be signed in to change notification settings - Fork 5.8k
PhantomJS linux compile error #13568
Comments
Sorry for the delay getting back to you about this.
This error message almost always means that your computer ran out of memory. A full build of PhantomJS requires roughly 4GB of RAM per CPU core, and by default it uses all the cores you have available. You can reduce the memory requirement by building like this:
... unfortunately, that will make it even slower than it already is. |
@zackw I got the same issue - I ran with 4 cores thinking this would speed things up - and it certainly did utilize most of the available processing power. I failed with this error:
Then I tried again after a few days with a single job and got this far:
Any thoughts? Welcome to Ubuntu 15.10 (GNU/Linux 3.4.39 armv7l) Linux 3.4.39 #1 SMP PREEMPT Mon Oct 12 12:02:29 CEST 2015 armv7l armv7l armv7l GNU/Linux Thanks. |
@alexellis I am using the same architecture and OS as yours (Ubuntu 15.10, armv7l). Are you able to build now? Is it possible to share your prebuilt binaries? |
Sorry, I don't really have time at the moment. If you look at Arch Linux they build and ship this. @yunqu |
Trying to compile PhantomJS on Debian 8.1. I'm getting following error when running build.sh:
Building Qt...
cd src/ && ( test -e Makefile || /var/www/phantomjs/src/qt/qtbase/bin/qmake /var/www/phantomjs/src/qt/qtbase/src/src.pro -o Makefile ) && make -f Makefile
make[1]: Entering directory '/var/www/phantomjs/src/qt/qtbase/src'
cd tools/bootstrap/ && ( test -e Makefile || /var/www/phantomjs/src/qt/qtbase/bin/qmake /var/www/phantomjs/src/qt/qtbase/src/tools/bootstrap/bootstrap.pro -o Makefile ) && make -f Makefile
make[2]: Entering directory '/var/www/phantomjs/src/qt/qtbase/src/tools/bootstrap'
g++ -c -pipe -ffunction-sections -O2 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_QMAKE_LOCATION="/var/www/phantomjs/src/qt/qtbase/bin/qmake" -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../../mkspecs/linux-g++ -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../../include/QtCore/5.3.0 -I../../../include/QtCore/5.3.0/QtCore -I/var/www/phantomjs/src/qt/qtbase/include/QtXml/5.3.0 -I/var/www/phantomjs/src/qt/qtbase/include/QtXml/5.3.0/QtXml -o .obj/qvariant.o ../../corelib/kernel/qvariant.cpp
{standard input}: Assembler messages:
{standard input}:18672: Warning: end of file not at end of a line; newline inserted
{standard input}:20007: Error: unknown pseudo-op: `.lhotb23'
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
Makefile:4678: recipe for target '.obj/qvariant.o' failed
make[2]: *** [.obj/qvariant.o] Error 4
make[2]: Leaving directory '/var/www/phantomjs/src/qt/qtbase/src/tools/bootstrap'
Makefile:54: recipe for target 'sub-bootstrap-make_first' failed
make[1]: *** [sub-bootstrap-make_first] Error 2
make[1]: Leaving directory '/var/www/phantomjs/src/qt/qtbase/src'
Makefile:39: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2
Any ideas on how to fix this?
The text was updated successfully, but these errors were encountered: