Hello everyone, 

I encounter the following compilation error while trying to cross compile 
xulrunner on linux for windows:

111:25.11                                               NULL));  // context
111:25.11                                                   ^
111:26.00 In file included from 
/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/../../src/libANGLE/renderer/d3d/d3d11/Renderer11.h:17:0,
111:26.00                  from 
/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/renderer/d3d/d3d11/SwapChain11.cpp:14:
111:26.00 
/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/../../src/libANGLE/renderer/d3d/RendererD3D.h:15:34:
 fatal error: libANGLe/formatutils.h: No such file or directory
111:26.00  #include "libANGLe/formatutils.h"
111:26.00                                   ^
111:26.00 compilation terminated.
111:26.02 Creating Resource file: module.res
111:26.02
111:26.04 In the directory  
/usr/local/blah/firefox_builds/obj-xulrunner_64/gfx/angle/src/libANGLE
111:26.04 The following command failed to execute properly:
111:26.04 x86_64-w64-mingw32-g++ -mwindows -o SwapChain11.o -c 
-D_CRT_SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -D_SECURE_SCL=0 
-DANGLE_ENABLE_D3D9 -DANGLE_ENABLE_D3D11 
-DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1 
-DANGLE_NO_EXCEPTIONS -DGL_APICALL= -DGL_GLEXT_PROTOTYPES= -DEGLAPI= 
-DLIBANGLE_IMPLEMENTATION=1 -DANGLE_ENABLE_HLSL=1 -DANGLE_ENABLE_KEYEDMUTEX=1 
-DANGLE_DEFAULT_D3D11=0 -DAB_CD=en-US -DNO_NSPR_10_SUPPORT 
-I/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE -I. 
-I/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/../../include
 -I/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/../../src 
-I/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/../../src/third_party/khronos
 -I../../../../dist/include 
-I/usr/local/blah/firefox_builds/obj-xulrunner_64/dist/include/nspr 
-I/usr/local/blah/firefox_builds/obj-xulrunner_64/dist/include/nss 
-DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
 -MD -MP -MF .deps/SwapChain11.o.pp -Wall -Wempty-body -Woverloaded-virtual 
-Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -Wno-format 
-fno-exceptions -fno-strict-aliasing -mms-bitfields -fno-rtti -fno-exceptions 
-fno-math-errno -std=gnu++0x -pipe -DNDEBUG -DTRIMMED -g -O 
-fomit-frame-pointer -Wno-attributes -Wno-shadow -Wno-sign-compare 
-Wno-unknown-pragmas -Wno-unreachable-code -Wno-shadow-compatible-local 
-Wno-shadow-local 
-DANGLE_RESOURCE_SHARE_TYPE=D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX 
/usr/local/blah/firefox_builds/firefox-44.0/gfx/angle/src/libANGLE/renderer/d3d/d3d11/SwapChain11.cpp
111:26.04 gmake[5]: *** [SwapChain11.o] Error 1
111:26.05 gmake[4]: *** [gfx/angle/src/libANGLE/target] Error 2
111:26.06 gmake[4]: *** Waiting for unfinished jobs....
111:26.08 fake.dll
111:26.16 Creating Resource file: module.res
111:27.27 libgoogle_breakpad_libxul_staticruntime_s.a.desc
111:30.19 clearkey.dll
111:31.19 gmake[3]: *** [compile] Error 2
111:31.26 gmake[2]: *** [default] Error 2
111:31.31 gmake[1]: *** [realbuild] Error 2
111:31.32 gmake: *** [build] Error 2
111:31.46 655 compiler warnings present.


The build runs for 111 minutes before failing. Has anyone encountered anything 
similar?

I am using the firefox source from v44.0 and my mozconfig is as below:

export CROSS_COMPILE=1

ac_add_options --enable-application=xulrunner
ac_add_options --host=x86_64-linux
ac_add_options --target=x86_64-w64-mingw32
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-xulrunner_64

#ac_add_options --enable-debug
ac_add_options --enable-optimize
ac_add_options --without-intl-api
ac_add_options --disable-sandbox
ac_add_options --disable-webrtc

# Use parallel build. Adjust number of processes for your setup.
mk_add_options MOZ_MAKE_FLAGS=-j4

The header formatutils.h which is not found is present in the same directory as 
RenderD3D.h, so the #include should read 

#include "formatutils.h"

instead of 
#include "libANGLe/formatutils.h"

for the header to be found. 

Could I add an additional include pointing to libANGLe or how can I simply 
disable the dependency using ac_add_options? Any help would be very much 
appreciated. Thanks a lot in advance. 

Osbert
_______________________________________________
dev-builds mailing list
dev-builds@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to