I try to cross compile xul runner for windows 64

my mozconfig

export CROSS_COMPILE=1
# Make Options
mk_add_options MOZ_MAKE_FLAGS="-j4"
mk_add_options MOZ_OBJDIR=../bin/xulrunner-win32

# Configure Options
ac_add_options --target=x86_64-w64-mingw32
ac_add_options --enable-application=xulrunner
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --without-system-jpg
ac_add_options --without-system-zlib
ac_add_options --enable-crypto
ac_add_options --enable-svg
ac_add_options --enable-canvas
ac_add_options --disable-javaxpcom
ac_add_options --x-libraries=/usr/local/lib
#ac_add_options --ldflags=libpthread


I`m getting the error:

 ./mach build
 0:00.38 /usr/bin/gmake -f client.mk MOZ_PARALLEL_BUILD=4 -s
 0:02.46 Adding client.mk options from 
/usr/local/gematik/firefox_builds/xulrunner-41.0b9/.mozconfig:
 0:02.46     CONFIG_GUESS=x86_64-w64-mingw32
 0:02.46     MOZ_MAKE_FLAGS=-j4
 0:02.47     MOZ_OBJDIR=/usr/local/gematik/firefox_builds/bin/xulrunner-win32
 0:02.47     OBJDIR=/usr/local/gematik/firefox_builds/bin/xulrunner-win32
 0:02.47     
FOUND_MOZCONFIG=/usr/local/gematik/firefox_builds/xulrunner-41.0b9/.mozconfig
 0:03.32 cd /usr/local/gematik/firefox_builds/bin/xulrunner-win32
 0:03.32 /usr/local/gematik/firefox_builds/xulrunner-41.0b9/configure
 0:04.01 Adding configure options from 
/usr/local/gematik/firefox_builds/xulrunner-41.0b9/.mozconfig
 0:04.01   --target=x86_64-w64-mingw32
 0:04.02   --enable-application=xulrunner
 0:04.02   --enable-optimize
 0:04.02   --disable-debug
 0:04.02   --disable-tests
 0:04.03   --without-system-jpg
 0:04.03   --without-system-zlib
 0:04.03   --enable-crypto
 0:04.04   --enable-svg
 0:04.04   --enable-canvas
 0:04.04   --disable-javaxpcom
 0:04.04   --x-libraries=/usr/local/lib
 0:04.57 loading cache ./config.cache
 0:04.89 checking host system type... x86_64-unknown-linux-gnu
 0:04.95 checking target system type... x86_64-w64-mingw32
 0:05.00 checking build system type... x86_64-unknown-linux-gnu
 0:05.01 checking for gawk... gawk
 0:05.04 checking for python2.7... /usr/local/bin/python2.7
 0:05.05 Creating Python environment
 0:05.22 checking Python environment is Mozilla virtualenv... yes
 0:05.27 checking for perl5... no
 0:05.27 checking for perl... /usr/bin/perl
 0:05.29 cross compiling from x86_64-unknown-linux-gnu to x86_64-w64-mingw32
 0:05.29 checking for host c compiler... checking for cc... cc
 0:05.29 cc
 0:05.30 checking for host c++ compiler... checking for c++... c++
 0:05.30 c++
 0:05.30 checking for ranlib... no
 0:05.30 checking for ar... no
 0:05.35 checking whether the host c compiler (cc  ) works... yes
 0:05.38 checking whether the host c++ compiler (c++  ) works... yes
 0:05.38 checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
 0:05.39 checking for gcc... x86_64-w64-mingw32-gcc
 0:05.49 checking whether the C compiler (x86_64-w64-mingw32-gcc  ) works... yes
 0:05.50 checking whether the C compiler (x86_64-w64-mingw32-gcc  ) is a 
cross-compiler... yes
 0:05.51 checking whether we are using GNU C... yes
 0:05.57 checking whether x86_64-w64-mingw32-gcc accepts -g... yes
 0:05.57 checking for x86_64-w64-mingw32-g++... x86_64-w64-mingw32-g++
 0:05.57 checking for c++... x86_64-w64-mingw32-g++
 0:05.79 checking whether the C++ compiler (x86_64-w64-mingw32-g++  ) works... 
yes
 0:05.79 checking whether the C++ compiler (x86_64-w64-mingw32-g++  ) is a 
cross-compiler... yes
 0:05.83 checking whether we are using GNU C++... yes
 0:05.88 checking whether x86_64-w64-mingw32-g++ accepts -g... yes
 0:06.01 checking for x86_64-w64-mingw32-ranlib... x86_64-w64-mingw32-ranlib
 0:06.01 checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
 0:06.01 checking for x86_64-w64-mingw32-as... x86_64-w64-mingw32-as
 0:06.02 checking for x86_64-w64-mingw32-ld... x86_64-w64-mingw32-ld
 0:06.03 checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
 0:06.05 checking for x86_64-w64-mingw32-windres... x86_64-w64-mingw32-windres
 0:06.05 checking for x86_64-w64-mingw32-otool... no
 0:06.05 checking for x86_64-w64-mingw32-otool... no
 0:06.17 checking for rustc... no
 0:06.31 checking for w32api version >= 3.14... yes
 0:06.32 checking for windres version >= 2.14.90... (GNU
 0:06.36 /usr/local/gematik/firefox_builds/xulrunner-41.0b9/configure: line 
5033: test: (GNU: integer expression expected
 0:06.37 checking for x86_64-w64-mingw32-widl... no
 0:06.37 checking for widl... no
 0:06.41 checking for Windows SDK being recent enough... yes
 0:06.49 checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
 0:06.53 checking how to run the C++ preprocessor... x86_64-w64-mingw32-g++ -E
 0:06.57 checking for a BSD compatible install... /usr/bin/install -c
 0:06.58 checking whether ln -s works... yes
 0:06.65 checking for minimum required perl version >= 5.006... 5.010001
 0:06.67 checking for full perl installation... yes
 0:06.67 checking for doxygen... /usr/bin/doxygen
 0:06.67 checking for autoconf... /usr/bin/autoconf
 0:06.67 checking for unzip... /usr/bin/unzip
 0:06.67 checking for zip... /usr/bin/zip
 0:06.68 checking for xargs... /usr/bin/xargs
 0:06.68 checking for rpmbuild... /usr/bin/rpmbuild
 0:06.69 checking for /usr/bin/gmake... no
 0:06.69 checking for gmake... /usr/bin/gmake
 0:06.88 checking for X... no
 0:07.19 checking that static assertion macros used in autoconf tests work... 
yes
 0:07.24 checking for --noexecstack option to as... no
 0:07.33 checking for -z noexecstack option to ld... no
 0:07.39 checking for -z text option to ld... no
 0:07.50 checking for --build-id option to ld... yes
 0:07.71 checking for --ignore-unresolved-symbol option to ld... yes
 0:07.83 checking if toolchain supports -mssse3 option... yes
 0:07.89 checking if toolchain supports -msse4.1 option... yes
 0:07.95 checking for x86 AVX2 asm support in compiler... yes
 0:07.97 checking whether the C++ compiler supports -Wno-inline-new-delete... no
 0:08.10 checking whether ld has archive extraction flags... yes
 0:08.16 checking for 64-bit OS... yes
 0:08.50 checking whether the C compiler supports -Wno-format... yes
 0:08.58 checking whether the C++ compiler supports -Wno-format... yes
 0:08.88 checking whether the C++ compiler (x86_64-w64-mingw32-g++ -mwindows  
-fno-exceptions -fno-strict-aliasing -mms-bitfields -fno-rtti  -Wl,--build-id 
-static) actually is a C++ compiler... no
 0:08.88 configure: error: x86_64-w64-mingw32-g++ -mwindows  -fno-exceptions 
-fno-strict-aliasing -mms-bitfields -fno-rtti  -Wl,--build-id -static failed to 
compile and link a simple C++ source.
 0:08.88 ------ config.log ------
 0:08.89 #include "confdefs.h"
 0:08.89
 0:08.89 int main() {
 0:08.89 return(0);
 0:08.89 ; return 0; }
 0:08.89 configure:8684: checking whether ld has archive extraction flags
 0:08.89 configure:8708: x86_64-w64-mingw32-gcc -o conftest  -std=gnu99 
-fgnu89-inline -fno-strict-aliasing  -Wl,--whole-archive conftest.c 
-Wl,--no-whole-archive 1>&5
 0:08.89 configure:8743: checking for 64-bit OS
 0:08.89 configure:8752: x86_64-w64-mingw32-gcc -c  -std=gnu99 -fgnu89-inline 
-fno-strict-aliasing  conftest.c 1>&5
 0:08.89 configure:9597: checking whether the C compiler supports -Wno-format
 0:08.90 configure:9620: x86_64-w64-mingw32-gcc -mwindows -c  -std=gnu99 
-fgnu89-inline -fno-strict-aliasing -mms-bitfields -Werror -Wformat  conftest.c 
1>&5
 0:08.90 configure:9648: checking whether the C++ compiler supports -Wno-format
 0:08.90 configure:9671: x86_64-w64-mingw32-g++ -mwindows -c  -fno-exceptions 
-fno-strict-aliasing -mms-bitfields -Werror -Wformat  conftest.C 1>&5
 0:08.90 configure:10394: checking whether the C++ compiler 
(x86_64-w64-mingw32-g++ -mwindows  -fno-exceptions -fno-strict-aliasing 
-mms-bitfields -fno-rtti  -Wl,--build-id -static) actually is a C++ compiler
 0:08.90 configure:10413: x86_64-w64-mingw32-g++ -mwindows -o conftest  
-fno-exceptions -fno-strict-aliasing -mms-bitfields -fno-rtti   -Wl,--build-id 
-static conftest.C  1>&5
 0:08.90 
/usr/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld: 
cannot find -lpthread
 0:08.91 collect2: error: ld returned 1 exit status
 0:08.91 configure: failed program was:
 0:08.91 #line 10406 "configure"
 0:08.91 #include "confdefs.h"
 0:08.91 #include <new>
 0:08.91 int main() {
 0:08.91 int *foo = new int;
 0:08.91 ; return 0; }
 0:08.91 configure: error: x86_64-w64-mingw32-g++ -mwindows  -fno-exceptions 
-fno-strict-aliasing -mms-bitfields -fno-rtti  -Wl,--build-id -static failed to 
compile and link a simple C++ source.
 0:08.91 *** Fix above errors and then restart with\
 0:08.91                "/usr/bin/gmake -f client.mk build"
 0:08.91 gmake[2]: *** [configure] Error 1
 0:08.91 gmake[1]: *** 
[/usr/local/gematik/firefox_builds/bin/xulrunner-win32/Makefile] Error 2
 0:08.91 gmake: *** [build] Error 2
 0:08.96 0 compiler warnings present.
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to