Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing include dir #72

Open
bigntallmike opened this issue Jan 23, 2021 · 2 comments
Open

Missing include dir #72

bigntallmike opened this issue Jan 23, 2021 · 2 comments

Comments

@bigntallmike
Copy link

cc1: error: [...]/ffmpeg-build-script/workspace/include: No such file or directory [-Werror=missing-include-dirs]

An mkdir of the include directory fixed it.

@markus-perl
Copy link
Owner

Which OS?
Can you include the full script output in the bug report?

@ransagy
Copy link

ransagy commented Nov 9, 2021

For what its worth, im getting the same in Ubnutu 18.04, which i know is outside the disclaimer for "supported" systems.

The very first pkg-config install fails on the make call with the above error.
if i run the make command myself from the pkg-config dir, it does work, so seems to be something with how the path is interpreted.

This is a "Data Science Ubuntu" machine from Azure, which is Ubuntu 18.04 with nVidia GPUs.
I ran the build with the full-static, with-gpl-and-non-free switches. Here's the output i get:

ffmpeg-build-script v1.31
=========================

Using 12 make jobs simultaneously.
With GPL and non-free codecs
Start the build in full static mode.
cargo not installed. rav1e encoder will not be available.

building pkg-config - version 0.29.2
=======================
pkg-config-0.29.2.tar.gz has already downloaded.
Extracted pkg-config-0.29.2.tar.gz
$ ./configure --silent --prefix=/home/batch-explorer-user/ffmpeg-static-build/workspace --with-pc-path=/home/batch-explorer-user/ffmpeg-static-build/workspace/lib/pkgconfig --with-internal-glib
$ make -j 12
make  all-recursive
make[1]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2'
Making all in glib
make[2]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
make  all-recursive
make[3]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
Making all in .
make[4]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
make[4]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
Making all in m4macros
make[4]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/m4macros'
make  all-am
make[5]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/m4macros'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/m4macros'
make[4]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/m4macros'
Making all in glib
make[4]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
  GEN      glibconfig-stamp
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
make  all-recursive
make[5]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
Making all in libcharset
make[6]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib/libcharset'
make  all-am
make[7]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib/libcharset'
  CC       libcharset_la-localcharset.lo
  GEN      ref-del.sed
  GEN      ref-add.sed
  GEN      charset.alias
  CCLD     libcharset.la
make[7]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib/libcharset'
make[6]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib/libcharset'
Making all in .
make[6]: Entering directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
  CC       libglib_2_0_la-gthread-deprecated.lo
  CC       libglib_2_0_la-gcache.lo
  CC       libglib_2_0_la-gbase64.lo
  CC       libglib_2_0_la-gcompletion.lo
  CC       libglib_2_0_la-gasyncqueue.lo
  CC       libglib_2_0_la-gbookmarkfile.lo
  CC       libglib_2_0_la-gallocator.lo
  CC       libglib_2_0_la-gbitlock.lo
  CC       libglib_2_0_la-gbacktrace.lo
  CC       libglib_2_0_la-garray.lo
  CC       libglib_2_0_la-gatomic.lo
  CC       libglib_2_0_la-grel.lo
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: error: /home/batch-explorer-user/ffmpeg-static-build/workspace/include: No such file or directory [-Werror=missing-include-dirs]
cc1: some warnings being treated as errors
Makefile:1268: recipe for target 'libglib_2_0_la-gallocator.lo' failed
make[6]: *** [libglib_2_0_la-gallocator.lo] Error 1
make[6]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
gbacktrace.c: In function 'g_on_error_query':
gbacktrace.c:177:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets (buf, 8, stdin);
     ^~~~~~~~~~~~~~~~~~~~~
gbacktrace.c: In function 'stack_trace':
gbacktrace.c:301:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (0); dup (in_fd[0]);   /* set the stdin to the in pipe */
                  ^~~~~~~~~~~~~~
gbacktrace.c:302:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (1); dup (out_fd[1]);  /* set the stdout to the out pipe */
                  ^~~~~~~~~~~~~~~
gbacktrace.c:303:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (2); dup (out_fd[1]);  /* set the stderr to the out pipe */
                  ^~~~~~~~~~~~~~~
gbacktrace.c:318:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "backtrace\n", 10);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gbacktrace.c:319:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "p x = 0\n", 8);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gbacktrace.c:320:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "quit\n", 5);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Makefile:1275: recipe for target 'libglib_2_0_la-gcache.lo' failed
make[6]: *** [libglib_2_0_la-gcache.lo] Error 1
Makefile:1338: recipe for target 'libglib_2_0_la-gbitlock.lo' failed
make[6]: *** [libglib_2_0_la-gbitlock.lo] Error 1
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
Makefile:1289: recipe for target 'libglib_2_0_la-grel.lo' failed
make[6]: *** [libglib_2_0_la-grel.lo] Error 1
cc1: some warnings being treated as errors
Makefile:1317: recipe for target 'libglib_2_0_la-gatomic.lo' failed
make[6]: *** [libglib_2_0_la-gatomic.lo] Error 1
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
Makefile:1331: recipe for target 'libglib_2_0_la-gbase64.lo' failed
make[6]: *** [libglib_2_0_la-gbase64.lo] Error 1
Makefile:1310: recipe for target 'libglib_2_0_la-gasyncqueue.lo' failed
make[6]: *** [libglib_2_0_la-gasyncqueue.lo] Error 1
Makefile:1324: recipe for target 'libglib_2_0_la-gbacktrace.lo' failed
make[6]: *** [libglib_2_0_la-gbacktrace.lo] Error 1
Makefile:1282: recipe for target 'libglib_2_0_la-gcompletion.lo' failed
make[6]: *** [libglib_2_0_la-gcompletion.lo] Error 1
cc1: some warnings being treated as errors
Makefile:1296: recipe for target 'libglib_2_0_la-gthread-deprecated.lo' failed
make[6]: *** [libglib_2_0_la-gthread-deprecated.lo] Error 1
cc1: some warnings being treated as errors
Makefile:1303: recipe for target 'libglib_2_0_la-garray.lo' failed
make[6]: *** [libglib_2_0_la-garray.lo] Error 1
cc1: some warnings being treated as errors
Makefile:1345: recipe for target 'libglib_2_0_la-gbookmarkfile.lo' failed
make[6]: *** [libglib_2_0_la-gbookmarkfile.lo] Error 1
make[6]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
Makefile:1934: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
Makefile:953: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib/glib'
Makefile:1046: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
Makefile:770: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2/glib'
Makefile:707: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/batch-explorer-user/ffmpeg-static-build/packages/pkg-config-0.29.2'
Makefile:463: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants