Opened 4 months ago

Last modified 4 months ago

#69135 assigned defect

gmt6 @6.5.0_0+gdal+nonfree+pcre build failure

Reported by: dimartino-uc Owned by: remkos (Remko Scharroo)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gmt6

Description

I attempted to install gmt6, including its dependencies using the directions in the link below and was unable to do so.

https://docs.generic-mapping-tools.org/dev/install.html#macos

I have also the log associated with the failure and was hoping to get some isight on the cause of the failure.

Attachments (1)

main.log (542.8 KB) - added by dimartino-uc 4 months ago.
gmt6 install failure

Download all attachments as: .zip

Change History (5)

Changed 4 months ago by dimartino-uc

Attachment: main.log added

gmt6 install failure

comment:1 Changed 4 months ago by jmroot (Joshua Root)

Keywords: gmt6 removed
Milestone: MacPorts 2.9.0
Owner: set to remkos
Port: sudo port install removed
Status: newassigned
Summary: Generic Mapping Tools/gmt6 install issue.gmt6 @6.5.0_0+gdal+nonfree+pcre build failure
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmt5/gmt6/work/gmt-6.5.0/src/gmt_vector.c:1374:20: error: unknown type name '__LAPACK_int'
:info:build             (const __LAPACK_int * _Nonnull)&na, (const __LAPACK_int * _Nonnull)&nb, (const __LAPACK_int * _Nonnull)&nc,
:info:build                    ^

comment:2 Changed 4 months ago by remkos (Remko Scharroo)

I hope I can shed some light on this and provide you with a way forward.

The specific error messages come from the piece of code that is specific to the "New Accelerate Framework" that was introduced in Darwin 22.4 (MacOSX 13.3) and provides lapack to the GMT build.

The GMT build checks for this Darwin version, and if this is larger or equal to 22.4 this snippet of code in gmt_vectior.c is activated. Now since the error suggests that __LAPACK_int is not defined, it would mean that your headers are not compliant with the "New Accelerate Framework" that was introduced in MacOS 13.3. This likely means that you have not recently updated Xcode or the Xcode Command Line Tools. In that case, the header files for the Accelerate Framework would be outdated.

So please check if you are indeed running MacOS 13.3 (Darwin 22.4) or later, and that your installation of Xcode or the Xcode Command Line Tools is recent.

I could not replicate your problem on my system (MacOS 14.2.1, Command Line Tools 15.1). I also checked if installing the macports lapack package made a difference: it did not. The GMT build faithfully took lapack from MacOS' Accelerate Framework.

comment:3 Changed 4 months ago by dimartino-uc

That was it. Thank you for your assistance.

comment:4 Changed 4 months ago by remkos (Remko Scharroo)

You're welcome. That closes this ticket then.

Note: See TracTickets for help on using tickets.