#66612 closed defect (fixed)

lzma @22.01: Port lzma is still broken (cxx_stdlib mismatch) after rebuilding it more than 3 times

Reported by: RobK88 Owned by: kencu (Ken)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt), kencu (Ken)
Port: lzma

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The latest port for lzma fails to build again on Lion. Ken fixed it a couple of months ago. (See #65908). I do not what has changed.

Until the port is fixed, the workaround is to use a newer compiler such as clang-9.0. See below:

--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     lzma @22.01_1
--->  Computing dependencies for lzma
--->  Fetching distfiles for lzma
--->  Verifying checksums for lzma
--->  Extracting lzma
--->  Applying patches to lzma
--->  Configuring lzma
--->  Building lzma
--->  Staging lzma into destroot                         
--->  Unable to uninstall lzma @22.01_1, the following ports depend on it:
--->  	boost171 @1.71.0_6+no_single+no_static+python310
--->  	boost176 @1.76.0_6+no_single+no_static+python310
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating lzma @22.01_1
--->  Cleaning lzma
--->  Uninstalling lzma @22.01_1
--->  Cleaning lzma
--->  Computing dependencies for lzma
--->  Installing lzma @22.01_1
--->  Activating lzma @22.01_1
--->  Cleaning lzma
--->  Scanning binaries for linking errors
--->  No broken files found.                             
Error: Port lzma is still broken (cxx_stdlib mismatch) after rebuilding it more than 3 times.
Error: Please run port -d -y rev-upgrade and use the output to report a bug.
Error: rev-upgrade failed: Port lzma still broken after rebuilding 3 times
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
--->  Some of the ports you installed have notes:
  lzma has the following notes:
    The LZMA SDK program is installed as "lzma_alone", to avoid conflict with LZMA Utils
  py311-cython has the following notes:
    To make the Python 3.11 version of Cython the one that is run when you execute the commands without a version suffix, e.g. 'cython', run:
    
    port select --set cython cython311
bash-3.2$ 


bash-3.2$ sudo port upgrade lzma configure.compiler=macports-clang-9.0
Password:
--->  Computing dependencies for lzma
--->  Fetching distfiles for lzma
--->  Verifying checksums for lzma
--->  Extracting lzma
--->  Applying patches to lzma
--->  Configuring lzma
--->  Building lzma
--->  Staging lzma into destroot                         
--->  Unable to uninstall lzma @22.01_1, the following ports depend on it:
--->  	boost171 @1.71.0_6+no_single+no_static+python310
--->  	boost176 @1.76.0_6+no_single+no_static+python310
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating lzma @22.01_1
--->  Cleaning lzma
--->  Uninstalling lzma @22.01_1
--->  Cleaning lzma
--->  Computing dependencies for lzma
--->  Installing lzma @22.01_1
--->  Activating lzma @22.01_1
--->  Cleaning lzma
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.
--->  Some of the ports you installed have notes:
  lzma has the following notes:
    The LZMA SDK program is installed as "lzma_alone", to avoid conflict with LZMA Utils
bash-3.2$ 

Change History (9)

comment:1 Changed 23 months ago by RobK88

Description: modified (diff)

comment:2 Changed 23 months ago by RobK88

Description: modified (diff)

comment:3 Changed 23 months ago by RobK88

OOPs. Posted to the wrong ticket. Please ignore this comment.

Last edited 23 months ago by RobK88 (previous) (diff)

comment:4 Changed 23 months ago by kencu (Ken)

I’m sorry, my recent tweaks must have broken it.

Sounds like the stdlib flags could be missing from the link.

I will take another look.

comment:5 Changed 23 months ago by RobK88

Happy New Year Ken!

No need to apologize. It looks like the same issue, that is a cxx_stdlib mismatch. So it should be easy to fix when you get a chance.

comment:6 Changed 23 months ago by rmottola (Riccardo)

I'm bitten by this too... the trick of compiling with clang 14 doesn't work though.

comment:7 Changed 23 months ago by kencu (Ken)

comment:8 Changed 23 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Summary: lzma Fails to Build on Lionlzma @22.01: Port lzma is still broken (cxx_stdlib mismatch) after rebuilding it more than 3 times

comment:9 Changed 23 months ago by kencu (Ken)

Owner: set to kencu
Resolution: fixed
Status: newclosed

In 9ef83cbcf08a98e578270e7cf0f5dba7cc6221dd/macports-ports (master):

lzma: use CXXFLAGS during link

closes: #66612

Note: See TracTickets for help on using tickets.