Opened 7 years ago
Closed 4 years ago
#55138 closed defect (fixed)
magicspp @2.29.4: error: ordered comparison between pointer and zero
Reported by: | hbai24 | Owned by: | tenomoto (Takeshi Enomoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.2 |
Keywords: | Cc: | ||
Port: | magicspp |
Description
Hello,
I tried to install CDO with MacPorts, but failed. The error seemed to be with magicspp. This was my first time to install with MacPorts, and I did't have a clue what's wrong. My macOS is 10.12.6, Xcode version is 9.0.1, and MacPorts version is 2.4.2. Following is the error massage:
sudo port install cdo +grib_api +magicspp +szip ---> Computing dependencies for cdo The following dependencies will be installed: cunit magicspp udunits2 Continue? [Y/n]: Y ---> Building magicspp Error: Failed to build magicspp: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_magicspp/magicspp/main.log for details. Error: Follow https://guide.macports.org/#project.tickets to report a bug. Error: Processing of port cdo failed
I also attached my log file. If you need any additional information, please let me know. Any reply is appreciated!! Thanks!
Attachments (1)
Change History (6)
Changed 7 years ago by hbai24
comment:1 Changed 7 years ago by mf2k (Frank Schima)
Cc: | hbai24 removed |
---|---|
Keywords: | sierra removed |
Owner: | set to tenomoto |
Port: | magicspp added; CDO removed |
Status: | new → assigned |
In the future, please fill in the Port field with the port that fails to build and Cc the port maintainers (port info --maintainers magicspp
).
As reporter, you are automatically Cc'ed.
comment:2 follow-up: 3 Changed 7 years ago by tenomoto (Takeshi Enomoto)
comment:3 follow-up: 5 Changed 7 years ago by pgf
Replying to tenomoto:
The inline comment (# exclude -Wl,-framework
) in the magicspp Portfile cause the build to fail on my mac:
patchfiles patch-CMakeLists.txt.diff \ patch-cmake-FindPangoCairo.cmake.diff # exclude -Wl,-framework
Removing it solved the issue.
comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to hbai24:
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_magicspp/magicspp/main.log for details.
The log says the problem was:
src/decoders/GribDecoder.cc:264:18: error: ordered comparison between pointer and zero ('grib_handle *' and 'int') if ( handle_ <=0 ) { ~~~~~~~ ^ ~
comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Summary: | Failed to build magicspp: command execution failed → magicspp @2.29.4: error: ordered comparison between pointer and zero |
Replying to pgf:
The inline comment (
# exclude -Wl,-framework
) in the magicspp Portfile cause the build to fail on my mac:patchfiles patch-CMakeLists.txt.diff \ patch-cmake-FindPangoCairo.cmake.diff # exclude -Wl,-frameworkRemoving it solved the issue.
The misplaced comment was fixed in [a9e89f6e3ff706676fcffab721c605d902d2de9f/macports-ports].
This ticket is years old and the port has been updated several times since the ticket was filed, so I'll assume the original problem was fixed. If not, please file a new ticket with a new main.log from the latest version of the port.
log file