Quantcast

MinGW support for SpiderMonkey

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

MinGW support for SpiderMonkey

Mihai Dobrescu
Hello,

I need to bind MinGW compatible libs under Windows.
How could I do that?

Thanks.
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
On Saturday, July 23, 2016 at 11:04:28 PM UTC+3, Mihai Dobrescu wrote:
> Hello,
>
> I need to bind MinGW compatible libs under Windows.
> How could I do that?
>
> Thanks.

I mean, how could I build SpiderMonkey 45 with mingw in order to link it to a mingw project. Nobody?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
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.
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
Fixed this, the error was due to a typo in MOZILLABUILD environment variable.

Now, the configuration finishes successfully and I have to figure out how to run mach and see what build issues occur.


_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
> Fixed this, the error was due to a typo in MOZILLABUILD environment variable.
>
> Now, the configuration finishes successfully and I have to figure out how to run mach and see what build issues occur.

I can't run mach. How is this supposed to work?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Tom Schuster
You have to run make inside the OBJ folder.

On Jul 26, 2016 14:35, "Mihai Dobrescu" <[hidden email]> wrote:

> On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
> > Fixed this, the error was due to a typo in MOZILLABUILD environment
> variable.
> >
> > Now, the configuration finishes successfully and I have to figure out
> how to run mach and see what build issues occur.
>
> I can't run mach. How is this supposed to work?
> _______________________________________________
> dev-tech-js-engine mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
On Tuesday, July 26, 2016 at 5:48:10 PM UTC+3, Tom Schuster wrote:

> You have to run make inside the OBJ folder.
>
> On Jul 26, 2016 14:35, "Mihai Dobrescu" <[hidden email]> wrote:
>
> > On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
> > > Fixed this, the error was due to a typo in MOZILLABUILD environment
> > variable.
> > >
> > > Now, the configuration finishes successfully and I have to figure out
> > how to run mach and see what build issues occur.
> >
> > I can't run mach. How is this supposed to work?
> > _______________________________________________
> > dev-tech-js-engine mailing list
> > [hidden email]
> > https://lists.mozilla.org/listinfo/dev-tech-js-engine
> >

Hello,

Thanks for the info. It is not the first time I build something under MinGW.
Still I miss something.
It doesn't work:

$ make
m:/mozilla/mozjs-45.0.2.mingw/config/baseconfig.mk:28: *** MSYS make is not supported.  Stop.

Could you please give me the configuration steps, probably I do something wrong.
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Steve Fink-4
On 07/26/2016 10:30 AM, Mihai Dobrescu wrote:

> On Tuesday, July 26, 2016 at 5:48:10 PM UTC+3, Tom Schuster wrote:
>> You have to run make inside the OBJ folder.
>>
>> On Jul 26, 2016 14:35, "Mihai Dobrescu" <[hidden email]> wrote:
>>
>>> On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
>>>> Fixed this, the error was due to a typo in MOZILLABUILD environment
>>> variable.
>>>>
>>>> Now, the configuration finishes successfully and I have to figure out
>>> how to run mach and see what build issues occur.
>>>
>>> I can't run mach. How is this supposed to work?
>>> _______________________________________________
>
> Hello,
>
> Thanks for the info. It is not the first time I build something under MinGW.
> Still I miss something.
> It doesn't work:
>
> $ make
> m:/mozilla/mozjs-45.0.2.mingw/config/baseconfig.mk:28: *** MSYS make is not supported.  Stop.
>
> Could you please give me the configuration steps, probably I do something wrong.

MozillaBuild ships with 'mozmake', which if I understand correctly is
pretty much just gmake compiled for msys. So running mozmake in place of
make will fix the above error, and the above error is not an indication
that anything else is wrong.

This is mentioned in the comment

   # Use "mozmake" on Windows

at

 
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

By the way, you could also generate a Windows build by running
|js/src/devtools/automation/autospider.py plain|. If that works, you can
use it as a model for what configuration parameters etc. it wants. (It's
not really a useful tool for managing your own builds, so I'm not
recommending it for anything other than an example build.)

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
On Wednesday, July 27, 2016 at 2:06:24 AM UTC+3, Steve Fink wrote:

