EricssonResearch / openwebrtc

A cross-platform WebRTC client framework based on GStreamer
http://www.openwebrtc.org
BSD 2-Clause "Simplified" License
1.8k stars 537 forks source link

Recipe 'javascriptcoregtk' failed at the build step 'configure' #687

Open pavank1933 opened 7 years ago

pavank1933 commented 7 years ago

Hi,

Facing the below issue, while trying to build gstreamer using cerbero in aws ubuntu 14.04

checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.36.0... Package glib-2.0 was not found in the p                                                                                                                kg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
Package gio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gio-2.0' found
no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: You need the GLib dev tools in your path

Recipe 'javascriptcoregtk' failed at the build step 'configure'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
ford-prefect commented 7 years ago

Did bootstrap run successfully? And doesn't EC2 provide something newer (16.04, perhaps)?

pavank1933 commented 7 years ago

Hi Arun,

Facing the below issue while building in ubuntu 16.04-

aScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-ParserArena.Tpo -c -o Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-ParserArena.lo `test -f 'Source/JavaScriptCore/parser/ParserArena.cpp' || echo './'`Source/JavaScriptCore/parser/ParserArena.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__ -DBUILDING_WEBKIT2__ -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspector -I./Source/JavaScriptCore/inspector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/tools -I./Source/JavaScriptCore/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF -fno-omit-frame-pointer -fno-tree-dce -fno-rtti -pthread -I/opt/openwebrtc-0.3/include/glib-2.0 -I/opt/openwebrtc-0.3/lib/glib-2.0/include -I/opt/openwebrtc-0.3/include -Wall -g -O2 -m64 -Wall -g -O2 -m64 -pthread -std=c++11 -Wno-c++11-compat -O2 -D_FORTIFY_SOURCE=2 -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-ParserArena.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-ParserArena.Tpo -c Source/JavaScriptCore/parser/ParserArena.cpp  -fPIC -DPIC -o Source/JavaScriptCore/parser/.libs/libjavascriptcoregtk_3_0_la-ParserArena.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__ -DBUILDING_WEBKIT2__ -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspector -I./Source/JavaScriptCore/inspector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/tools -I./Source/JavaScriptCore/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF -fno-omit-frame-pointer -fno-tree-dce -fno-rtti -pthread -I/opt/openwebrtc-0.3/include/glib-2.0 -I/opt/openwebrtc-0.3/lib/glib-2.0/include -I/opt/openwebrtc-0.3/include -Wall -g -O2 -m64 -Wall -g -O2 -m64 -pthread -std=c++11 -Wno-c++11-compat -O2 -D_FORTIFY_SOURCE=2 -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-ParserArena.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-ParserArena.Tpo -c Source/JavaScriptCore/parser/ParserArena.cpp -o Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-ParserArena.o >/dev/null 2>&1
mv -f Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-ParserArena.Tpo Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-ParserArena.Plo
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.  -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__ -DBUILDING_WEBKIT2__  -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspector -I./Source/JavaScriptCore/inspector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/tools -I./Source/JavaScriptCore/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF  -fno-omit-frame-pointer -fno-tree-dce  -fno-rtti  -pthread -I/opt/openwebrtc-0.3/include/glib-2.0 -I/opt/openwebrtc-0.3/lib/glib-2.0/include  -I/opt/openwebrtc-0.3/include  -Wall -g -O2 -m64  -Wall -g -O2 -m64  -pthread -std=c++11 -Wno-c++11-compat -O2 -D_FORTIFY_SOURCE=2 -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-Parser.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-Parser.Tpo -c -o Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-Parser.lo `test -f 'Source/JavaScriptCore/parser/Parser.cpp' || echo './'`Source/JavaScriptCore/parser/Parser.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__ -DBUILDING_WEBKIT2__ -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspector -I./Source/JavaScriptCore/inspector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/tools -I./Source/JavaScriptCore/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF -fno-omit-frame-pointer -fno-tree-dce -fno-rtti -pthread -I/opt/openwebrtc-0.3/include/glib-2.0 -I/opt/openwebrtc-0.3/lib/glib-2.0/include -I/opt/openwebrtc-0.3/include -Wall -g -O2 -m64 -Wall -g -O2 -m64 -pthread -std=c++11 -Wno-c++11-compat -O2 -D_FORTIFY_SOURCE=2 -MT Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-Parser.lo -MD -MP -MF Source/JavaScriptCore/parser/.deps/libjavascriptcoregtk_3_0_la-Parser.Tpo -c Source/JavaScriptCore/parser/Parser.cpp  -fPIC -DPIC -o Source/JavaScriptCore/parser/.libs/libjavascriptcoregtk_3_0_la-Parser.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
GNUmakefile:71871: recipe for target 'Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-Parser.lo' failed
make: *** [Source/JavaScriptCore/parser/libjavascriptcoregtk_3_0_la-Parser.lo] Error 1

Recipe 'javascriptcoregtk' failed at the build step 'compile'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
ford-prefect commented 7 years ago

Just as a sanity check, please make sure it didn't get killed because of running out of memory (output of dmesg will let you know if the OOM killer was called)

pavank1933 commented 7 years ago

This was resolved Arun by increasing the RAM size. Now the different error-

/usr/local/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:599: recipe for target 'libxml2mod.la' failed
make[4]: *** [libxml2mod.la] Error 1
make[4]: Leaving directory '/root/cerbero/build/sources/linux_x86_64/libxml2-2.9.4/python'
Makefile:708: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/root/cerbero/build/sources/linux_x86_64/libxml2-2.9.4/python'
Makefile:527: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/root/cerbero/build/sources/linux_x86_64/libxml2-2.9.4/python'
Makefile:1215: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/cerbero/build/sources/linux_x86_64/libxml2-2.9.4'
Makefile:735: recipe for target 'all' failed
make: *** [all] Error 2

Recipe 'libxml2' failed at the build step 'compile'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
Recipe 'libxml2' failed at the build step 'compile'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort
4
***** Error running 'package' command:
ford-prefect commented 7 years ago

Sorry, not sure what might be happening there