Wine installation errors

Ryan Schmidt ryandesign at
Fri Dec 23 13:03:03 PST 2011

On Dec 23, 2011, at 08:13, Jasper Frumau wrote:

> had some issues installing. Had to reinstall some dependencies because of architecture issues. Now I am further, but have more errors:
> sudo port install wine
> --->  Computing dependencies for wine
> --->  Configuring wine
> --->  Building wine
> Error: Target returned: shell command failed (see log for details)
> Log for wine is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/main.log
> Error: Status 1 encountered during processing.
> To report a bug, see <>
> jaspersmbp:~ jasper$ tail -n 20 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/main.log
> :info:build /usr/bin/gcc-4.2 -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -I/opt/local/include -D_DARWIN_NO_64_BIT_INODE -O2 -arch i386  -o write_msft.o write_msft.c
> :info:build bison  -p parser_ -o -d parser.y
> :info:build flex  -oparser.yy.c parser.l
> :info:build LC_ALL=C sed -e 's, at bindir\@,/opt/local/bin,g' -e 's, at dlldir\@,/opt/local/lib/wine,g' -e 's, at PACKAGE_STRING\@,Wine 1.2.3,g' > || (rm -f && false)
> :info:build bison  -p parser_ -o parser.y
> :info:build /usr/bin/gcc-4.2 -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -I/opt/local/include -D_DARWIN_NO_64_BIT_INODE -O2 -arch i386  -o parser.yy.o parser.yy.c
> :info:build /usr/bin/gcc-4.2 -m32 -c -I. -I. -I../../include -I../../include  -D__WINESRC__   -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -I/opt/local/include -D_DARWIN_NO_64_BIT_INODE -O2 -arch i386  -o
> :info:build /usr/bin/gcc-4.2 -m32 -O2 -arch i386 -o widl client.o expr.o hash.o header.o proxy.o server.o typegen.o typelib.o typetree.o utils.o widl.o write_msft.o parser.yy.o     ../../libs/wpp/libwpp.a ../../libs/port/libwine_port.a -L/opt/local/lib -framework CoreServices -lz -arch i386
> :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/work/wine-1.2.3/tools/widl'
> :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/work/wine-1.2.3'
> :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/work/wine-1.2.3" && /usr/bin/make -j2 -w depend all " returned error 2
> :error:build Target returned: shell command failed (see log for details)
> :debug:build Backtrace: shell command failed (see log for details)
>     while executing
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: the following items did not execute (for wine): org.macports.activate org.macports.destroot org.macports.install
> :notice:build Log for wine is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/wine/main.log

I do not see from that snippet what the error is. The real error is probably further back, preceding a line that says "Waiting for unfinished jobs...." Can you supply a link to the entire main.log file?

> I think there are more architecture issues. Is there another easier way to get Wine going?

Installing wine should be as simple as "sudo port install wine". If this is not working for you we need to investigate why. It should not be possible for there to be architecture issues, provided all ports in the dependency chain were initially installed or last upgraded using MacPorts 1.9.0 or later; MacPorts will upgrade ports to universal as needed to satisfy architecture requirements, or tell you it cannot do so (but it can for all the ports in the wine dependency chain, or I would not have been able to install it myself).

More information about the macports-users mailing list