Opened 2 years ago

Closed 8 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:

https://build.macports.org/builders/ports-12_arm64-builder/builds/43236/steps/install-port/logs/stdio

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 2 years ago by ryandesign (Ryan Carsten Schmidt)

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).

comment:2 Changed 2 years ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:3 Changed 2 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 2 years ago by ryandesign (Ryan Carsten Schmidt)

In dae98511267146354771e98a7e822bcd6f479651/macports-ports (master):

ncarg: Does not support arm64

See: #64710

comment:5 Changed 2 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 8 months ago by Dave-Allured (Dave Allured)

Was fixed by d45fbc3d41726f410b47e0f723db3de51fc61111 on 2022 Oct 8.

Last edited 8 months ago by Dave-Allured (Dave Allured) (previous) (diff)

comment:7 Changed 8 months ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.