<div dir="ltr"><div dir="ltr"><div dir="ltr">Ahh... I had deleted my `cerbero/build` folder without re-running `bootstrap`.</div><div dir="ltr"><br><div>I did not have g-ir error because I had installed `libgirepository1.0-dev` on my system (this also overcomes an error via in gst-build).<br></div><div><br></div><div>I got a different error when running bootstrap.  (</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>clang    -I../lib -I../lib    -g -gcodeview -O2 -m64  -g -gcodeview -O2 -m64   -Wno-error=cast-align -MT symtab.o -MD -MP -MF $depbase.Tpo -c -o symtab.o symtab.c &&\</div><div>mv -f $depbase.Tpo $depbase.Po</div><div>clang   -g -gcodeview -O2 -m64  -g -gcodeview -O2 -m64   -Wno-error=cast-align  -L/home/ding/github/gstreamer/cerbero/build/build-tools/lib  -m64  -m64  -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o ../lib/libm4.a    </div><div>clang: warning: argument unused during compilation: '-gcodeview' [-Wunused-command-line-argument]</div><div>clang: warning: argument unused during compilation: '-gcodeview' [-Wunused-command-line-argument]</div><div>symtab.o: In function `symtab_init':</div><div>symtab.c:(.text+0x27): undefined reference to `__muloti4'</div><div>../lib/libm4.a(clean-temp.o): In function `create_temp_dir':</div><div>clean-temp.c:(.text+0xa3): undefined reference to `__muloti4'</div><div>../lib/libm4.a(fatal-signal.o): In function `at_fatal_signal':</div><div>fatal-signal.c:(.text+0x1a2): undefined reference to `__muloti4'</div><div>../lib/libm4.a(xmalloc.o): In function `xnmalloc':</div><div>xmalloc.c:(.text+0x1d): undefined reference to `__muloti4'</div><div>../lib/libm4.a(xmalloc.o): In function `xnrealloc':</div><div>xmalloc.c:(.text+0xb8): undefined reference to `__muloti4'</div><div>../lib/libm4.a(xmalloc.o):xmalloc.c:(.text+0x29d): more undefined references to `__muloti4' follow</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div>Makefile:1554: recipe for target 'm4' failed</div><div>make[2]: *** [m4] Error 1</div><div>make[2]: Leaving directory '/home/ding/github/gstreamer/cerbero/build/sources/build-tools/m4-1.4.18/src'</div><div>Makefile:1572: recipe for target 'all-recursive' failed</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory '/home/ding/github/gstreamer/cerbero/build/sources/build-tools/m4-1.4.18'</div><div>Makefile:1528: recipe for target 'all' failed</div><div>make: *** [all] Error 2</div><div><br></div><div><b>Recipe 'm4' failed at the build step 'compile'</b></div><div>Select an action to proceed:</div><div>[0] Enter the shell</div><div>[1] Rebuild the recipe from scratch</div><div>[2] Rebuild starting from the failed step</div><div>[3] Skip recipe</div><div>[4] Abort</div><div>4</div><div><b>***** Error running 'bootstrap' command:</b></div></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div></blockquote></div><div>For reference, I have attached my hacked version of the `config/linux.config` file.<br></div><div><br></div><div>While doable, I think it would take a long time to brute-force your way through all the bugs.</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 10:57 AM Nirbheek Chauhan <<a href="mailto:nirbheek.chauhan@gmail.com">nirbheek.chauhan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Sep 5, 2018 at 10:12 PM David Ing <<a href="mailto:ding@panopto.com" target="_blank">ding@panopto.com</a>> wrote:<br>
> The environment variables `CC` and `CXX` are overridden inside of the file `cerbero/config/linux.config`.  Sure, I can hack the file (along with the flags and everything) but it still doesn't work because there are lots of incompatibilities.  For example, this is the first error I see after `./cerbero-uninstalled build gstreamer-1.0`<br>
><br>
<br>
I think you forgot to run bootstrap? Anyway, bootstrap fails with<br>
clang while building m4, so I built the build-tools with gcc (doesn't<br>
matter what they are built with). Then, the first failure was in<br>
gobject-introspection:<br>
<br>
./g-ir-compiler --includedir=. --includedir=./gir --includedir=.<br>
--includedir=. --includedir=./gir --includedir=. gir/cairo-1.0.gir -o<br>
gir/cairo-1.0.typelib<br>
clang-6.0: error: unknown argument: '-fcf-protection'<br>
Traceback (most recent call last):<br>
  File "/usr/lib64/python3.6/distutils/unixccompiler.py", line 127, in _compile<br>
    extra_postargs)<br>
  File "/usr/lib64/python3.6/distutils/ccompiler.py", line 909, in spawn<br>
    spawn(cmd, dry_run=self.dry_run)<br>
  File "/usr/lib64/python3.6/distutils/spawn.py", line 36, in spawn<br>
    _spawn_posix(cmd, search_path, dry_run=dry_run)<br>
  File "/usr/lib64/python3.6/distutils/spawn.py", line 159, in _spawn_posix<br>
    % (cmd, exit_status))<br>
distutils.errors.DistutilsExecError: command 'ccache' failed with exit status 1<br>
<br>
So that either needs to be fixed, or introspection needs to be<br>
disabled everywhere as a start. Overall, I think this is probably<br>
doable. The main issues will be autotools recipes, but any meson<br>
recipes should be fine.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>