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)
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 |
---|
comment:2 follow-up: 3 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 failure → libemos @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 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: | new → closed |
Cc Me!