Opened 8 years ago

Closed 7 years ago

#52233 closed defect (fixed)

libemos @4.4.3: Parse error. Expected "(", got identifier with text "sys".

Reported by: pgf Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: libemos

Description

port upgrade outdated gives a configure error during libemos upgrade from libemos @4.3.9_0+gcc5 to libemos @4.4.3. Log file attached.

Attachments (3)

libemos.log (108.9 KB) - added by pgf 8 years ago.
CMakeOutput.log (176.4 KB) - added by pgf 8 years ago.
CMakeError.log (54.0 KB) - added by pgf 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by pgf

Attachment: libemos.log added

comment:1 Changed 8 years ago by pgf

Cc: piergiuseppe.fogli@… added

Cc Me!

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: takeshi@… piergiuseppe.fogli@… removed
Owner: changed from macports-tickets@… to takeshi@…
Summary: libemos @4.4.3: configure error - upgrade failurelibemos @4.4.3: Parse error. Expected "(", got identifier with text "sys".

Looks like the error in the log is:

CMake Error: Error in cmake code at
/opt/local/bin/python2.7-config:3:
Parse error.  Expected "(", got identifier with text "sys".

It might help if you also attached the log files mentioned later in the log:

-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeError.log".

Changed 8 years ago by pgf

Attachment: CMakeOutput.log added

Changed 8 years ago by pgf

Attachment: CMakeError.log added

comment:3 in reply to:  2 Changed 8 years ago by pgf

It seems it's trying to source /opt/local/bin/python2.7-config instead of executing it.

Replying to ryandesign@…:

Looks like the error in the log is:

CMake Error: Error in cmake code at
/opt/local/bin/python2.7-config:3:
Parse error.  Expected "(", got identifier with text "sys".

It might help if you also attached the log files mentioned later in the log:

-- Configuring incomplete, errors occurred!
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeOutput.log".
See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_libemos/libemos/work/build/CMakeFiles/CMakeError.log".

comment:4 Changed 8 years ago by pgf

An update and a fix for this issue.
Running cmake in trace mode I was able to trace back the error to the grib_api package:

/opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(1):  if(NOT PYTHON_CONFIG )
/opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(2):  include(/opt/local/bin/python2.7-config OPTIONAL )
CMake Error: Error in cmake code at                                                                                 
/opt/local/bin/python2.7-config:3:
Parse error.  Expected "(", got identifier with text "sys".
/opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls(3):  set(PYTHON_CONFIG /opt/local/bin/python2.7-config )

I don't understand why cmake it's trying to source /opt/local/bin/python2.7-config, which is python code. Anyway, I solved the problem commenting the include line in the /opt/local/share/grib_api/cmake/grib_api-config.cmake.tpls file.

comment:5 Changed 7 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

In 92b1bd3039c85f0df525339b0ce41c3ac603b541/macports-ports:

replace grib_api by eCcodes

ecCodes: add to MacPorts
gnudatalanguage: update to 0.9.7. use gsshg-bin-*.zip
py-pygrib: add support for python-3.6
cdo: make +eccodes default
libemos: update to 4.5.1. add patch to avoid conflict of bufr_filter with ecCodes
magicspp: update to 2.34.3. use perl 5.26. add patch to stop adding -Wl,-framework to CAIRO_LIBRARIES
metview: update to 4.9.1
Closes: #52233
See: #55138
See: #55208

Note: See TracTickets for help on using tickets.