Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61711 closed defect (fixed)

pgplot fails to build on Apple Silicon

Reported by: rth238 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: sselgueta, reneeotten (Renee Otten)
Port: pgplot

Description (last modified by mf2k (Frank Schima))

End of main.log file (full one is also attached):
:info:build Exit code: 2
:error:build Failed to build pgplot: command execution failed
:debug:build Error code: CHILDSTATUS 43094 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_pgplot/pgplot/main.log for details.

Attachments (1)

pgplot.main.log (200.8 KB) - added by rth238 4 years ago.
main.log

Download all attachments as: .zip

Change History (13)

Changed 4 years ago by rth238

Attachment: pgplot.main.log added

main.log

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Cc: https://ports.macports.org/maintainer/github/MarcusCalhoun-Lopez removed
Description: modified (diff)
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:3 Changed 4 years ago by jmroot (Joshua Root)

Keywords: arm64 removed

I think this is more a GCC 11 thing than an Apple Silicon thing, the latter just happens to require the former.

comment:4 Changed 4 years ago by reneeotten (Renee Otten)

Cc: sselgueta added

has duplicate: #62152

comment:5 Changed 4 years ago by reneeotten (Renee Otten)

it appears that this should have been fixed (see #60442) where the compilers.allow_arguments_mismatch yes was added in the Portfile... That doesn't seem to work anymore?

comment:6 in reply to:  3 Changed 4 years ago by reneeotten (Renee Otten)

Replying to jmroot:

I think this is more a GCC 11 thing than an Apple Silicon thing, the latter just happens to require the former.

Perhaps gccdevel needs to be added in the compilers-1.0 PG (likely here)? I think that line should be changed to if {${fortran_compiler} in "gcc10 gccdevel"} {

if someone who experiences this issue wants to give that a try and report back, that would be helpful.

Last edited 4 years ago by reneeotten (Renee Otten) (previous) (diff)

comment:7 Changed 4 years ago by rth238

Thanks for the suggestion. It took me a while to figure out where to look (I've been a user, but not very knowledgeable). I looked in /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group and found the file I think you intended, compilers-1.0.tcl and edited line 731 to be:

if {${fortran_compiler} eq "gcc10 gccdevel"} {

I then issued the commands sudo port clean pgplot sudo port install pgplot

but got the same errors... So unless I didn't follow your suggestion correctly, this does not seem to be the issue. Regardless, thanks for your suggestion!

comment:8 Changed 4 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In df4975d15bb14eb70c12da9991e96911c6dc5cfc/macports-ports (master):

compilers pg: allow_arguments_mismatch should also apply to gcc-devel

Fixes: #61711

comment:9 Changed 4 years ago by reneeotten (Renee Otten)

I *think* that the change I just merged should fix this... Please try sudo port selfupdate ; sudo port clean --all pgplot ; sudo port -dv install pgplot and report back!

comment:10 Changed 4 years ago by reneeotten (Renee Otten)

Cc: reneeotten added

comment:11 Changed 4 years ago by sselgueta

Thank you very much! Now it's working OK!!!!

comment:12 Changed 4 years ago by rth238

Yes, that did it. Thank you!

Note: See TracTickets for help on using tickets.