rdp / ffmpeg-windows-build-helpers

Helper script for cross compiling some media tools for windows, like customizable ffmpeg.exe (with or without non-free components, etc), and some other bonuses like mplayer, mp4box, mxf, etc.
GNU General Public License v3.0
1.08k stars 414 forks source link

MP4Box 32-bit build fails #460

Open PeacefullyDisturbed opened 4 years ago

PeacefullyDisturbed commented 4 years ago

When testing a -a build I encountered an error with the MP4Box 32-bit build. The 64-bit build of MP4Box succeeds.

The error occurs during compiling and I experienced it on Ubuntu 20.04 and 18.04.

I have attached a text file with the whole output, but here is the specific error:

/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include" -O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git" -fvisibility="hidden" -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib" -DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_net.o utils/os_net.c
  CC utils/os_thread.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include" -O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git" -fvisibility="hidden" -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib" -DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_thread.o utils/os_thread.c
  CC utils/os_config_init.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include" -O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git" -fvisibility="hidden" -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib" -DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_config_init.o utils/os_config_init.c
  CC utils/cache.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include" -O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git" -fvisibility="hidden" -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib" -DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/cache.o utils/cache.c
utils/os_net.c: In function 'gf_sk_send':
utils/os_net.c:950:9: error: 'EPIPE' undeclared (first use in this function)
    case EPIPE:
         ^~~~~
utils/os_net.c:950:9: note: each undeclared identifier is reported only once for each function it appears in
utils/os_net.c:956:9: error: 'EPROTOTYPE' undeclared (first use in this function); did you mean 'WSAEPROTOTYPE'?
    case EPROTOTYPE:
         ^~~~~~~~~~
         WSAEPROTOTYPE
utils/os_net.c:959:9: error: 'ENOBUFS' undeclared (first use in this function); did you mean 'WSAENOBUFS'?
    case ENOBUFS:
         ^~~~~~~
         WSAENOBUFS
  CC utils/downloader.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include" -O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git" -fvisibility="hidden" -I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib" -DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/downloader.o utils/downloader.c
make: *** [../config.mak:137: utils/os_net.o] Error 1
make: *** Waiting for unfinished jobs....

Attached is the full ouput: mp4box_32-bit_build.txt

rdp commented 4 years ago

Did it work with old mingw-w64 I wonder?

On 6/22/20, William Foster notifications@github.com wrote:

When testing a -a build I encountered an error with the MP4Box 32-bit build. The 64-bit build of MP4Box succeeds.

The error occurs during compiling and I experienced it on Ubuntu 20.04 and 18.04.

I have attached a text file with the whole output, but here is the specific error:

/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include"
-O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC
-DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations
-Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git"
-fvisibility="hidden"
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib"
-DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_net.o
utils/os_net.c
  CC utils/os_thread.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include"
-O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC
-DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations
-Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git"
-fvisibility="hidden"
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib"
-DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_thread.o
utils/os_thread.c
  CC utils/os_config_init.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include"
-O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC
-DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations
-Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git"
-fvisibility="hidden"
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib"
-DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/os_config_init.o
utils/os_config_init.c
  CC utils/cache.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include"
-O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC
-DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations
-Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git"
-fvisibility="hidden"
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib"
-DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/cache.o utils/cache.c
utils/os_net.c: In function 'gf_sk_send':
utils/os_net.c:950:9: error: 'EPIPE' undeclared (first use in this
function)
    case EPIPE:
         ^~~~~
utils/os_net.c:950:9: note: each undeclared identifier is reported only once
for each function it appears in
utils/os_net.c:956:9: error: 'EPROTOTYPE' undeclared (first use in this
function); did you mean 'WSAEPROTOTYPE'?
    case EPROTOTYPE:
         ^~~~~~~~~~
         WSAEPROTOTYPE
utils/os_net.c:959:9: error: 'ENOBUFS' undeclared (first use in this
function); did you mean 'WSAENOBUFS'?
    case ENOBUFS:
         ^~~~~~~
         WSAENOBUFS
  CC utils/downloader.c
/build/master-ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32-gcc
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/include"
-O3  -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC
-DGPAC_NO_STDATOMIC -DNDEBUG -Wno-deprecated -Wno-deprecated-declarations
-Wno-int-in-bool-context -DGPAC_HAVE_CONFIG_H
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git"
-fvisibility="hidden"
-I"/build/master-ffmpeg-windows-build-helpers/sandbox/win32/mp4box_gpac_git/extra_lib/include/zlib"
-DGPAC_MP4BOX_MINI -DGPAC_STATIC_MODULES -c -o utils/downloader.o
utils/downloader.c
make: *** [../config.mak:137: utils/os_net.o] Error 1
make: *** Waiting for unfinished jobs....

Attached is the full ouput: mp4box_32-bit_build.txt

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rdp/ffmpeg-windows-build-helpers/issues/460

PeacefullyDisturbed commented 4 years ago

No when I encountered the issue testing an -a build with my changes I also cloned the repo from 7d90ee68b163c03c144705a5627263747dd17113 (before any of my commits) and ran into the same problem.

As I said it is only on 32-bit builds, so I'm guessing something that is detecting what to include for cross compiling isn't working properly.

rdp commented 4 years ago

OK thanks.

On 6/24/20, William Foster notifications@github.com wrote:

No when I encountered the issue testing an -a build with my changes I also cloned the repo from 7d90ee68b163c03c144705a5627263747dd17113 (before any of my commits) and ran into the same problem.

As I said it is only on 32-bit builds, so I'm guessing something that is detecting what to include for cross compiling isn't working properly.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/rdp/ffmpeg-windows-build-helpers/issues/460#issuecomment-649150528