Opened 3 years ago
Closed 15 months ago
#64710 closed defect (fixed)
ncarg: /dev/tty: Device not configured.
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | arm64 | Cc: | Dave-Allured (Dave Allured) |
Port: | ncarg |
Description
ncarg fails to configure on arm64 systems:
The error coming from ymake
is:
/dev/tty: Device not configured.
This happens because config/ymake contains this code:
case Darwin: set os = $opsys switch ("$mach[1]") case Power: set model = $mach set arch = $mach set sysincs = Darwin set vendor = Apple breaksw case i386: case x86_64: set model = $mach set arch = $mach set sysincs = Darwin_Intel set vendor = Apple breaksw default: echo "$0 : Unknown machine type" > /dev/tty exit 1 endsw breaksw
As you see, there is no case for ARM systems, so it is trying to run the command echo "$0 : Unknown machine type" > /dev/tty
, but this command fails when run under the control of MacPorts for some reason.
I gather that ncarg is no longer being developed, so I presume the developers will not assist us. If you think it's easy to add arm64 support to ncarg, feel free to do so. Otherwise, you should mark the port as not supporting arm64 by adding this line:
supported_archs i386 ppc ppc64 x86_64
Change History (7)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 3 years ago by Dave-Allured (Dave Allured)
Cc: | Dave-Allured added |
---|
comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Marked arm64 as unsupported in https://github.com/macports/macports-ports/pull/14081. If you don't intend to add arm64 support, you can close this ticket.
comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
comment:5 Changed 3 years ago by Dave-Allured (Dave Allured)
Ryan, thanks for #61275 and working on NCARG.
Upstream there was some work last year on missing declarations and bug fixes by external contributors. They have not made any new releases, but their Github "develop" branch (https://github.com/NCAR/ncl) may be helpful for progress on this Macports port.
comment:6 Changed 15 months ago by Dave-Allured (Dave Allured)
Was fixed by d45fbc3d41726f410b47e0f723db3de51fc61111 on 2022 Oct 8.
comment:7 Changed 15 months ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
And if you're going to add arm64 support to the port, then you'll have to remove the
-Wno-error=implicit-function-declaration
flag in the Portfile and actually fix the implicit function declaration problems (#61275).