Opened 4 years ago
Closed 4 years ago
#61275 closed defect (fixed)
ncarg: implicit declaration of function
Reported by: | lucalelli | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.3 |
Keywords: | Cc: | ||
Port: | ncarg |
Description
Trying to install NCL on a Catalina, Xcode 12.0.1, CLT beta 12 Macports updated recently 2.6.2 -> 2.6.3 Installed ports upgraded.
Both options fail.
Opt 1) ncarg fails to build with
:info:build ./Keywords.h:30:10: fatal error: 'parser.h' file not found :info:build wrapit.y:5:10: fatal error: 'ncarg/ncl/defs.h' file not found
Opt 2) Precompiled binaries from https://www.ncl.ucar.edu/Download/install_from_binary.shtml
fail at runtime with
dyld: Symbol not found: __ZdaPvm Referenced from: /Users/luca/Downloads/ncl/bin/ncl Expected in: /usr/lib/libstdc++.6.dylib
I could also use the second option but the
install_name_tool -change /usr/lib/libstdc++.6.dylib /opt/local/lib/gcc10/libstdc++.6.dylib /Users/luca/Downloads/ncl/bin/ncl
does not solve the issue either.
Attachments (1)
Change History (4)
Changed 4 years ago by lucalelli
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to tenomoto |
---|---|
Status: | new → assigned |
Summary: | ncarg fails to build → ncarg: implicit declaration of function |
comment:2 Changed 4 years ago by lucalelli
Downgrading to Xcode and CLT 11.5 ncarg
builds and runs.
The only thing is that it segfaults when working on files. I don't know if it is relevant to macports
or to ncl
only.
Beside that, ncl
opens its shell and ncl_filedump
dumps correctly.
comment:3 Changed 4 years ago by tenomoto (Takeshi Enomoto)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
There are lots of
implicit declaration of function
errors in the log*. This is a new problem in Xcode 12. It used to just be a warning. We should work with the developers of ncarg to fix this. Until we do, you can avoid the problem by downgrading to Xcode 11 and the Xcode 11 version of the command line tools.*: