soumyadeep Posted October 9, 2010 Report Share Posted October 9, 2010 when compiling spidermonkey-tip through the build.sh script I'm having the following configure errors:└─> ./build.sh Building SpiderMonkey...creating cache ./config.cachechecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking build system type... x86_64-unknown-linux-gnuchecking for mawk... nochecking for gawk... gawkchecking for gcc... gccchecking whether the C compiler (gcc ) works... yeschecking whether the C compiler (gcc ) is a cross-compiler... nochecking whether we are using GNU C... yeschecking whether gcc accepts -g... yeschecking for c++... c++checking whether the C++ compiler (c++ ) works... yeschecking whether the C++ compiler (c++ ) is a cross-compiler... nochecking whether we are using GNU C++... yeschecking whether c++ accepts -g... yeschecking for ranlib... ranlibchecking for as... /usr/bin/aschecking for ar... archecking for ld... ldchecking for strip... stripchecking for windres... nochecking whether gcc and cc understand -c and -o together... yeschecking how to run the C preprocessor... gcc -Echecking how to run the C++ preprocessor... c++ -Echecking for sb-conf... nochecking for ve... nochecking for a BSD compatible install... /bin/install -cchecking whether ln -s works... yeschecking for perl5... nochecking for perl... /usr/bin/perlchecking for minimum required perl version >= 5.006... 5.012001checking for full perl installation... yeschecking for python... /usr/bin/pythonchecking for doxygen... :checking for whoami... /usr/bin/whoamichecking for autoconf... /usr/bin/autoconfchecking for unzip... /usr/bin/unzipchecking for zip... /usr/bin/zipchecking for makedepend... nochecking for xargs... /usr/bin/xargschecking for gmake... nochecking for make... /usr/share/perl5/vendor_perl/auto/share/dist/Cope/makechecking for X... libraries , headers checking for dnet_ntoa in -ldnet... nochecking for dnet_ntoa in -ldnet_stub... nochecking for gethostbyname... yeschecking for connect... yeschecking for remove... yeschecking for shmat... yeschecking for IceConnectionNumber in -lICE... yeschecking whether the compiler supports -Wno-invalid-offsetof... yeschecking whether the compiler supports -Wno-variadic-macros... yeschecking whether ld has archive extraction flags... yeschecking that static assertion macros used in autoconf tests work... yeschecking for 64-bit OS... yeschecking for ANSI C header files... yeschecking for working const... yeschecking for mode_t... yeschecking for off_t... yeschecking for pid_t... yeschecking for size_t... yeschecking for st_blksize in struct stat... yeschecking for siginfo_t... yeschecking for stdint.h... yeschecking for the size of void*... 8checking for the alignment of void*... 8checking for the size of double... 8checking for int16_t... yeschecking for int32_t... yeschecking for int64_t... yeschecking for int64... nochecking for uint... yeschecking for uint_t... nochecking for uint16_t... nochecking for uname.domainname... yeschecking for uname.__domainname... nochecking for visibility(hidden) attribute... yeschecking for visibility(default) attribute... yeschecking for visibility pragma support... yeschecking For gcc visibility bug with class-level attributes (GCC bug 26905)... nochecking For x86_64 gcc visibility bug with builtins (GCC bug 20297)... nochecking for dirent.h that defines DIR... yeschecking for opendir in -ldir... nochecking for sys/byteorder.h... nochecking for compat.h... nochecking for getopt.h... yeschecking for sys/bitypes.h... yeschecking for memory.h... yeschecking for unistd.h... yeschecking for gnu/libc-version.h... yeschecking for nl_types.h... yeschecking for malloc.h... yeschecking for X11/XKBlib.h... yeschecking for sys/statvfs.h... yeschecking for sys/statfs.h... yeschecking for sys/vfs.h... yeschecking for sys/mount.h... yeschecking for mmintrin.h... yeschecking for new... yeschecking for sys/cdefs.h... yeschecking for gethostbyname_r in -lc_r... nochecking for atan in -lm... yeschecking for dlopen in -ldl... yeschecking for dlfcn.h... yeschecking for dladdr... yeschecking for socket in -lsocket... nochecking for pthread_create in -lpthreads... /usr/bin/ld: cannot find -lpthreadscollect2: ld returned 1 exit statusyeschecking whether gcc accepts -pthread... yeschecking whether mmap() sees write()s... nochecking whether gcc needs -traditional... nochecking for 8-bit clean memcmp... nochecking for fchmod... nochecking for flockfile... nochecking for getc_unlocked... nochecking for _getc_nolock... nochecking for getpagesize... nochecking for lchown... nochecking for localtime_r... nochecking for lstat64... nochecking for memmove... nochecking for random... nochecking for rint... nochecking for sbrk... nochecking for snprintf... nochecking for stat64... nochecking for statvfs... nochecking for statvfs64... nochecking for strerror... nochecking for strtok_r... nochecking for truncate64... nochecking for wcrtomb... nochecking for mbrtowc... nochecking for res_ninit()... nochecking for gnu_get_libc_version()... nochecking for iconv in -lc... nochecking for iconv in -liconv... nochecking for libiconv in -liconv... nochecking for iconv()... nochecking for an implementation of va_copy()... nochecking for an implementation of __va_copy()... nochecking whether va_lists can be copied by value... nochecking for C++ exceptions flag... -fno-exceptionschecking for gcc 3.0 ABI... yeschecking for C++ "explicit" keyword... yeschecking for C++ "typename" keyword... yeschecking for modern C++ template specialization syntax support... yeschecking whether partial template specialization works... yeschecking whether operators must be re-defined for templates derived from templates... nochecking whether we need to cast a derived template to pass as its base class... nochecking whether the compiler can resolve const ambiguities for templates... yeschecking whether the C++ "using" keyword can change access... yeschecking whether the C++ "using" keyword resolves ambiguity... yeschecking for "std::" namespace... yeschecking whether standard template operator!=() is ambiguous... unambiguouschecking for C++ reinterpret_cast... yeschecking for C++ dynamic_cast to void*... nochecking whether C++ requires implementation of unused virtual methods... yeschecking for trouble comparing to zero near std::operator!=()... nochecking for LC_MESSAGES... yeschecking for valid debug flags... yeschecking for __cxa_demangle... nochecking for unwind.h... yeschecking for _Unwind_Backtrace... nochecking for gcc -pipe support... dummy-hello.c: In function 'main':dummy-hello.c:2:39: warning: incompatible implicit declaration of built-in function 'exit'yeschecking whether compiler supports -Wno-long-long... yeschecking whether C compiler supports -fprofile-generate... yeschecking whether C++ compiler has -pedantic long long bug... nochecking for correct temporary object destruction order... noconfigure: error: Your compiler does not follow the C++ specification for temporary object destruction order.I have all the build dependencies installed, this happens while compiling both the 0ad-unix-build.tar.xz file and from svn. I'm using 64bit arch fully updated. Quote Link to comment Share on other sites More sharing options...
soumyadeep Posted October 9, 2010 Author Report Share Posted October 9, 2010 (edited) and here is the config.log from the build-debug directory...config.log Edited October 9, 2010 by soumyadeep Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 9, 2010 Report Share Posted October 9, 2010 configure:12691: c++ -o conftest -fno-strict-aliasing -pthread -pipe -lpthreads conftest.C -ldl -lm 1>&5/usr/bin/ld: cannot find -lpthreadscollect2: ld returned 1 exit statusThat seems to be the eventual cause of the error. The first signs are where it saysconfigure:9449: checking for pthread_create in -lpthreadsgcc -o dummy dummy.c -fno-strict-aliasing -lpthreads -ldl -lm configure:9577: checking whether gcc accepts -pthreadconfigure:9695: checking whether mmap() sees write()sconfigure:9738: gcc -o conftest -fno-strict-aliasing -pthread -lpthreads conftest.c -ldl -lm 1>&5/usr/bin/ld: cannot find -lpthreadscollect2: ld returned 1 exit statuswhereas on my (Gentoo) machine it saysconfigure:9449: checking for pthread_create in -lpthreadsgcc -o dummy dummy.c -fno-strict-aliasing -lpthreads -ldl -lm/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreadscollect2: ld returned 1 exit statusconfigure:9472: checking for pthread_create in -lpthreadgcc -o dummy dummy.c -fno-strict-aliasing -lpthread -ldl -lmconfigure:9577: checking whether gcc accepts -pthreadconfigure:9695: checking whether mmap() sees write()sconfigure:9738: gcc -o conftest -fno-strict-aliasing -pthread -lpthread conftest.c -ldl -lm 1>&5configure:9763: checking whether gcc needs -traditionalSo it looks like your system is accepting the "-lpthreads" command the first time in the dummy program, but not later when it tries to actually use it. Do you have a /usr/lib/libpthreads.so and/or /usr/lib/libpthread.so? What version of GCC do you have? Quote Link to comment Share on other sites More sharing options...
soumyadeep Posted October 9, 2010 Author Report Share Posted October 9, 2010 Yes, I do have a libpthread.so under /usr/lib , my gcc version is 4.5.1. Quote Link to comment Share on other sites More sharing options...
soumyadeep Posted October 9, 2010 Author Report Share Posted October 9, 2010 @ykkrosh, as u said gcc was not accepting -lpthreads, and there is no libpthreads.so, only a libpthread.so. I replace all the -lpthreads from spidermonkeys configure script with -lpthread, and it work fine! Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 11, 2010 Report Share Posted October 11, 2010 Hmm, it really ought to be detecting the right library and switching automatically. I've got no idea why it's not Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.