Opened 3 years ago
Closed 2 years ago
#64496 closed defect (fixed)
gmp configure failure for ppc on 10.6.8 (Rosetta)
Reported by: | barracuda156 | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | powerpc, snowleopard, rosetta | Cc: | barracuda156 |
Port: | gmp |
Description
Complains about assembler:
checking if the assembler needs r on registers... configure: error: neither "mtctr 6" nor "mtctr r6" works Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.1" && ./configure --prefix=/opt/local --enable-cxx --host=powerpc750-apple-darwin10.8.0 Exit code: 1 Error: Failed to configure gmp: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/work/gmp-6.2.1/config.log Error: Failed to configure gmp: configure failure: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gmp/gmp/main.log for details.
Attachments (4)
Change History (11)
Changed 3 years ago by barracuda156
comment:1 Changed 3 years ago by barracuda156
Cc: | barracuda156 added |
---|
comment:2 Changed 3 years ago by barracuda156
Changed 3 years ago by barracuda156
Attachment: | config.log added |
---|
Changed 3 years ago by barracuda156
Changed 3 years ago by barracuda156
Warnings when building outside Macports
comment:3 Changed 3 years ago by barracuda156
Basically using this in port file and "commenting" everything below makes gmp
build:
set configure_cc_save ${configure.cc} configure.args-append CC_FOR_BUILD="gcc-4.2 -arch ppc -m32" \ CXX_FOR_BUILD="g++-4.2 -arch ppc -m32" \ --build=powerpc-apple-darwin10 \ --host=powerpc-apple-darwin10 \ --target=powerpc-apple-darwin10
Perhaps an ugly solution, so I am planning to rebuild it after getting feedback here, hopefully.
comment:4 Changed 2 years ago by barracuda156
Good news, the latest update of gmp
makes the fix redundant: https://github.com/macports/macports-ports/commit/43fc13d3e82f99ed563c4564cc6946ed75e75674
I am not sure, however, that the choice made by configure is appropriate (given Rosetta):
checking build system type... powerpc7400-apple-darwin10.8.0 checking host system type... powerpc750-apple-darwin10
comment:5 Changed 2 years ago by barracuda156
Owner: | set to MarcusCalhoun-Lopez |
---|---|
Status: | new → assigned |
comment:6 Changed 2 years ago by barracuda156
Keywords: | snowleopard rosetta added |
---|---|
Version: | 2.7.1 → 2.7.2 |
comment:7 Changed 2 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
If the current version of GMP works, then I will close this.
If the concerns about
checking build system type... powerpc7400-apple-darwin10.8.0 checking host system type... powerpc750-apple-darwin10
case any errors, we can reopen.
Note: See
TracTickets for help on using
tickets.
UPD: This is certainly Macports doing something wrong, since the source configures with zero errors and builds through completion otherwise (with some warnings, please check attachments below).
I used this to configure:
(In fact
ld
andas
went unrecognized, but that did not affect the build.)