Opened 12 months ago
Closed 12 months ago
#68727 closed defect (fixed)
grads @2.2.1: error: too few arguments to function call, expected 3, have 2
Reported by: | musaidpp (musaidpp) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | sonoma | Cc: | Dave-Allured (Dave Allured) |
Port: | grads |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
(base) musaidpp@Musaids-MacBook-Pro ~ % sudo port install grads Password: ---> Computing dependencies for grads ---> Fetching archive for grads ---> Attempting to fetch grads-2.2.1_16.darwin_23.arm64.tbz2 from https://packages.macports.org/grads ---> Attempting to fetch grads-2.2.1_16.darwin_23.arm64.tbz2 from http://mirror.fcix.net/macports/packages/grads ---> Attempting to fetch grads-2.2.1_16.darwin_23.arm64.tbz2 from https://nue.de.packages.macports.org/grads ---> Building grads Error: Failed to build grads: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_grads/grads/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: Processing of port grads failed
Attachments (1)
Change History (12)
Changed 12 months ago by musaidpp (musaidpp)
comment:1 Changed 12 months ago by Dave-Allured (Dave Allured)
Here is the real problem.
:info:build gaio.c:4699:37: error: too few arguments to function call, expected 3, have 2 :info:build if ((rc = H5Oget_info(vid,&oinfo))<0) err=1; :info:build ~~~~~~~~~~~ ^
comment:2 Changed 12 months ago by Dave-Allured (Dave Allured)
It looks like this was caused by an HDF5 version update, and Grads was not updated to follow. This post shows a probable solution:
comment:3 Changed 12 months ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:4 Changed 12 months ago by Dave-Allured (Dave Allured)
Note the the original Grads repo at Cola is no longer maintained. Grads 2.2.1 is now more than 5 years old. One of the original developers is now hosting a newer community version, currently at 2.2.3. Macports should probably update.
comment:5 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | sonoma added; Grads Sonoma darwin removed |
Owner: | set to tenomoto |
Priority: | High → Normal |
Status: | new → assigned |
Summary: | Processing of port grads failed on Sonoma → grads @2.2.1: error: too few arguments to function call, expected 3, have 2 |
comment:6 Changed 12 months ago by Dave-Allured (Dave Allured)
Ryan, thanks. Also, if my analysis is right, then this affects Grads on all OS versions, not just Sonoma.
comment:7 follow-up: 10 Changed 12 months ago by musaidpp (musaidpp)
Thank you, Dave, for your response. Unfortunately, I couldn't find a solution at the https://github.com/j-m-adams/GrADS/issues/10 since MacPorts doesn't have a version other than hdf5 @1.14.3 (science). Despite installing HDF5 version 1.10 and specifying the path in ~/.zshrc, it seems that MacPorts isn't recognizing it. Any insights or suggestions to resolve this would be highly appreciated.
I've tried several other approaches, but encountered errors at every step. When using brew install grads, the libraries were compatible with arm64 but required for x86_64.
While attempting to build from the source code at https://github.com/j-m-adams/GrADS/, I encountered the following error:
gauser.c:8034:11: error: call to undeclared function 'history_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] his_cmd = history_list(); ^ gauser.c:8034:11: note: did you mean 'history_get'?
I'm relatively new to macOS, and any help with installing GrADS on the Sonoma version would be greatly appreciated. GrADS would significantly simplify my tasks. Thanks in advance.
comment:8 Changed 12 months ago by Dave-Allured (Dave Allured)
@musaidpp, I submitted a patch for 2.2.1 to Macports. It will take 3 days or more, unless expedited by maintainer.
https://github.com/macports/macports-ports/pull/21477
Meanwhile, you could try applying the same patch to your own private Macports build of Grads 2.2.1.
comment:9 Changed 12 months ago by musaidpp (musaidpp)
Thanks Dave. It worked. I appreciate your support.
comment:10 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to musaidpp:
I encountered the following error:
To understand that error, see WimplicitFunctionDeclaration.
comment:11 Changed 12 months ago by Dave-Allured (Dave Allured)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
log file