[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1015705: wine: ftbfs with LTO (link time optimization) enabled



Package: src:wine
Version: 7.0~repack-1
Severity: minor
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-lto

This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled.  For a background
for LTO please see

https://wiki.debian.org/ToolChain/LTO

The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures.  The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.

To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:

export DEB_BUILD_MAINT_OPTIONS = optimize=+lto

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/wine_7.0~repack-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/cabinet/libcabinet.cross.a --export dlls/cabinet/cabinet.spec
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/sxs/libsxs.cross.a --export dlls/sxs/sxs.spec
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/imagehlp/libimagehlp.cross.a --export dlls/imagehlp/imagehlp.spec
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/mspatcha/libmspatcha.cross.a --export dlls/mspatcha/mspatcha.spec
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/odbccp32/libodbccp32.cross.a --export dlls/odbccp32/odbccp32.spec
x86_64-w64-mingw32-gcc -c -o dlls/mstask/mstask_main.cross.o dlls/mstask/mstask_main.c -Idlls/mstask -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/mstask/atsvc_c.cross.o dlls/mstask/atsvc_c.c -Idlls/mstask -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/netapi32/libnetapi32.cross.a --export dlls/netapi32/netapi32.spec
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr100/libmsvcr100.cross.a --export dlls/msvcr100/msvcr100.spec dlls/msvcr100/iob.cross.o dlls/msvcr100/mathf.cross.o dlls/msvcr100/onexit.cross.o dlls/msvcr100/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr110/libmsvcr110.cross.a --export dlls/msvcr110/msvcr110.spec dlls/msvcr110/iob.cross.o dlls/msvcr110/mathf.cross.o dlls/msvcr110/onexit.cross.o dlls/msvcr110/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr120/libmsvcr120.cross.a --export dlls/msvcr120/msvcr120.spec dlls/msvcr120/iob.cross.o dlls/msvcr120/mathf.cross.o dlls/msvcr120/onexit.cross.o dlls/msvcr120/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr70/libmsvcr70.cross.a --export dlls/msvcr70/msvcr70.spec dlls/msvcr70/iob.cross.o dlls/msvcr70/mathf.cross.o dlls/msvcr70/onexit.cross.o dlls/msvcr70/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr71/libmsvcr71.cross.a --export dlls/msvcr71/msvcr71.spec dlls/msvcr71/iob.cross.o dlls/msvcr71/mathf.cross.o dlls/msvcr71/onexit.cross.o dlls/msvcr71/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr80/libmsvcr80.cross.a --export dlls/msvcr80/msvcr80.spec dlls/msvcr80/iob.cross.o dlls/msvcr80/mathf.cross.o dlls/msvcr80/onexit.cross.o dlls/msvcr80/sincos.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/msvcr90/libmsvcr90.cross.a --export dlls/msvcr90/msvcr90.spec dlls/msvcr90/iob.cross.o dlls/msvcr90/mathf.cross.o dlls/msvcr90/onexit.cross.o dlls/msvcr90/sincos.cross.o
x86_64-w64-mingw32-gcc -c -o dlls/msxml3/factory.cross.o dlls/msxml3/factory.c -Idlls/msxml3 -Iinclude -Iinclude/msvcrt -I./libs/xslt -I./libs/xml2/include -D__WINESRC__ -DLIBXSLT_STATIC -DLIBXML_STATIC -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
bison -Wno-deprecated -Wno-conflicts-rr -Wno-conflicts-sr -p xslpattern_ -o dlls/msxml3/xslpattern.tab.c dlls/msxml3/xslpattern.y
x86_64-w64-mingw32-gcc -c -o dlls/msxml3/xslpattern.yy.cross.o dlls/msxml3/xslpattern.yy.c -Idlls/msxml3 -Iinclude -Iinclude/msvcrt -I./libs/xslt -I./libs/xml2/include -D__WINESRC__ -DLIBXSLT_STATIC -DLIBXML_STATIC -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --staticlib -o libs/xslt/libxslt.cross.a libs/xslt/libxslt/attributes.cross.o libs/xslt/libxslt/attrvt.cross.o libs/xslt/libxslt/documents.cross.o libs/xslt/libxslt/extensions.cross.o libs/xslt/libxslt/extra.cross.o libs/xslt/libxslt/functions.cross.o libs/xslt/libxslt/imports.cross.o libs/xslt/libxslt/keys.cross.o libs/xslt/libxslt/namespaces.cross.o libs/xslt/libxslt/numbers.cross.o libs/xslt/libxslt/pattern.cross.o libs/xslt/libxslt/preproc.cross.o libs/xslt/libxslt/security.cross.o libs/xslt/libxslt/templates.cross.o libs/xslt/libxslt/transform.cross.o libs/xslt/libxslt/variables.cross.o libs/xslt/libxslt/xslt.cross.o libs/xslt/libxslt/xsltlocale.cross.o libs/xslt/libxslt/xsltutils.cross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --staticlib -o libs/xml2/libxml2.cross.a libs/xml2/HTMLparser.cross.o libs/xml2/HTMLtree.cross.o libs/xml2/SAX.cross.o libs/xml2/SAX2.cross.o libs/xml2/buf.cross.o libs/xml2/catalog.cross.o libs/xml2/chvalid.cross.o libs/xml2/debugXML.cross.o libs/xml2/dict.cross.o libs/xml2/encoding.cross.o libs/xml2/entities.cross.o libs/xml2/error.cross.o libs/xml2/globals.cross.o libs/xml2/hash.cross.o libs/xml2/list.cross.o libs/xml2/parser.cross.o libs/xml2/parserInternals.cross.o libs/xml2/pattern.cross.o libs/xml2/relaxng.cross.o libs/xml2/threads.cross.o libs/xml2/tree.cross.o libs/xml2/uri.cross.o libs/xml2/valid.cross.o libs/xml2/xinclude.cross.o libs/xml2/xmlIO.cross.o libs/xml2/xmlmemory.cross.o libs/xml2/xmlreader.cross.o libs/xml2/xmlregexp.cross.o libs/xml2/xmlsave.cross.o libs/xml2/xmlschemas.cross.o libs/xml2/xmlschemastypes.cross.o libs/xml2/xmlstring.cross.o libs/xml2/xmlunicode.cross.o libs/xml2/xpath.cross.o libs/xml2/xpointer.c
 ross.o
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/iphlpapi/libiphlpapi.cross.a --export dlls/iphlpapi/iphlpapi.spec
x86_64-w64-mingw32-gcc -c -o dlls/netapi32/netapi32.cross.o dlls/netapi32/netapi32.c -Idlls/netapi32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_SVRAPI_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/netapi32/atsvc_c.cross.o dlls/netapi32/atsvc_c.c -Idlls/netapi32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_SVRAPI_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/mshtml/libmshtml.cross.a --export dlls/mshtml/mshtml.spec
x86_64-w64-mingw32-gcc -c -o dlls/ntoskrnl.exe/pnp.cross.o dlls/ntoskrnl.exe/pnp.c -Idlls/ntoskrnl.exe -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_MSVCR_VER=0 -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ntoskrnl.exe/plugplay_c.cross.o dlls/ntoskrnl.exe/plugplay_c.c -Idlls/ntoskrnl.exe -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_MSVCR_VER=0 -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/clipboard.cross.o dlls/ole32/clipboard.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/comcat.cross.o dlls/ole32/comcat.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/compobj.cross.o dlls/ole32/compobj.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/dlldata.cross.o dlls/ole32/dlldata.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -DENTRY_PREFIX=OLE32_ -DPROXY_CLSID=CLSID_PSFactoryBuffer -DWINE_REGISTER_DLL -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/dcom_p.cross.o dlls/ole32/dcom_p.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/ole32_objidl_p.cross.o dlls/ole32/ole32_objidl_p.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/ole32_oleidl_p.cross.o dlls/ole32/ole32_oleidl_p.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/ole32/ole32_unknwn_p.cross.o dlls/ole32/ole32_unknwn_p.c -Idlls/ole32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLE32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/combase/libcombase.cross.a --export dlls/combase/combase.spec
x86_64-w64-mingw32-gcc -c -o dlls/oleacc/dlldata.cross.o dlls/oleacc/dlldata.c -Idlls/oleacc -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_UCRT -DENTRY_PREFIX=OLEACC_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/oleaut32/oleaut.cross.o dlls/oleaut32/oleaut.c -Idlls/oleaut32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLEAUT32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/oleaut32/dlldata.cross.o dlls/oleaut32/dlldata.c -Idlls/oleaut32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLEAUT32_ -D_UCRT -DENTRY_PREFIX=OLEAUTPS_ -DPROXY_DELEGATION -DWINE_REGISTER_DLL -DPROXY_CLSID=CLSID_PSFactoryBuffer -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/oleaut32/oleaut32_oaidl_p.cross.o dlls/oleaut32/oleaut32_oaidl_p.c -Idlls/oleaut32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLEAUT32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
x86_64-w64-mingw32-gcc -c -o dlls/oleaut32/oleaut32_ocidl_p.cross.o dlls/oleaut32/oleaut32_ocidl_p.c -Idlls/oleaut32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_OLEAUT32_ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/comctl32/libcomctl32.delay.a --export dlls/comctl32/comctl32.spec
x86_64-w64-mingw32-gcc -c -o dlls/oledb32/convert_i.cross.o dlls/oledb32/convert_i.c -Idlls/oledb32 -Iinclude -Iinclude/msvcrt -D__WINESRC__ -D_UCRT -D__WINE_PE_BUILD -Wall -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -Wabsolute-value -Wno-format -Wformat-overflow -Wnonnull -mcx16 -gdwarf-4 -Werror -Wdate-time -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -Wno-format
tools/winebuild/winebuild -b x86_64-w64-mingw32 -w --implib -o dlls/xmllite/libxmllite.cross.a --export dlls/xmllite/xmllite.spec
tools/winegcc/winegcc -o dlls/openal32/openal32.dll.so --wine-objdir . -m64 -fPIC -fasynchronous-unwind-tables -shared dlls/openal32/openal32.spec -Wb,--prefer-native -mcygwin dlls/openal32/openal.o dlls/winecrt0/libwinecrt0.a dlls/kernel32/libkernel32.a dlls/ntdll/libntdll.a -lopenal -ldl -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now
tools/winegcc/winegcc -o dlls/openal32/openal32.dll --wine-objdir . -m64 -fPIC -fasynchronous-unwind-tables -Wb,--fake-module -shared dlls/openal32/openal32.spec -Wb,--prefer-native -mcygwin
tools/winebuild/winebuild -w --implib -o dlls/glu32/libglu32.a -m64 --export dlls/glu32/glu32.spec
tools/winebuild/winebuild -w --implib -o dlls/advapi32/libadvapi32.a -m64 --export dlls/advapi32/advapi32.spec
/usr/bin/ld: dlls/kernel32/libkernel32.a(kernel32-fd625334.o): warning: relocation against `__wine$func$kernel32$195$DisableThreadLibraryCalls' in read-only section `.text'
/usr/bin/ld: /tmp/ccGVz7WM.ltrans0.ltrans.o: in function `wine_dbg_log.constprop.0':
/<<PKGBUILDDIR>>/include/wine/debug.h:213: undefined reference to `__wine_dbg_header'
/usr/bin/ld: /<<PKGBUILDDIR>>/include/wine/debug.h:218: undefined reference to `__wine_dbg_output'
/usr/bin/ld: dlls/kernel32/libkernel32.a(kernel32-348df3dc.o): in function `DeleteCriticalSection':
(.text+0x0): undefined reference to `__wine$func$kernel32$180$DeleteCriticalSection'
/usr/bin/ld: dlls/kernel32/libkernel32.a(kernel32-fd625334.o): in function `DisableThreadLibraryCalls':
(.text+0x0): undefined reference to `__wine$func$kernel32$195$DisableThreadLibraryCalls'
/usr/bin/ld: dlls/kernel32/libkernel32.a(kernel32-3b5365ec.o): in function `EnterCriticalSection':
(.text+0x0): undefined reference to `__wine$func$kernel32$206$EnterCriticalSection'
/usr/bin/ld: dlls/kernel32/libkernel32.a(kernel32-7930d0e8.o): in function `LeaveCriticalSection':
(.text+0x0): undefined reference to `__wine$func$kernel32$776$LeaveCriticalSection'
/usr/bin/ld: warning: creating DT_TEXTREL in a shared object
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/gcc failed
make[2]: *** [Makefile:23921: dlls/openal32/openal32.dll.so] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:160: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:110: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: