Opened 6 years ago
Closed 6 years ago
#56869 closed defect (wontfix)
serf1 @1.3.9: scons fails when python27 is 32-bit
Reported by: | maurogaio | Owned by: | blair (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | serf1 |
Description (last modified by mf2k (Frank Schima))
---> Computing dependencies for serf1 ---> Fetching archive for serf1 ---> Attempting to fetch serf1-1.3.9_0.darwin_17.i386.tbz2 from http://lil.fr.packages.macports.org/serf1 ---> Attempting to fetch serf1-1.3.9_0.darwin_17.i386.tbz2 from https://packages.macports.org/serf1 ---> Attempting to fetch serf1-1.3.9_0.darwin_17.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/serf1 ---> Fetching distfiles for serf1 ---> Verifying checksums for serf1 ---> Extracting serf1 ---> Applying patches to serf1 ---> Configuring serf1 ---> Building serf1 Error: Failed to build serf1: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_serf1/serf1/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port serf1 failed
Change History (7)
comment:2 Changed 6 years ago by mf2k (Frank Schima)
Owner: | set to blair |
---|---|
Status: | new → assigned |
In the future, please use WikiFormatting and add the port maintainer(s) to Cc (port info --maintainers serf1
), if any.
comment:3 Changed 6 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:4 Changed 6 years ago by blair (Blair Zajac)
It looks like there's something odd with your setup:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/struct.py", line 1, in <module> :info:build from _struct import * :info:build ImportError: No module named _struct
This should work
$ python2.7 Python 2.7.15 (default, Jul 18 2018, 15:02:33) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information. Setting tab completion. >>> import struct
comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Out of curiosity, why are you trying to build for 32-bit, rather than 64-bit as would be usual on High Sierra (and indeed on Lion and later)? Have you deliberately (or accidentally?) changed build_arch
in macports.conf?
comment:6 Changed 6 years ago by maurogaio
python27: I've fixed the problem with my python setup, but it still does not work.
32-bit : Yes initially I wanted to try to make a migration to retain the ability to run afterwards old applications.
Solution: I removed the 32-bit option and reinstalled macports completely, it works
comment:7 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign added |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Summary: | Failed to build serf1: command execution failed → serf1 @1.3.9: scons fails when python27 is 32-bit |
I am able to reproduce this issue, if python27 has been installed for arch i386 only on a 64-bit computer. I don't think we've encountered anyone else trying to use such a configuration, so I don't think we're likely to spend a lot of time trying to fix it. On a 64-bit computer, set build_arch
in macports.conf to x86_64
(that's the default) and let MacPorts build 64-bit software. If you still want 32-bit support, make sure universal_archs
is x86_64 i386
(that's the default) and install ports with the +universal variant, which will give you programs and libraries that can be used from both 32-bit and 64-bit. I have most of my ports installed universal on High Sierra and it works fine for serf1. Trying to build serf1 with the 32-bit part of the universal python27 (by editing the serf1 portfile and changing build.cmd
to arch -i386 ${prefix}/bin/python2.7 ${prefix}/bin/scons
) still fails (with a slightly different error: ImportError: dynamic module does not define init function (init_struct)
), so there may be a general problem with 32-bit python27 on 64-bit Macs, or it may be a problem specific to scons.