> On 07/26/2016 10:30 AM, Mihai Dobrescu wrote:
> > On Tuesday, July 26, 2016 at 5:48:10 PM UTC+3, Tom Schuster wrote:
> >> You have to run make inside the OBJ folder.
> >>
> >> On Jul 26, 2016 14:35, "Mihai Dobrescu" <[hidden email]> wrote:
> >>
> >>> On Tuesday, July 26, 2016 at 8:46:10 AM UTC+3, Mihai Dobrescu wrote:
> >>>> Fixed this, the error was due to a typo in MOZILLABUILD environment
> >>> variable.
> >>>>
> >>>> Now, the configuration finishes successfully and I have to figure out
> >>> how to run mach and see what build issues occur.
> >>>
> >>> I can't run mach. How is this supposed to work?
> >>> _______________________________________________
> >
> > Hello,
> >
> > Thanks for the info. It is not the first time I build something under MinGW.
> > Still I miss something.
> > It doesn't work:
> >
> > $ make
> > m:/mozilla/mozjs-45.0.2.mingw/config/baseconfig.mk:28: *** MSYS make is not supported.  Stop.
> >
> > Could you please give me the configuration steps, probably I do something wrong.
>
> MozillaBuild ships with 'mozmake', which if I understand correctly is
> pretty much just gmake compiled for msys. So running mozmake in place of
> make will fix the above error, and the above error is not an indication
> that anything else is wrong.
>
> This is mentioned in the comment
>
>    # Use "mozmake" on Windows
>
> at
>
>  
> https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation
>
> By the way, you could also generate a Windows build by running
> |js/src/devtools/automation/autospider.py plain|. If that works, you can
> use it as a model for what configuration parameters etc. it wants. (It's
> not really a useful tool for managing your own builds, so I'm not
> recommending it for anything other than an example build.)

Hello,

I think you know I need a MinGW build. Actually, a MinGW64 bit.
For MSVC, here is what I do and it works every time:

I use start-shell-msvc2015-x64.bat and I type in that console:

cd M:/mozilla/mozjs-45.0.2/js/src
autoconf-2.13
mkdir build_DBG.OBJ
cd build_DBG.OBJ
../configure  --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 --enable-nspr-build --enable-debug --disable-optimize
mozmake

For MinGW, I have MinGW64.

I have created mingw.bat containing:

set PATH=M:\Development\codeblocks\mingw-w64\x86_64-6.1.0-win32-seh-rt_v5-rev0\mingw64\x86_64-w64-mingw32\bin;M:\Development\codeblocks\mingw-w64\x86_64-6.1.0-win32-seh-rt_v5-rev0\mingw64\bin;m:\mozilla-build\python;%PATH%
set MOZILLABUILD=M:\mozilla-build
%MOZILLABUILD%\msys\msys.bat

Then, run mingw.bat and do in the console:

cd M:/mozilla/mozjs-45.0.2.mingw/js/src
autoconf-2.13
mkdir build_DBG.OBJ
cd build_DBG.OBJ
CC="gcc -m64" CXX="g++ -m64 -std=c++14" CPP=cpp CXXCPP="g++ -m64 -std=c++14" AS=as AR=ar LD=ld ../configure --target=x86_64-pc-mingw64 --host=x86_64-pc-mingw64 --enable-nspr-build --with-windows-version=603 --disable-accessibility --enable-debug --disable-optimize
mozmake

and the output is:

