Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64343 closed defect (fixed)

ledger @3.2.1_1: Could NOT find Boost (missing: python310)

Reported by: choralbari Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ledger

Description (last modified by choralbari)

There seems to be some sort of mismatch with Python versions. I have boost176 +python39 installed, but configure is looking for python310. sudo install boost176 +python310 did not help.

% sudo port install ledger 
--->  Computing dependencies for ledger
--->  Fetching archive for ledger
--->  Attempting to fetch ledger-3.2.1_1.darwin_21.x86_64.tbz2 from https://fra.de.packages.macports.org/ledger
--->  Attempting to fetch ledger-3.2.1_1.darwin_21.x86_64.tbz2 from https://packages.macports.org/ledger
--->  Attempting to fetch ledger-3.2.1_1.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/ledger
--->  Fetching distfiles for ledger
--->  Verifying checksums for ledger
--->  Extracting ledger
--->  Configuring ledger
Error: Failed to configure ledger: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_finance_ledger/ledger/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ledger failed

Uninstalling python310 temporarily got it working.

Change History (6)

comment:1 Changed 3 years ago by choralbari

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Port: ledger added
Summary: Failure to install ledger-3.2.1_1 with boost176ledger @3.2.1_1 configure failure

Please attach the log.

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

Summary: ledger @3.2.1_1 configure failureledger @3.2.1_1: Could NOT find Boost (missing: python310)

Issue seems easy enough to reproduce. On my system:

-- Found Python: /opt/local/bin/python3.10 (found version "3.10.1") found components: Interpreter
-- Found Python: /opt/local/bin/python3.10 (found version "3.10.1") found components: Interpreter Development Development.Module Development.Embed
CMake Warning at /opt/local/share/cmake-3.22/Modules/FindBoost.cmake:2201 (message):
  No header defined for python310; skipping header check (note: header-only
  libraries have no designated component)
Call Stack (most recent call first):
  CMakeLists.txt:82 (find_package)


CMake Error at /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Boost (missing: python310) (found suitable version "1.76.0",
  minimum required is "1.49.0")
Call Stack (most recent call first):
  /opt/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /opt/local/share/cmake-3.22/Modules/FindBoost.cmake:2360 (find_package_handle_standard_args)
  CMakeLists.txt:82 (find_package)


-- Configuring incomplete, errors occurred!

We need to tell the build to use python39. The port already appears to try to do that with -DPYTHON_EXECUTABLE=${prefix}/bin/python${py_ver} but I guess that's not enough.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted

It needs to be Python_EXECUTABLE not PYTHON_EXECUTABLE. Apparently CMake flags are case-sensitive. Brilliant.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 2924b195f18884ffd3a21f92a884507effbe825f/macports-ports (master):

ledger: Use the right python

Closes: #64343

comment:6 in reply to:  2 Changed 3 years ago by choralbari

Replying to jmroot:

Please attach the log.

The log is gone now, unfortunately. I'll be sure to do so next time.

Note: See TracTickets for help on using tickets.