[MacPorts] #61721: Failed to compile wine and wine-devel
MacPorts
noreply at macports.org
Tue Dec 1 22:08:16 UTC 2020
#61721: Failed to compile wine and wine-devel
---------------------+--------------------
Reporter: lyssdod | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
---------------------+--------------------
Trying to compile wine and wine-devel on 10.6 results in following:
{{{
:info:build /opt/local/bin/clang-mp-9.0 -m64 -c -o loader.o
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9/libs/wine/loader.c \
:info:build -I. \
:info:build
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9/libs/wine \
:info:build -I../../include \
:info:build
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9/include \
:info:build -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-
aliasing -Wdeclaration-after-statement \
:info:build -Wempty-body -Wignored-qualifiers -Wno-pragma-pack -Wstrict-
prototypes -Wtype-limits -Wvla \
:info:build -Wwrite-strings -Wpointer-arith -I/opt/local/include -pipe
-Os -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9/libs/wine/loader.c:435:18: warning: implicit
declaration of function 'getsegmentdata' is invalid in C99 [-Wimplicit-
function-declaration]
:info:build code_end = getsegmentdata(dli.dli_fbase, "__DATA",
&data_size) - addr;
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9/libs/wine/loader.c:435:70: error: invalid operands to
binary expression ('int' and 'BYTE *' (aka 'unsigned char *'))
:info:build code_end = getsegmentdata(dli.dli_fbase, "__DATA",
&data_size) - addr;
:info:build
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
:info:build 1 warning and 1 error generated.
:info:build make[1]: *** [loader.o] Error 1
:info:build make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_x11_wine-devel/wine-
devel/work/wine-4.9-x86_64/libs/wine'
:info:build make: *** [libs/wine] Error 2
}}}
I've tried both {{{+universal}}} and {{{-universal}}} variants, it always
fails on the same line. Can compiler be the culprit? It seems quite
recent though:
{{{
$ /opt/local/bin/clang-mp-9.0 --version
clang version 9.0.1
Target: x86_64-apple-darwin10.8.0
Thread model: posix
InstalledDir: /opt/local/libexec/llvm-9.0/bin
}}}
wine-master still have this line without any changes (https://github.com
/wine-mirror/wine/blob/master/libs/wine/loader.c#L369), is there some
specific patch missing?
Attached is i386 variant build log.
Or is it because of this {{{configure}}} line? :D
{{{
:info:configure checking whether the compiler supports -mmacosx-version-
min=10.7 -nostartfiles -nodefaultlibs... no
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61721>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list