Opened 13 years ago
Closed 13 years ago
#31584 closed defect (fixed)
wine ports cannot install for the arch(s) 'i386' because dependency apple-gcc42 does not build for the required arch(s) by default and does not have a universal variant
Reported by: | rob@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | jyrkiwahlstedt, jeremyhu (Jeremy Huddleston Sequoia), motumbo@…, pp.oldenzeel@…, lfelipe.sanchez@…, drkp (Dan Ports) | |
Port: | wine, wine-devel, wine-crossover, wine-crossover-games |
Description (last modified by mf2k (Frank Schima))
Last login: Thu Oct 13 14:26:14 on console robs-macbook-pro-2:~ rob$ sudo port install wine Password: ---> Computing dependencies for wine Error: Cannot install wine for the arch(s) 'i386' because Error: its dependency apple-gcc42 does not build for the required arch(s) by default Error: and does not have a universal variant. Error: Unable to execute port: architecture mismatch To report a bug, see <http://guide.macports.org/#project.tickets> robs-macbook-pro-2:~ rob$
Attachments (1)
Change History (22)
comment:1 Changed 13 years ago by mf2k (Frank Schima)
Cc: | jwa@… added |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to ryandesign@… |
Port: | wine added |
Priority: | High → Normal |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeremyhu@… added |
---|---|
Port: | wine-devel wine-crossover wine-crossover-games added |
Status: | new → assigned |
Summary: | after installing macports, i get an error code on trying to install wine (i am using an i7 macbookpro with osx Lion)use → wine ports cannot install for the arch(s) 'i386' because dependency apple-gcc42 does not build for the required arch(s) by default and does not have a universal variant |
Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Attachment: | wine-skip-archcheck.diff added |
---|
try this patch
comment:4 Changed 13 years ago by motumbo@…
I'm having the same issue here with final XCode 4.2 for Snow Leopard. I have tried the patch and I got this:
[Users/Motumbo] > install wine-devel ---> Computing dependencies for wine-devel Error: Cannot install cairo for the arch(s) 'i386 x86_64' because Error: its dependency apple-gcc42 does not build for the required arch(s) by default Error: and does not have a universal variant. Error: Unable to execute port: architecture mismatch To report a bug, see <http://guide.macports.org/#project.tickets>
Looks like we have to apply the patch to the other dependencies.
comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
I was not aware Xcode 4.2 existed for Snow Leopard. It is not listed at Apple Developer Connection downloads. Has it perhaps not been released yet?
Did you try the patch I attached? Did that fix the problem?
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Oh sorry, I misread your message. Ok, so try applying my patch to the cairo port as well then. Does that work?
comment:7 Changed 13 years ago by motumbo@…
Damn, is 4.2 GM, but the Lion version is final, I'm downgrading to XCode 4.0
comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, then can the original reporter please indicate whether applying the attached patch to the wine and cairo ports resolves the issue?
comment:9 follow-up: 11 Changed 13 years ago by pp.oldenzeel@…
I have the same problem as the original reporter and can't seem to shake it. I have patched wine's Portfile using the patch provided, but now it errors out on building apple-gcc42:
unknown-00-23-32-d6-38-3c:wine root# port install wine Portfile changed since last build; discarding previous state. ---> Computing dependencies for wine ---> Dependencies to be installed: apple-gcc42 gcc_select flex fontconfig freetype freetype gnutls libgcrypt libgpg-error libtasn1 lzo2 jpeg jpeg lcms tiff tiff libpng libxml2 libxml2 libxslt mesa makedepend xorg-xproto py27-libxml2 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXi xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libsm xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-renderproto xrender xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto ---> Fetching archive for gcc_select ---> Attempting to fetch gcc_select-0.1_5.darwin_11.noarch.tbz2 from http://packages.macports.org/gcc_select ---> Fetching gcc_select ---> Verifying checksum(s) for gcc_select ---> Extracting gcc_select ---> Configuring gcc_select ---> Building gcc_select ---> Staging gcc_select into destroot ---> Installing gcc_select @0.1_5 ---> Activating gcc_select @0.1_5 ---> Cleaning gcc_select ---> Fetching archive for apple-gcc42 ---> Attempting to fetch apple-gcc42-5666.3_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/apple-gcc42 ---> Fetching apple-gcc42 ---> Attempting to fetch gcc-5666.3.tar.gz from http://lil.fr.distfiles.macports.org/apple-gcc42 ---> Verifying checksum(s) for apple-gcc42 ---> Extracting apple-gcc42 ---> Applying patches to apple-gcc42 ---> Configuring apple-gcc42 ---> Building apple-gcc42 Error: Target org.macports.build returned: shell command failed (see log for details) Error: Failed to install apple-gcc42 Log for apple-gcc42 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_apple-gcc42/apple-gcc42/main.log Error: The following dependencies were not installed: apple-gcc42 flex fontconfig freetype freetype gnutls libgcrypt libgpg-error libtasn1 lzo2 jpeg jpeg lcms tiff tiff libpng libxml2 libxml2 libxslt mesa makedepend xorg-xproto py27-libxml2 xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXi xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libsm xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-renderproto xrender xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
comment:10 follow-up: 12 Changed 13 years ago by lfelipe.sanchez@…
Hi,
I'm having the same problem, however when I apply the patch like:
patch -p0 < wine-skip-archcheck.diff
I get an the following:
can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Index: Portfile |=================================================================== |--- Portfile (revision 85253) |+++ Portfile (working copy) -------------------------- File to patch:
Could you be more specific on how to apply the patch?
Thanks
comment:11 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | pp.oldenzeel@… added |
---|
Replying to pp.oldenzeel@…:
it errors out on building apple-gcc42:
Please file a separate bug report for this problem, attaching the main.log file to it.
comment:12 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | lfelipe.sanchez@… added |
---|
Replying to lfelipe.sanchez@…:
Could you be more specific on how to apply the patch?
cd $(port dir wine) sudo patch -p0 < ~/Downloads/wine-skip-archcheck.diff cd $(port dir cairo) sudo patch -p0 < ~/Downloads/wine-skip-archcheck.diff
comment:13 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:14 follow-up: 15 Changed 13 years ago by drkp (Dan Ports)
If we always want to skip the archcheck for apple-gcc42, should we just mark it installs_libs no
?
comment:15 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | dports@… added |
---|
Replying to dports@…:
If we always want to skip the archcheck for apple-gcc42,
I think we do.
should we just mark it
installs_libs no
?
I don't know; is that equivalent?
comment:16 Changed 13 years ago by drkp (Dan Ports)
Yes. It also indicates that it's OK to skip the license check for dependents, but that's fine too for gcc.
comment:17 follow-up: 18 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
comment:18 Changed 13 years ago by drkp (Dan Ports)
Replying to ryandesign@…:
See also #31606 which may make even this unnecessary.
True, but if it doesn't matter what arch gcc is built for, it's still better to have it installs_libs no -- then we don't have to go to the effort of needlessly building it universal.
comment:19 Changed 13 years ago by rob@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:20 Changed 13 years ago by rob@…
So, excuse my ignorance but, what exactlty do I need to do to fix the problem?
Regards Rob
comment:21 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
sudo port selfupdate sudo port clean wine sudo port install wine
This is because you are using a developer preview of Xcode 4.2, which doesn't contain any version of gcc. I thought we had worked around the problem by depending on the apple-gcc42 port in this case but I had forgotten about the architecture issues. I wonder if we could just skip the archcheck for apple-gcc42. What happens if you try the attached patch?