branch 2840 automated build error, Missing cef_pack_resource

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.

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby wrightpt » Tue Sep 13, 2016 3:24 pm

tried to rerun the automate-git.gy when I delete the out folder. same issue.

python /home/c/Music/automate-git.py --download-dir=/home/c/Videos/ --branch=2840


output:

Generating CEF project files...
Creating /home/c/Videos/chromium/src/out/Debug_GN_x64 directory.

________ running 'gn gen out/Debug_GN_x64' in '/home/c/Videos/chromium/src'
gn.py: Could not find gn executable at: /home/c/Videos/chromium/src/buildtools/linux64/gn
Traceback (most recent call last):
File "tools/gclient_hook.py", line 134, in <module>
RunAction(src_dir, cmd)
File "/home/c/Videos/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/home/c/Videos/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/home/c/Videos/depot_tools/gclient_utils.py", line 613, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out/Debug_GN_x64' returned non-zero exit status 2 in /home/c/Videos/chromium/src
Traceback (most recent call last):
File "/home/c/Music/automate-git.py", line 942, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "/home/c/Music/automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/c/Videos/chromium/src/cef/cef_create_projects.sh']' returned non-zero exit status 1
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby wrightpt » Tue Sep 13, 2016 3:31 pm

will do. thank you
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby wrightpt » Tue Sep 13, 2016 4:51 pm

Solution that worked for my problem for any future readers:

install curl:

sudo apt-get install curl

ReRun the

build/install-build-deps.sh script

in Chromium/src directory I ran:

gclient runhooks (this created an extra file in my src folder. I dont think its an issue but will report back if it is)

Then rerun the script with --x64-build command

python /home/c/Music/automate-git.py --download-dir=/home/c/Videos/ --branch=2840 --x64-build

currently running with ninja build tool
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby wrightpt » Wed Sep 14, 2016 9:39 am

Received the following error:

-------- Running "ninja -C out/Debug_GN_x64 cefclient chrome_sandbox" in "/home/c/Videos/chromium/src"...
ninja: Entering directory `out/Debug_GN_x64'
[728/23517] CXX obj/gpu/command_buffer...nt_sources/gpu_memory_buffer_manager.o^[14044/23517] ACTION //cef:make_pack_h...ngs(//build/toolchain/linux:clang_x64)
File includes/include/cef_pack_strings.h updated.
[14045/23517] ACTION //cef:make_pack_h...ces(//build/toolchain/linux:clang_x64)
File includes/include/cef_pack_resources.h updated.
[23516/23517] SOLINK ./libcef.so
FAILED: libcef.so libcef.so.TOC
python "/home/c/Videos/chromium/src/build/toolchain/gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -pthread -m64 -Wl,--export-dynamic -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -o "./libcef.so" -Wl,-soname="libcef.so" @"./libcef.so.rsp"
clang: error: unable to execute command: Killed
clang: error: linker command failed due to signal (use -v to see invocation)
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/c/Music/automate-git.py", line 980, in <module>
if options.buildlogfile else None)
File "/home/c/Music/automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Debug_GN_x64', 'cefclient', 'chrome_sandbox']' returned non-zero exit status 1

When I run gcc_solink_wrapper.py :

gcc_solink_wrapper.py" --readelf="readelf" --nm="nm" --sofile="./libcef.so" --tocfile="./libcef.so.TOC" --output="./libcef.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -fuse-ld=gold -B../../third_party/binutils/Linux_x64/Release/bin -Wl,--threads -Wl,--thread-count=4 -Wl,--icf=all -pthread -m64 -Wl,--export-dynamic -Wl,-uhb_ft_face_create_cached,-uhb_glib_get_unicode_funcs -o "./libcef.so" -Wl,-soname="libcef.so" @"./libcef.so.rsp"

I get the following error:

clang: error: no such file or directory: '@./libcef.so.rsp'

but the file is located at:
/home/c/Videos/chromium/src/out/Debug_GN_x64

Still working on this but if anything obvious comes to mind I would appreciate it
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby magreenblatt » Wed Sep 14, 2016 10:40 am

How much RAM does your system have? It may not be enough to link a normal Debug build.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby wrightpt » Wed Sep 14, 2016 10:58 am

only 4 GB DDR3, I saw i need 6GB. thx for pointing out.

I am rebuilding with automated build to see if it builds. that is probably useless. but I want to see. is there anyway to get around this.

I may just buy more ram
wrightpt
Expert
 
Posts: 151
Joined: Wed Jun 22, 2016 11:17 am

Re: branch 2840 automated build error, Missing cef_pack_reso

Postby magreenblatt » Wed Sep 14, 2016 11:26 am

wrightpt wrote:only 4 GB DDR3, I saw i need 6GB. thx for pointing out.

I am rebuilding with automated build to see if it builds. that is probably useless. but I want to see. is there anyway to get around this.

I may just buy more ram

You might be able to create a Release build with 4GB of RAM. That's probably your only option. Set GN_DEFINES="dcheck_always_on=true symbol_level=1" for some debugging capability in your Release build.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Previous

Return to Support Forum

Who is online

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