We're updating the issue view to help you get more done. 

CSPICE N0065 not linking with Xcode 12

Description

CSPICE N0065 does not appear to link with GMAT when Xcode is installed/used (on OSX 10.15). It appears to download and compile fine, as before, but when the Cmake-generated make files are run, it produces this error message:
Undefined symbols for architecture x86_64:
"_f_inqu", referenced from:
errfnm in cspice.a(errfnm.o)
getfat in cspice.a(getfat.o)
zzddhman_0 in cspice.a(zzddhman.o)
rdtext_0 in cspice.a(rdtext.o)
dasfm_0 in cspice.a(dasfm.o)
exists in cspice.a(exists.o)
fndlun_0 in cspice.a(fndlun.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It does work with Xcode 11.3.1 on OSX 10.15.

N0066 has been out for 3 years. Can we switch to that and try again, or is there some other concern about that?

Environment

OSX 10.15, Xcode 12

Activity

Show:
Joey Gurganus
October 21, 2020, 4:26 PM

Should we upgrade Xcode 11.7 from 11.3.1 for testing prior to the Xcode 12 version?

Joey Gurganus
November 5, 2020, 3:57 PM

Following up with the comment above regarding the version Xcode 11.7, the team agreed to start with Xcode 12 instead.

Joey Gurganus
7 days ago

After upgrading CSPICE N0066, building using Xcode 12.2 is still the same except for the object ‘dasfm_0 in cspice.a(dasfm.o)’ that seems gone, which is improved a little. But the other object (wrline_0) is added. See below for the result.

======

[ 52%] Linking CXX shared library <MY_LOCAL_DIR>/output_dir/bin/libGmatBase.dylib
Undefined symbols for architecture x86_64:
"_f_inqu", referenced from:
errfnm in cspice.a(errfnm.o)
getfat in cspice.a(getfat.o)
zzddhman_0 in cspice.a(zzddhman.o)
rdtext_0 in cspice.a(rdtext.o)
exists in cspice.a(exists.o)
fndlun_0 in cspice.a(fndlun.o)
wrline_0 in cspice.a(wrline.o)
...
ld: symbol(s) not found for architecture x86_64

=======

Assignee

Joey Gurganus

Reporter

Wendy Shoan

Labels

Development Build

None

Components

Affects versions

Priority

P1
Configure