Re: MinGW support for SpiderMonkey
Mihai Dobrescu <[email protected]> Mon, 25 Jul 2016 06:14:05 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have advanced a bit further. I have created a directory m:\mozilla with the directory mozjs-45.0.2.mingw containing SpiderMonkey code within.
I have installed MozillaBuild in m:\mozilla-build.
I have installed MinGW64.
I have created a bat with the following contents:
set PATH=M:\mingw-w64\x86_64-6.1.0-win32-seh-rt_v5-rev0\mingw64\x86_64-w64-mingw32\bin;M:\mingw-w64\x86_64-6.1.0-win32-seh-rt_v5-rev0\mingw64\bin;m:\mozilla-build\python;%PATH%
M:\mozilla-build\msys\msys.bat
I've run it.
I've given the following commands in the msys console:
cd M:/mozilla/mozjs-45.0.2.mingw/js/src
autoconf-2.13
mkdir build_DBG.OBJ
cd build_DBG.OBJ
CC=gcc CXX=g++ CPP=cpp AS=as LD=ld ../configure --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 --enable-nspr-build --with-windows-version=603 --disable-accessibility --enable-debug --disable-optimize
It started to perform the configuration and at certain point it fails:
loading cache ./config.cache
checking host system type... x86_64-pc-mingw32
checking target system type... x86_64-pc-mingw32
checking build system type... x86_64-pc-mingw32
checking for mawk... (cached) gawk
checking for perl5... (cached) /bin/perl
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) g++
checking whether the C++ compiler (g++ ) works... yes
checking whether the C++ compiler (g++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /m/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... (cached) windres
checking how to run the C preprocessor... cpp
checking how to run the C++ preprocessor... g++ -TP -E -nologo
checking for rustc... no
checking for w32api version >= 3.14... yes
checking for windres version >= 2.14.90... (GNU
../configure: line 4134: test: (GNU: integer expression expected
checking for highest Windows version supported by this SDK... (cached) 0x0A00
checking for Windows SDK being recent enough... yes
checking for sb-conf... no
checking for ve... no
checking for a BSD compatible install... (cached) /bin/install -c
checking whether ln -s works... (cached) no
checking for tar archiver... checking for gnutar... (cached) tar
tar
checking for minimum required perl version >= 5.006... 5.008008
checking for full perl installation... yes
checking for python2.7... (cached) /m/mozilla-build/python/python2.7
Creating Python environment
checking Python environment is Mozilla virtualenv... yes
checking for doxygen... (cached) :
checking for autoconf... (cached) /bin/autoconf
checking for xargs... (cached) /bin/xargs
checking for make... (cached) /usr/local/bin/make
checking for X... (cached) no
checking that static assertion macros used in autoconf tests work... (cached) yes
checking for --noexecstack option to as... no
checking for -z noexecstack option to ld... no
checking for -z text option to ld... no
checking for --build-id option to ld... yes
checking whether the C++ compiler supports -Wno-inline-new-delete... no
checking whether the C++ compiler supports -Wno-unused-local-typedef... no
checking whether the C++ compiler supports -Wno-unused-local-typedef... (cached) no
checking for 64-bit OS... yes
checking whether the C compiler supports -Wno-format... yes
checking whether the C++ compiler supports -Wno-format... yes
checking for valid debug flags... yes
checking whether the C++ compiler (g++ -mwindows -mms-bitfields -fno-rtti -Wl,--build-id -static) actually is a C++ compiler... yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ssize_t... (cached) yes
checking for endian.h... (cached) no
checking for machine/endian.h... (cached) no
checking for sys/isa_defs.h... (cached) no
checking for gcc c++0x headers bug without rtti... (cached) no
checking whether 64-bits std::atomic requires -latomic... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/byteorder.h... (cached) no
checking for compat.h... (cached) no
checking for getopt.h... (cached) yes
checking for sys/bitypes.h... (cached) no
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) no
checking for nl_types.h... (cached) no
checking for malloc.h... (cached) yes
checking for X11/XKBlib.h... (cached) no
checking for io.h... (cached) yes
checking for cpuid.h... (cached) yes
checking for sys/statvfs.h... (cached) no
checking for sys/statfs.h... (cached) no
checking for sys/vfs.h... (cached) no
checking for sys/mount.h... (cached) no
checking for sys/quota.h... (cached) no
checking for linux/quota.h... (cached) no
checking for sys/cdefs.h... (cached) yes
checking for linux/perf_event.h... (cached) no
checking for gethostbyname_r in -lc_r... (cached) no
checking for library containing dlopen... (cached) no
checking for socket in -lsocket... (cached) no
checking for pthread_create in -lpthreads... (cached) no
checking for pthread_create in -lpthread... (cached) yes
checking whether gcc -mwindows accepts -pthread... yes
checking whether gcc -mwindows needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for getc_unlocked... (cached) no
checking for _getc_nolock... (cached) yes
checking for gmtime_r... (cached) no
checking for localtime_r... (cached) no
checking for clock_gettime(CLOCK_MONOTONIC)... (cached)
checking for sin in -lm... (cached) yes
checking for __sincos in -lm... (cached) no
checking for log2... (cached) yes
checking for log1p... (cached) yes
checking for expm1... (cached) yes
checking for sqrt1pm1... (cached) no
checking for acosh... (cached) yes
checking for asinh... (cached) yes
checking for atanh... (cached) yes
checking for cbrt... (cached) yes
checking for wcrtomb... (cached) yes
checking for mbrtowc... (cached) yes
checking for res_ninit()... (cached) no
checking for nl_langinfo and CODESET... (cached) no
checking for an implementation of va_copy()... (cached) yes
checking whether va_list can be copied by value... (cached) yes
checking whether the C++ "using" keyword resolves ambiguity... (cached) yes
checking for C++ dynamic_cast to void*... (cached) yes
checking for __thread keyword for TLS variables... (cached) yes
checking for __attribute__((always_inline))... (cached) yes
checking for LC_MESSAGES... (cached) no
checking for localeconv... (cached) yes
checking NSPR selection... source-tree
checking for gzread in -lz... (cached) yes
checking for __cxa_demangle... (cached) yes
checking for -pipe support... yes
checking whether C compiler supports -fprofile-generate... yes
checking for tm_zone tm_gmtoff in struct tm... (cached) no
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_fadvise... (cached) no
checking for posix_fallocate... (cached) no
checking for malloc.h... (cached) yes
checking for alloca.h... (cached) no
checking for strndup... (cached) no
checking for posix_memalign... (cached) no
checking for memalign... (cached) no
checking for malloc_usable_size... (cached) no
checking for malloc.h... (cached) yes
checking whether malloc_usable_size definition can use const argument... yes
checking for valloc in malloc.h... no
checking for valloc in unistd.h... no
checking for setlocale... (cached) yes
checking for localeconv... (cached) yes
creating ./config.status
'onfig.guess' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "./config.status", line 428, in <module>
config_status(**args)
File "m:\mozilla\mozjs-45.0.2.mingw\python\mozbuild\mozbuild\config_status.py", line 160, in config_status
emitter = TreeMetadataEmitter(env)
File "m:\mozilla\mozjs-45.0.2.mingw\python\mozbuild\mozbuild\frontend\emitter.py", line 115, in __init__
mozinfo.find_and_update_from_json(config.topobjdir)
File "m:\mozilla\mozjs-45.0.2.mingw\testing\mozbase\mozinfo\mozinfo\mozinfo.py", line 214, in find_and_update_from_json
json_path = _os.path.join(build.topobjdir, "mozinfo.json")
File "m:\mozilla\mozjs-45.0.2.mingw\python\mozbuild\mozbuild\base.py", line 219, in topobjdir
self.topsrcdir, self.mozconfig, default='obj-@CONFIG_GUESS@')
File "m:\mozilla\mozjs-45.0.2.mingw\python\mozbuild\mozbuild\base.py", line 208, in resolve_mozconfig_topobjdir
MozbuildObject.resolve_config_guess(mozconfig, topsrcdir))
File "m:\mozilla\mozjs-45.0.2.mingw\python\mozbuild\mozbuild\base.py", line 402, in resolve_config_guess
subprocess.check_output(args, cwd=topsrcdir).strip())
File "m:\mozilla-build\python\Lib\subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['C:\\Windows\\SysWOW64\\cmd.exe', u'-c', u'm:/mozilla/mozjs-45.0.2.mingw/build/autoconf/config.guess']' returned non-zero exit status 1
It seems there is an overflow somewhere. The part with 'onfig.guess' differs according to the path where the sources are installed. I am no python programmer. Has anybody any hint what to look for?
Thanks.