mozmake[1]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/bin _build_manifests/install/dist_bin
From dist/bin: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/branding _build_manifests/install/dist_branding
From dist/branding: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/idl _build_manifests/install/dist_idl
From dist/idl: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/include _build_manifests/install/dist_include
From dist/include: Kept 143 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/public _build_manifests/install/dist_public
From dist/public: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/private _build_manifests/install/dist_private
From dist/private: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/sdk _build_manifests/install/dist_sdk
From dist/sdk: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove dist/xpi-stage _build_manifests/install/dist_xpi-stage
From dist/xpi-stage: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/_virtualenv/Scripts/python.exe -m mozbuild.action.process_install_manifest --no-remove _tests _build_manifests/install/_tests
From _tests: Kept 0 existing; Added/updated 0; Removed 0 files and 0 directories.
m:/mozilla-build/mozmake/mozmake recurse_export
mozmake[2]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/config'
mozmake[3]: Nothing to be done for 'export'.
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/config'
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/build'
mozmake[3]: Nothing to be done for 'export'.
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/build'
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
mozmake[3]: Nothing to be done for 'export'.
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/mozglue/build'
mozmake[3]: Nothing to be done for 'export'.
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/mozglue/build'
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/config/external/nspr'
cat: ../../../config/buildid: No such file or directory
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "m:\mozilla-build\python\Lib\_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "m:\mozilla-build\python\Lib\_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data '' does not match format '%Y%m%d%H%M%S'
m:/mozilla-build/mozmake/mozmake -C ../../../nsprpub export SH_DATE="-- ::" SH_NOW="000000" SHARED_LIBRARY= IMPORT_LIBRARY= SHARED_LIB_PDB=
mozmake[4]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub'
m:/mozilla-build/mozmake/mozmake -C config export
mozmake[5]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/config'
rm -f m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/dist/bin/nspr-config
mozmake[5]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/config'
m:/mozilla-build/mozmake/mozmake -C pr export
mozmake[5]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr'
m:/mozilla-build/mozmake/mozmake -C include export
mozmake[6]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr/include'
m:/mozilla-build/mozmake/mozmake -C md export
mozmake[7]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr/include/md'
nsinstall -m 444 m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_unixware7.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_hpux32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_symbian.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_aix64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_unixware.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_irix64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_scoos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_freebsd.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_solaris.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_netbsd.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_win95.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_winnt.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_irix32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_beos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_bsdi.cfg m:/mozilla/mo
 zjs-45.0.2.mingw/nsprpub/pr/include/md/_darwin.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_qnx.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_linux.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_os2.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_hpux64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_aix32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_dgux.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_riscos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_osf1.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_nto.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_openbsd.cfg m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/dist/include/nspr/md
