Jump to content

[RESOLVED] Unable to build cause of spidermonkey [faulty RAM module]


Clovisnox
 Share

Recommended Posts

Hello guys !

I'm used to compile everyday via svn on Linux Mint. But for a few days I don't seem to be able to achieve the preliminary "update-workspaces.sh"
I tried everything, even removing the 0ad folder and start from scratch. Still pretty much the same issue :

/usr/bin/ld: Lowering-shared.o(.debug_info+0x20000072214): relocalisation vers «.debug_str»: erreur 2/usr/bin/ld: édition de lien finale en échec: Section non-représentable pour la sortiecollect2: error: ld returned 1 exit statusmake[1]: *** [libmozjs24-ps-debug.so] Erreur 1make[1]: quittant le répertoire « /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/build-debug »make: *** [default] Erreur 2

Here is the start of the spidermonkey part

Building SpiderMonkey...

SpiderMonkey build options: --enable-threadsafe --enable-shared-js --disable-tests
--enable-threadsafe --enable-shared-js --disable-tests
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for gawk... gawk
checking for perl5... no
checking for perl... /usr/bin/perl
defined(@array) is deprecated at ../config/milestone.pl line 59.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at ../config/milestone.pl line 59.
(Maybe you should just omit the defined()?)
defined(@array) is deprecated at ../config/milestone.pl line 59.
(Maybe you should just omit the defined()?)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for ranlib... ranlib
checking for as... /usr/bin/as
checking for ar... ar
checking for ld... ld
checking for strip... strip
checking for windres... no
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for tar archiver... checking for gnutar... no
checking for gtar... no
checking for tar... tar
tar
checking for minimum required perl version >= 5.006... 5.018002
checking for full perl installation... yes
checking for python2.7... /usr/bin/python2.7
Creating Python environment
New python executable in /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/build-debug/_virtualenv/bin/python2.7
Also creating executable in /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/build-debug/_virtualenv/bin/python
Installing setuptools............done.
Installing pip...............done.
running build_ext
copying build/lib.linux-x86_64-2.7/_psutil_linux.so ->
copying build/lib.linux-x86_64-2.7/_psutil_posix.so ->

checking Python environment is Mozilla virtualenv... yes
checking for doxygen... :
checking for autoconf... :
checking for xargs... /usr/bin/xargs
checking for make... /usr/bin/make
checking for X... no
checking that static assertion macros used in autoconf tests work... yes
checking for --build-id option to ld... yes
checking whether the C compiler supports -Werror=return-type... yes
checking whether the C compiler supports -Wtype-limits... yes
checking whether the C compiler supports -Wempty-body... yes
checking whether the C compiler supports -Wsign-compare... yes
checking whether the C++ compiler supports -Werror=return-type... yes
checking whether the C++ compiler supports -Wtype-limits... yes
checking whether the C++ compiler supports -Wempty-body... yes
checking whether the C++ compiler supports -Werror=conversion-null... yes
checking whether the C++ compiler supports -Wsign-compare... yes
checking whether the C++ compiler supports -Wno-invalid-offsetof... yes
checking whether ld has archive extraction flags... yes
checking for 64-bit OS... yes
checking for custom implementation... none specified
checking whether the linker supports Identical Code Folding... no
checking whether removing dead symbols breaks debugging... no
checking for ANSI C header files... yes
checking for working const... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for __stdcall... no
checking for ssize_t... yes
checking for st_blksize in struct stat... yes
checking for siginfo_t... yes
checking for the size of void*... 8
checking for endian.h... yes
checking for machine/endian.h... no
checking for sys/isa_defs.h... no
checking for uint... yes
checking for uint_t... no
checking for uname.domainname... yes
checking for uname.__domainname... no
checking for gcc c++0x headers bug without rtti... no
checking for visibility(hidden) attribute... yes
checking for visibility(default) attribute... yes
checking for visibility pragma support... yes
checking For gcc visibility bug with class-level attributes (GCC bug 26905)... no
checking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... no
checking for gcc PR49911... no
checking for gcc pr39608... no
checking for llvm pr8927... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/byteorder.h... no
checking for compat.h... no
checking for getopt.h... yes
checking for sys/bitypes.h... yes
checking for memory.h... yes
checking for unistd.h... yes
checking for gnu/libc-version.h... yes
checking for nl_types.h... yes
checking for malloc.h... yes
checking for X11/XKBlib.h... yes
checking for io.h... no
checking for cpuid.h... yes
checking for sys/statvfs.h... yes
checking for sys/statfs.h... yes
checking for sys/vfs.h... yes
checking for sys/mount.h... yes
checking for sys/quota.h... yes
checking for linux/quota.h... yes
checking for new... yes
checking for sys/cdefs.h... yes
checking for linux/perf_event.h... yes
checking for perf_event_open system call... yes
checking for gethostbyname_r in -lc_r... no
checking for library containing dlopen... -ldl
checking for dlfcn.h... yes
checking for dladdr... yes
checking for socket in -lsocket... no
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking for fchmod... yes
checking for flockfile... yes
checking for getc_unlocked... yes
checking for _getc_nolock... no
checking for getpagesize... yes
checking for lchown... yes
checking for localtime_r... yes
checking for lstat64... yes
checking for memmove... yes
checking for random... yes
checking for rint... no
checking for sbrk... yes
checking for snprintf... yes
checking for stat64... yes
checking for statvfs... yes
checking for statvfs64... yes
checking for strerror... yes
checking for strtok_r... yes
checking for truncate64... yes
checking for wcrtomb... yes
checking for mbrtowc... yes
checking for res_ninit()... yes
checking for gnu_get_libc_version()... yes
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... no
checking whether the C++ "using" keyword resolves ambiguity... yes
checking for C++ dynamic_cast to void*... yes
checking whether C++ requires implementation of unused virtual methods... yes
checking for trouble comparing to zero near std::operator!=()... no
checking for __thread keyword for TLS variables... yes
checking for __attribute__((always_inline))... yes
checking for __attribute__((malloc))... yes
checking for __attribute__((warn_unused_result))... yes
checking for LC_MESSAGES... yes
checking for localeconv... yes
checking for gzread in -lz... yes
checking for valid debug flags... yes
checking for __cxa_demangle... yes
checking for unwind.h... yes
checking for _Unwind_Backtrace... yes
checking for -pipe support... yes
checking whether C compiler supports -fprofile-generate... yes
checking for correct overload resolution with const and templates... no
checking for tm_zone tm_gmtoff in struct tm... yes
checking what kind of list files are supported by the linker... linkerscript
checking what kind of ordering can be done with the linker... none
checking for posix_fallocate... yes
checking for setlocale... yes
checking for localeconv... (cached) yes
updating cache ./config.cache
creating ./config.status
Reticulating splines...
Finished reading 4 moz.build files into 12 descriptors in 0.00s
Backend executed in 0.01s
10 total backend files. 10 created; 0 updated; 0 unchanged
Total wall time: 0.01s; CPU time: 0.01s; Efficiency: 94%
invoking make to create js24-config script
Build configuration changed. Regenerating backend.
Reticulating splines...
Finished reading 4 moz.build files into 12 descriptors in 0.00s
Backend executed in 0.01s
10 total backend files. 0 created; 0 updated; 10 unchanged
Total wall time: 0.01s; CPU time: 0.01s; Efficiency: 100%
rm -f js24-config.tmp



