[Bootstrap] C compiler cannot create executables
Hello.
I'm struggling to build gstreamer from the source on Windows 10. (MinGW/MSYS)
I think I have followed all the instructions in the tutorial:
https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-cerbero.html?gi-language=c
But when executing ./cerbero-uninstalled bootstrap
, C compiler fails to compile.
Among the packages required, mingw-runtime
, autoconf
, gettext-m4
and automake
are installed successfully.
But errors occur when the bootstrap installs m4
, libtool
and so on.
[(5/18) m4 -> fetch]
[(5/18) m4 -> extract]
-----> Extracting tarball to C:/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/sources/build-tools/m4-1.4.18
[(5/18) m4 -> configure]
CERBERO: copying C:/MinGW/msys/1.0/home/nnstreamer/git/cerbero/data/autotools/config.guess to C:/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/sources/build-tools/m4-1.4.18/build-aux/config.guess
CERBERO: copying C:/MinGW/msys/1.0/home/nnstreamer/git/cerbero/data/autotools/config.sub to C:/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/sources/build-tools/m4-1.4.18/build-aux/config.sub
Running command 'sh -c './configure --prefix /C/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/build-tools --libdir /C/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/build-tools/lib --with-pic --disable-maintainer-mode --disable-silent-rules --disable-gtk-doc --disable-introspection ne_cv_libsfor_socket="-lws2_32" ne_cv_libsfor_gethostbyname="-lws2_32" ac_cv_func_malloc_0_nonnull="yes" ac_cv_func_realloc_0_nonnull="yes" lt_cv_deplibs_check_method="pass_all" ac_cv_lib_bz2_BZ2_bzlibVersion="yes" ac_cv_c_attribute_aligned="64" --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-gcc-warnings ''
configure: WARNING: unrecognized options: --with-pic, --disable-maintainer-mode, --disable-gtk-doc, --disable-introspection
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... no
configure: error: in `/usr/home/nnstreamer/git/cerbero/build/sources/build-tools/m4-1.4.18':
configure: error: C compiler cannot create executables
See `config.log' for more details
Recipe 'm4' failed at the build step 'configure'
Fatal Error: Running ['sh', '-c', './configure --prefix /C/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/build-tools --libdir /C/MinGW/msys/1.0/home/nnstreamer/git/cerbero/build/build-tools/lib --with-pic --disable-maintainer-mode --disable-silent-rules --disable-gtk-doc --disable-introspection ne_cv_libsfor_socket="-lws2_32" ne_cv_libsfor_gethostbyname="-lws2_32" ac_cv_func_malloc_0_nonnull="yes" ac_cv_func_realloc_0_nonnull="yes" lt_cv_deplibs_check_method="pass_all" ac_cv_lib_bz2_BZ2_bzlibVersion="yes" ac_cv_c_attribute_aligned="64" --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --disable-gcc-warnings '], returncode 77
I checked config.log
file and found out that ld
cannot find crt2.o
.
But this is just one example of many errors I got.
The compiler searches for the required libraries and headers in ~/git/cerbero/build/build-tools/lib
and ~/git/cerbero/build/build-tools/include
respectively, but a lot of them are missing.
I also tried to copy all the required files to the path, but it didn't work out.
How can I do for this problem?
Thank you!