process_begin: CreateProcess(NULL, nsinstall -m 444 m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_unixware7.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_hpux32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_symbian.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_aix64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_unixware.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_irix64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_scoos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_freebsd.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_solaris.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_netbsd.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_win95.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_winnt.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_irix32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_beos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr
 /include/md/_bsdi.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_darwin.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_qnx.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_linux.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_os2.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_hpux64.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_aix32.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_dgux.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_riscos.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_osf1.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_nto.cfg m:/mozilla/mozjs-45.0.2.mingw/nsprpub/pr/include/md/_openbsd.cfg m:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/dist/include/nspr/md, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:22: recipe for target 'export' failed
mozmake[7]: *** [export] Error 2
mozmake[7]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr/include/md'
m:/mozilla/mozjs-45.0.2.mingw/nsprpub/config/rules.mk:163: recipe for target 'export' failed
mozmake[6]: *** [export] Error 2
mozmake[6]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr/include'
m:/mozilla/mozjs-45.0.2.mingw/nsprpub/config/rules.mk:163: recipe for target 'export' failed
mozmake[5]: *** [export] Error 2
mozmake[5]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub/pr'
m:/mozilla/mozjs-45.0.2.mingw/nsprpub/config/rules.mk:163: recipe for target 'export' failed
mozmake[4]: *** [export] Error 2
mozmake[4]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/nsprpub'
Makefile:47: recipe for target 'export' failed
mozmake[3]: *** [export] Error 2
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/config/external/nspr'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:79: recipe for target 'config/external/nspr/export' failed
mozmake[2]: *** [config/external/nspr/export] Error 2
mozmake[2]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:32: recipe for target 'export' failed
mozmake[1]: *** [export] Error 2
mozmake[1]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:547: recipe for target 'default' failed
mozmake: *** [default] Error 2

What do I do wrong?


_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
I have advanced a bit further.
I have added nsinstall.exe to the path out from mozilla-build package.
Now, it compiles a while and throws another error:

...
mozmake[3]: Entering directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
mkdir -p '.deps/'
jemalloc.o
gcc -m64 -mwindows -o jemalloc.o -c  -DMOZ_JEMALLOC_HARD_ASSERTS -Dabort=moz_abort -DMOZ_JEMALLOC_IMPL -Im:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc -I. -Im:/mozilla/mozjs-45.0.2.mingw/memory/build -I../../dist/include  -Im:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/dist/include/nspr          -include ../../js/src/js-confdefs.h -DMOZILLA_CLIENT -MD -MP -MF .deps/jemalloc.o.pp  -Wall -Wsign-compare -Wtype-limits -Wno-unused -Wcast-align -Wno-format -std=gnu99 -fgnu89-inline -mms-bitfields -fno-math-errno -pthread -pipe  -DDEBUG -DTRACING -g -O -fno-omit-frame-pointer   -Wshadow   m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:228:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning( disable: 4267 4996 4146 )

m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:236:0: warning: "PATH_MAX" redefined
 #define PATH_MAX MAX_PATH

In file included from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/limits.h:168:0,
                 from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/syslimits.h:7,
                 from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/6.1.0/include-fixed/limits.h:34,
                 from m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/include/stdlib.h:10,
                 from m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:213:
m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/x86_64-w64-mingw32/include/limits.h:20:0: note: this is the location of the previous definition
 #define PATH_MAX 260

m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:247:0: warning: ignoring #pragma intrinsic  [-Wunknown-pragmas]
 #pragma intrinsic(_BitScanForward)

m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:248:1: error: multiple storage classes in declaration specifiers
 static __forceinline int
 ^~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:249:1: warning: declaration of 'ffs' shadows a built-in function [-Wshadow]
 ffs(int x)
 ^~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6788:1: warning: '_recalloc' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 _recalloc(void *ptr, size_t count, size_t size)
 ^~~~~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6815:1: warning: '_expand' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 _expand(void *ptr, size_t newsize)
 ^~~~~~~
m:/mozilla/mozjs-45.0.2.mingw/memory/mozjemalloc/jemalloc.c:6824:1: warning: '_msize' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
 _msize(void *ptr)
 ^~~~~~
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:916: recipe for target 'jemalloc.o' failed
mozmake[3]: *** [jemalloc.o] Error 1
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/memory/mozjemalloc'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:71: recipe for target 'memory/mozjemalloc/target' failed
mozmake[2]: *** [memory/mozjemalloc/target] Error 2
mozmake[2]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:32: recipe for target 'compile' failed
mozmake[1]: *** [compile] Error 2
mozmake[1]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:547: recipe for target 'default' failed
mozmake: *** [default] Error 2

Some hint?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
On Saturday, July 23, 2016 at 11:04:28 PM UTC+3, Mihai Dobrescu wrote:
> Hello,
>
> I need to bind MinGW compatible libs under Windows.
> How could I do that?
>
> Thanks.

Due to this error, "multiple storage classes in declaration specifiers", I have disabled jemalloc build using the switch --disable-jemalloc, for now. Still, is there anybody with the right solution for jemalloc in this context?

The next thing is that I have missed something, as it can't find some libs during build:

g++ -m64 -std=c++14 -mwindows -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/i18n -DU_HAVE_NL_LANGINFO_CODESET=0    -DU_DEBUG=1 -DHAVE_DLOPEN=0 -DU_HAVE_ATOMIC=1 -DU_HAVE_MMAP=0  -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common   "-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION  -Wall -Wsign-compare -Wtype-limits -Wno-invalid-offsetof -Wcast-align -Wno-format -mms-bitfields -frtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -g -mthreads   -c -DPIC  -o unifiedcache.o m:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common/unifiedcache.cpp
g++ -m64 -std=c++14 -mwindows -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/i18n -DU_HAVE_NL_LANGINFO_CODESET=0    -DU_DEBUG=1 -DHAVE_DLOPEN=0 -DU_HAVE_ATOMIC=1 -DU_HAVE_MMAP=0  -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common   "-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION  -Wall -Wsign-compare -Wtype-limits -Wno-invalid-offsetof -Wcast-align -Wno-format -mms-bitfields -frtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -g -mthreads   -c -DPIC  -o uloc_keytype.o m:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common/uloc_keytype.cpp
g++ -m64 -std=c++14 -mwindows -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DUCONFIG_NO_LEGACY_CONVERSION -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_BREAK_ITERATION -DU_CHARSET_IS_UTF8 -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/i18n -DU_HAVE_NL_LANGINFO_CODESET=0    -DU_DEBUG=1 -DHAVE_DLOPEN=0 -DU_HAVE_ATOMIC=1 -DU_HAVE_MMAP=0  -Im:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common   "-DDEFAULT_ICU_PLUGINS=\"/usr/local/lib/icu\" " -DU_ATTRIBUTE_DEPRECATED= -DU_COMMON_IMPLEMENTATION  -Wall -Wsign-compare -Wtype-limits -Wno-invalid-offsetof -Wcast-align -Wno-format -mms-bitfields -frtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -g -mthreads   -c -DPIC  -o pluralmap.o m:/mozilla/mozjs-45.0.2.mingw/intl/icu/source/common/pluralmap.cpp
g++ -m64 -std=c++14 -mwindows -Wall -Wsign-compare -Wtype-limits -Wno-invalid-offsetof -Wcast-align -Wno-format -mms-bitfields -frtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -g -mthreads   -lpthread  -Wl,--build-id -static   -shared -Wl,-Bsymbolic -Wl,--enable-auto-import -Wl,--out-implib=../lib/libicuuc.dll.a  -o ../lib/icuuc56.dll errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o uinit.o uobject.o cmemory.o charstr.o udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o lo
 clikely.o locresdata.o bytestream.o stringpiece.o stringtriebuilder.o bytestriebuilder.o bytestrie.o bytestrieiterator.o ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o dictionarydata.o appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o loadednormalizer2impl.o chariter.o schriter.o uchriter.o uiter.o patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o uscript.o uscript_props.o usc_impl.o unames.o utrie.o utrie2.o utrie2_builder.o bmpset.o unisetspan.o uset_props.o uniset_props.o uniset_closure.o uset.o uniset.o usetiter.o ruleiter.o caniter.o unifilt.o unifunct.o uarrsort.o brkiter.o ubrk.o brkeng.o dictb
 e.o filteredbrk.o rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o uidna.o usprep.o uts46.o punycode.o util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o ulistformatter.o sharedobject.o simplepatternformatter.o unifiedcache.o uloc_keytype.o pluralmap.o -L../lib -L../stubdata -licudt56 -lpthread -lm
m:/Development/codeblocks/mingw-w64/x86_64-6.1.0-win32-seh-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -licudt56
collect2.exe: error: ld returned 1 exit status
Makefile:207: recipe for target '../lib/icuuc56.dll' failed
mozmake[5]: *** [../lib/icuuc56.dll] Error 1
mozmake[5]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/intl/icu/target/common'
Makefile:147: recipe for target 'all-recursive' failed
mozmake[4]: *** [all-recursive] Error 2
mozmake[4]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/intl/icu/target'
Makefile:59: recipe for target 'buildicu' failed
mozmake[3]: *** [buildicu] Error 2
mozmake[3]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ/config/external/icu'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:71: recipe for target 'config/external/icu/target' failed
mozmake[2]: *** [config/external/icu/target] Error 2
mozmake[2]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/recurse.mk:32: recipe for target 'compile' failed
mozmake[1]: *** [compile] Error 2
mozmake[1]: Leaving directory 'm:/mozilla/mozjs-45.0.2.mingw/js/src/build_DBG.OBJ'
m:/mozilla/mozjs-45.0.2.mingw/config/rules.mk:547: recipe for target 'default' failed
mozmake: *** [default] Error 2

I see the lib is called "libicudt.dll.a". Shouldn't it be "libicudt56.dll.a"? It is created in mozjs-45.0.2.mingw\js\src\build_DBG.OBJ\intl\icu\target\stubdata, it should find it there too as I see "-L../stubdata" in g++'s params. What ma I missing?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
It seems it generates the wrongly named libs, they should be libicudt56.a for icudt56.dll, not libicudt56.dll.a.
How could I configure it properly for this case?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
After testing the configuration, I've noticed that ICU configuration finds the version I need (56) and logs that, during configuration, as LIB_VERSION_MAJOR='56' in config.log. But the config used for mingw64, mh-mingw64, where the lib names are set, seems to use it early, because LIB_VERSION_MAJOR is empty. Is this normal?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
I have found a variable that works for adding the version number, `SO_TARGET_VERSION_SUFFIX`. Some variables, although correct in configure logs, have not a value at the `mh-mingw` step. Next is to know if the 'd' suffix is necessary, along with the `SO_TARGET_VERSION_SUFFIX` value.
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: MinGW support for SpiderMonkey

Mihai Dobrescu
In reply to this post by Mihai Dobrescu
Eventually I've figured out how to build ICU. But, with minimum modifications though, SpiderMonkey expects libs ending in .a, not .dll.a as ICU builds with MinGW64. What is the correct extension, .dll.a or .a?
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Loading...