EDIT : after runing clean-workspace.sh and update-workspace.sh again, different output
In file included from /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsapi.h:28:0,
from /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsweakmap.h:10,
from /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsweakmap.cpp:7:
./dist/include/js/HashTable.h: In instantiation of ‘class js::detail::HashTable, js::RelocatableValue>, js::HashMap, js::RelocatableValue, js::DefaultHasher >, js::RuntimeAllocPolicy>::MapHashPolicy, js::RuntimeAllocPolicy>’:
./dist/include/js/HashTable.h:64:10: required from ‘class js::HashMap, js::RelocatableValue, js::DefaultHasher >, js::RuntimeAllocPolicy>’
/home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsweakmap.h:129:7: required from ‘class js::WeakMap, js::RelocatableValue>’
/home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsweakmap.cpp:149:16: required from here
./dist/include/js/HashTable.h:835:39: internal compiler error: Erreur de segmentation
void operator=(MoveRef rhs) {
^
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
c++ -o jsworkers.o -c -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DNO_NSPR_10_SUPPORT -DIMPL_MFBT -DEXPORT_JS_API -DUSE_ZLIB -I../../../mfbt/double-conversion -I../../../intl/icu/source/common -I../../../intl/icu/source/i18n -I.. -I. -I./dist/include -I/usr/include/nspr -I.. -I../assembler -I../yarr -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Werror=conversion-null -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -fno-omit-frame-pointer -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MP -MF .deps/jsworkers.o.pp /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/jsworkers.cpp
jswrapper.cpp
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [jsweakmap.o] Erreur 1
make[1]: *** Attente des tâches non terminées....

(keeps running...)



Thanks in advance for your help

Edited by Clovisnox
Link to comment
Share on other sites

Same kind of output :unknw:

Please submit a full bug report,
with preprocessed source if appropriate.

The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [YarrJIT.o] Erreur 1
make[1]: quittant le répertoire « /home/lou/0ad/libraries/source/spidermonkey/mozjs24/js/src/build-debug »
make: *** [default] Erreur 2
ERROR: SpiderMonkey build failed

Link to comment
Share on other sites

Don't think it did. So we're clear : the problem is my system and not in any case the 0ad sources ?

update-workspaces.sh doesn't build the 0 A.D. sources :) What you're seeing is a compiler bug during the Spidermonkey build (which nobody else has reported), so without more information, it's particular to your system.
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...