[Bug 745804] flex fails to build on Windows

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jun 1 14:07:52 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=745804

--- Comment #8 from Philippe Renon <philippe_renon at yahoo.fr> ---
I figured out how to add the msys-1.0 lib.

These are the changed line in flex.recipe:
    platform_deps = {Platform.WINDOWS: ['gettext', 'mingw-regex']}

    def prepare(self):
        if self.config.target_platform == Platform.WINDOWS:
            self.append_env['LDFLAGS'] = '-lmsys-1.0'

Now the configure step fails with:

Running command './configure --prefix
/D/MinGW/msys/1.0/home/Utilisateur/cerbero/build-tools --libdir
/D/MinGW/msys/1.0/
home/Utilisateur/cerbero/build-tools/lib  --disable-maintainer-mode 
--disable-silent-rules  --disable-introspection  am
_cv_python_platform="win32" ne_cv_libsfor_gethostbyname="-lws2_32"
ac_cv_c_attribute_aligned="64" ac_cv_func_realloc_0_n
onnull="yes" lt_cv_deplibs_check_method="pass_all"
am_cv_python_pyexecdir="D:/MinGW/msys/1.0/home/Utilisateur/cerbero/bu
ild-tools/lib/python2.7/site-packages" ac_cv_lib_bz2_BZ2_bzlibVersion="yes"
am_cv_python_version="2.7" ne_cv_libsfor_soc
ket="-lws2_32"
am_cv_python_pythondir="D:/MinGW/msys/1.0/home/Utilisateur/cerbero/build-tools/lib/python2.7/site-package
s" ac_cv_func_malloc_0_nonnull="yes" --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32'
configure: WARNING: unrecognized options: --disable-maintainer-mode,
--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 for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/home/Utilisateur/cerbero/build-tools/bin/msgfmt
checking for gmsgfmt... /usr/home/Utilisateur/cerbero/build-tools/bin/msgfmt
checking for xgettext... /usr/home/Utilisateur/cerbero/build-tools/bin/xgettext
checking for msgmerge... /usr/home/Utilisateur/cerbero/build-tools/bin/msgmerge
checking for style of include used by make... GNU
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether the C compiler works... no
configure: error: in
`/usr/home/Utilisateur/cerbero/sources/build-tools/flex-2.5.39':
configure: error: C compiler cannot create executables
See `config.log' for more details
Recipe 'flex' failed at the build step 'configure'

Please note that the "official" msys flex build requires the use of an MSYS
shell. The msys flex build script will check for that and fail explicitly if a
MINGW shell is used.
Flex needs to be built with the gcc that comes with MSYS and not the MINGW one.

Is that possible at all from cerbero?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list