x86 4430 make_distrib build fails

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

x86 4430 make_distrib build fails

Postby alfredr » Tue Apr 13, 2021 5:54 pm

Hi all, I'm building the 4430 branch locally and getting this error when running make_distrib.bat:
Code: Select all
lib.exe exited with status 1107

This is happening when creating the cef_sandbox.lib. Looking on the net it looks like we have this problem:
https://bugs.llvm.org/show_bug.cgi?id=41147

I've got a local edit to combine_libs.py to change from using lib.exe to lld-link.exe (the clang linker).
Is anyone else seeing a similar problem with the x86 4430 build? Should I create an issue/patch with my above change?
alfredr
Newbie
 
Posts: 3
Joined: Tue Apr 13, 2021 5:50 pm

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Tue Apr 13, 2021 6:17 pm

What VS version are you using with msvs_env.bat? If you use lld-link.exe does the resulting cef_sandbox.lib build and run successfully with MSVC?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Tue Apr 13, 2021 6:20 pm

Also, what GN_DEFINES are you building with? Are you creating an official sandbox build?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: x86 4430 make_distrib build fails

Postby alfredr » Tue Apr 13, 2021 6:29 pm

- I'm using VS2019 with the VS2017 toolchain installed for the build.
Code: Select all
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.3
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
Microsoft (R) Library Manager Version 14.28.29913.0


- GN_ settings
Code: Select all
GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
GN_DEFINES=is_component_build=false enable_precompiled_headers=false is_official_build=true enable_remoting=false


- I'm not trying to actually consume/use the sandbox here, this is just the result of running make_distrib after running
Code: Select all
call ninja -C out\Debug_GN_x86 cefsimple
call ninja -C out\Release_GN_x86 cefsimple
cd cef\tools
call make_distrib --ninja-build --no-archive


Note that the x64 build I did worked correctly, only the x86 one is failing for me.
alfredr
Newbie
 
Posts: 3
Joined: Tue Apr 13, 2021 5:50 pm

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Tue Apr 13, 2021 6:45 pm

It’s important to know if the resulting cef_sandbox.lib works. This is the reason for the official sandbox config linked above.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: x86 4430 make_distrib build fails

Postby alfredr » Tue Apr 13, 2021 6:49 pm

Trying to build cefclient from the binary_distrib folder created by make_distrib fails with:
Code: Select all
 cef_sandbox.lib :  fatal error LNK1136: invalid or corrupt file

So using lld-link.exe here isn't an option. I won't be using cef_sandbox.lib so perhaps a no sandbox flag can be added to make_distrib? Separately we may need changes in CEF to have it produce object files compatible with the msvc lib.exe.
alfredr
Newbie
 
Posts: 3
Joined: Tue Apr 13, 2021 5:50 pm

Re: x86 4430 make_distrib build fails

Postby ndesktop » Wed Apr 21, 2021 10:25 am

Same error also for me, 1107 invoking lib.exe.
I see the /llvmlibthin patch was removed in 1a86240 quite a time ago.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: x86 4430 make_distrib build fails

Postby vyunikov » Wed Apr 21, 2021 1:54 pm

Exactly the same error for me when building 4430 branch
vyunikov
Newbie
 
Posts: 3
Joined: Wed Apr 21, 2021 1:49 pm

Re: x86 4430 make_distrib build fails

Postby vyunikov » Thu Apr 22, 2021 10:46 am

Did anybody solve the issue?
vyunikov
Newbie
 
Posts: 3
Joined: Wed Apr 21, 2021 1:49 pm

Re: x86 4430 make_distrib build fails

Postby magreenblatt » Thu Apr 22, 2021 11:32 am

You need to use automate-git.py to create an official build, or follow the cef_sandbox build instructions from https://bitbucket.org/chromiumembedded/ ... ndowsmacos
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 39 guests