Opened 6 years ago

Closed 5 years ago

#56811 closed defect (fixed)

paq8 - Port paq8 is still broken after rebuilding it more than 3 times on Max OS X 10.7.5 Lion

Reported by: RobK88 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: lion Cc:
Port: paq8

Description

Whenever I try to install the port paq8, I am told that paq8 is still broken after rebuilding it more than 3 times.

paq8 appears to run just fine. Bit broken files are identified whenever I try to install or upgrade any other port so something is definitely wrong.

sudo port clean paq8
--->  Cleaning paq8
Grinchs-Mac-Pro:~ grinch$ sudo port install paq8
--->  Computing dependencies for paq8
--->  Fetching distfiles for paq8
--->  Verifying checksums for paq8
--->  Extracting paq8
--->  Configuring paq8
--->  Building paq8
--->  Staging paq8 into destroot
--->  Installing paq8 @8p_1
--->  Activating paq8 @8p_1
--->  Cleaning paq8
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  Found 4 broken ports, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
 paq8 @8p
 p7zip @16.02
 par2 @0.4
 flac @1.3.2
Continue? [Y/n]: y
--->  Cleaning paq8
--->  Cleaning p7zip
--->  Cleaning par2
--->  Computing dependencies for flac
--->  Cleaning flac
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  Found 4 broken ports, determining rebuild order
--->  Rebuilding in order
     paq8 @8p 
     p7zip @16.02 
     par2 @0.4 
     flac @1.3.2 
--->  Computing dependencies for paq8
--->  Fetching distfiles for paq8
--->  Verifying checksums for paq8
--->  Extracting paq8
--->  Configuring paq8
--->  Building paq8
--->  Staging paq8 into destroot
--->  Deactivating paq8 @8p_1
--->  Cleaning paq8
--->  Uninstalling paq8 @8p_1
--->  Cleaning paq8
--->  Computing dependencies for paq8
--->  Installing paq8 @8p_1
--->  Activating paq8 @8p_1
--->  Cleaning paq8
--->  Computing dependencies for p7zip
--->  Fetching distfiles for p7zip
--->  Verifying checksums for p7zip
--->  Extracting p7zip
--->  Applying patches to p7zip
--->  Configuring p7zip
--->  Building p7zip
--->  Staging p7zip into destroot
--->  Deactivating p7zip @16.02_4
--->  Cleaning p7zip
--->  Uninstalling p7zip @16.02_4
--->  Cleaning p7zip
--->  Computing dependencies for p7zip
--->  Installing p7zip @16.02_4
--->  Activating p7zip @16.02_4
--->  Cleaning p7zip
--->  Fetching distfiles for par2
--->  Verifying checksums for par2
--->  Extracting par2
--->  Applying patches to par2
--->  Configuring par2
--->  Building par2
--->  Staging par2 into destroot
--->  Deactivating par2 @0.4_4
--->  Cleaning par2
--->  Uninstalling par2 @0.4_4
--->  Cleaning par2
--->  Installing par2 @0.4_4
--->  Activating par2 @0.4_4
--->  Cleaning par2
--->  Computing dependencies for flac
--->  Fetching distfiles for flac
--->  Verifying checksums for flac
--->  Extracting flac
--->  Applying patches to flac
--->  Configuring flac
--->  Building flac
--->  Staging flac into destroot
--->  Unable to uninstall flac @1.3.2_0, the following ports depend on it:
--->  	flac2mp3 @20041223_5
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating flac @1.3.2_0
--->  Cleaning flac
--->  Uninstalling flac @1.3.2_0
--->  Cleaning flac
--->  Computing dependencies for flac
--->  Installing flac @1.3.2_0
--->  Activating flac @1.3.2_0
--->  Cleaning flac
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  Found 4 broken ports, determining rebuild order
--->  Rebuilding in order
     paq8 @8p 
     p7zip @16.02 
     par2 @0.4 
     flac @1.3.2 
--->  Computing dependencies for paq8
--->  Fetching distfiles for paq8
--->  Verifying checksums for paq8
--->  Extracting paq8
--->  Configuring paq8
--->  Building paq8
--->  Staging paq8 into destroot
--->  Deactivating paq8 @8p_1
--->  Cleaning paq8
--->  Uninstalling paq8 @8p_1
--->  Cleaning paq8
--->  Computing dependencies for paq8
--->  Installing paq8 @8p_1
--->  Activating paq8 @8p_1
--->  Cleaning paq8
--->  Computing dependencies for p7zip
--->  Fetching distfiles for p7zip
--->  Verifying checksums for p7zip
--->  Extracting p7zip
--->  Applying patches to p7zip
--->  Configuring p7zip
--->  Building p7zip
--->  Staging p7zip into destroot
--->  Deactivating p7zip @16.02_4
--->  Cleaning p7zip
--->  Uninstalling p7zip @16.02_4
--->  Cleaning p7zip
--->  Computing dependencies for p7zip
--->  Installing p7zip @16.02_4
--->  Activating p7zip @16.02_4
--->  Cleaning p7zip
--->  Fetching distfiles for par2
--->  Verifying checksums for par2
--->  Extracting par2
--->  Applying patches to par2
--->  Configuring par2
--->  Building par2
--->  Staging par2 into destroot
--->  Deactivating par2 @0.4_4
--->  Cleaning par2
--->  Uninstalling par2 @0.4_4
--->  Cleaning par2
--->  Installing par2 @0.4_4
--->  Activating par2 @0.4_4
--->  Cleaning par2
--->  Computing dependencies for flac
--->  Fetching distfiles for flac
--->  Verifying checksums for flac
--->  Extracting flac
--->  Applying patches to flac
--->  Configuring flac
--->  Building flac
--->  Staging flac into destroot
--->  Unable to uninstall flac @1.3.2_0, the following ports depend on it:
--->  	flac2mp3 @20041223_5
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating flac @1.3.2_0
--->  Cleaning flac
--->  Uninstalling flac @1.3.2_0
--->  Cleaning flac
--->  Computing dependencies for flac
--->  Installing flac @1.3.2_0
--->  Activating flac @1.3.2_0
--->  Cleaning flac
--->  Scanning binaries for linking errors
--->  No broken files found.                             
Error: Port paq8 is still broken 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 paq8 still broken after rebuilding 3 times
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Grinchs-Mac-Pro:~ grinch$ paq8 -version
-version: not found, skipping...
Nothing to compress


Close this window or press ENTER to continue...

Here is the output after running "sudo port -d -y rev-upgrade" as suggested.

sudo port -d -y rev-upgrade
Password:
DEBUG: Copying /Users/grinch/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Scanning binaries for linking errors
DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/ld64/ld-latest
DEBUG: skipping ppc in /opt/local/share/cmake-3.11/Modules/CPack.OSXScriptLauncher.in since this system can't run it anyway
--->  No broken files found.
paq8 is using libstdc++ (this installation is configured to use libc++)
p7zip is using libstdc++ (this installation is configured to use libc++)
par2 is using libstdc++ (this installation is configured to use libc++)
flac is using libstdc++ (this installation is configured to use libc++)
--->  Found 4 broken ports, determining rebuild order
DEBUG: Broken: paq8
DEBUG: Broken: p7zip
DEBUG: Broken: par2
DEBUG: Broken: flac
DEBUG: Processing port paq8 @0:8p_1  
DEBUG: Processing port p7zip @0:16.02_4  
DEBUG: Processing port par2 @0:0.4_4  
DEBUG: Processing port flac @0:1.3.2_0  
DEBUG: Processing port flac2mp3 @0:20041223_5  
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt:
 paq8 @8p
 p7zip @16.02
 par2 @0.4
 flac @1.3.2
Continue? [Y/n]: y
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: paq8 8p_1 exists in the ports tree
DEBUG: paq8 8p_1  is the latest installed
DEBUG: paq8 8p_1  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/paq8
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: rev-upgrade override ... upgrading!
Skipping deactivate paq8 @8p_1 (dry run)
Skipping activate paq8 @8p_1 (dry run)
DEBUG: Rebuilding port paq8 finished with status 0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: p7zip 16.02_4 exists in the ports tree
DEBUG: p7zip 16.02_4  is the latest installed
DEBUG: p7zip 16.02_4  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/p7zip
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: rev-upgrade override ... upgrading!
Skipping deactivate p7zip @16.02_4 (dry run)
Skipping activate p7zip @16.02_4 (dry run)
DEBUG: Rebuilding port p7zip finished with status 0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: par2 0.4_4 exists in the ports tree
DEBUG: par2 0.4_4  is the latest installed
DEBUG: par2 0.4_4  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/archivers/par2
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: compiler clang 425.0.28 blacklisted because it matches {clang < 600}
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: rev-upgrade override ... upgrading!
Skipping deactivate par2 @0.4_4 (dry run)
Skipping activate par2 @0.4_4 (dry run)
DEBUG: Rebuilding port par2 finished with status 0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: flac 1.3.2_0 exists in the ports tree
DEBUG: flac 1.3.2_0  is the latest installed
DEBUG: flac 1.3.2_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/audio/flac
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: compiler clang 425.0.28 blacklisted because it matches {clang < 503}
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: rev-upgrade override ... upgrading!
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libiconv 1.15_0 exists in the ports tree
DEBUG: libiconv 1.15_0  is the latest installed
DEBUG: libiconv 1.15_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/textproc/libiconv
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! libiconv 1.15_0 >= libiconv 1.15_0
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: libogg 1.3.3_0 exists in the ports tree
DEBUG: libogg 1.3.3_0  is the latest installed
DEBUG: libogg 1.3.3_0  is active
DEBUG: Merging existing variants '' into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/libogg
DEBUG: OS darwin/11.4.2 (Mac OS X 10.7) arch i386
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: No need to upgrade! libogg 1.3.3_0 >= libogg 1.3.3_0
Skipping deactivate flac @1.3.2_0 (dry run)
Skipping activate flac @1.3.2_0 (dry run)
DEBUG: Rebuilding port flac finished with status 0
Warning: If this was no dry run, rev-upgrade would now run the checks again to find unresolved and newly created problems

Change History (17)

comment:1 Changed 6 years ago by kencu (Ken)

Thanks for reporting. We're looking for these misconfigured ports!

paq8 is using libstdc++ (this installation is configured to use libc++)
p7zip is using libstdc++ (this installation is configured to use libc++)
par2 is using libstdc++ (this installation is configured to use libc++)
flac is using libstdc++ (this installation is configured to use libc++)

You're seeing this because you are configured to use libc++ on 10.7.5 (which is in general a good idea) and the build is not respecting the stdlib setting.

paq8 will need -stdlib=${configure.cxx_stdlib} added to the compiler spec if the compiler is clang.

probably the others will be something much the same, unless there is a more elegant solution.

comment:2 Changed 6 years ago by kencu (Ken)

This PR fixes paq8. The others to be explored.

comment:3 Changed 6 years ago by RobK88

Thanks for the quick feedback.

But I am not sure that the other ports are a problem.

The following ports install just fine without showing any broken ports as long as paq8 is not installed:

p7zip @16.02 par2 @0.4 flac @1.3.2

I do not know why this is the case. very strange.

comment:4 Changed 6 years ago by Ken <21211439+kencu@…>

In 791ccfea39660f899795feed8744d59745d88438/macports-ports (master):

p7zip: add stdlib to clang builds

fixes stdlib mismatch on some systems
see #56811

comment:5 Changed 6 years ago by kencu (Ken)

This commit fixes p7zip.

Version 0, edited 6 years ago by kencu (Ken) (next)

comment:7 in reply to:  3 Changed 6 years ago by kencu (Ken)

Replying to RobK88:

Thanks for the quick feedback.

But I am not sure that the other ports are a problem.

The following ports install just fine without showing any broken ports as long as paq8 is not installed:

p7zip @16.02 par2 @0.4 flac @1.3.2

I do not know why this is the case. very strange.

The others are/were broken too:

p7zip is using libstdc++ (this installation is configured to use libc++)
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: p7zip @16.02

comment:8 Changed 6 years ago by kencu (Ken)

hmm -- par2 is sorta messed up:

/opt/local/bin/clang++-mp-3.7 -Wall -pipe -Os -stdlib=libc++ -arch x86_64  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o par2  par2cmdline.o commandline.o crc.o creatorpacket.o criticalpacket.o datablock.o descriptionpacket.o diskfile.o filechecksummer.o galois.o mainpacket.o md5.o par1fileformat.o par1repairer.o par1repairersourcefile.o par2creator.o par2creatorsourcefile.o par2fileformat.o par2repairer.o par2repairersourcefile.o recoverypacket.o reedsolomon.o verificationhashtable.o verificationpacket.o -lstdc++ 

adds a -stdlib=libc++ but then feels it needs to hardcode -lstdc++ at the end as well. So it's sometimes sorta randomly broken, probably..., depending on which compiler tries to build it on which systems.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:9 Changed 6 years ago by kencu (Ken)

This PR should fix par2.

comment:10 Changed 6 years ago by kencu (Ken)

I can't seem to spot any issue with flac. I am not sure at this moment why that flagged on your system as being broken due to libstdc++.

comment:11 in reply to:  10 ; Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

I can't seem to spot any issue with flac. I am not sure at this moment why that flagged on your system as being broken due to libstdc++.

#56616

comment:12 in reply to:  11 Changed 6 years ago by kencu (Ken)

Replying to ryandesign:

Replying to kencu:

I can't seem to spot any issue with flac. I am not sure at this moment why that flagged on your system as being broken due to libstdc++.

#56616

Thank you! I forgot about that. I guess we could close off this ticket, then. The remaining issue with flac has it's own ticket.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:13 Changed 6 years ago by kencu (Ken)

Nope, can't close it yet. par2 is still broken, and it appears to be for exactly the same reason as in 56616. The compiler blacklisting forces 10.7.5 to build it with /usr/bin/llvm-g++-4.2, and that doesn't support libc++.

comment:14 Changed 6 years ago by kencu (Ken)

I don't think it makes any sense to start in on fixing up the fallback list on every port to deliver the proper list for libc++ on older systems.

For now, until this is addressed, I would suggest you put something like this in your macports.conf

default_compilers macports-clang-5.0 macports-clang-4.0 macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 clang

comment:15 in reply to:  14 ; Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

I don't think it makes any sense to start in on fixing up the fallback list on every port to deliver the proper list for libc++ on older systems.

I agree. Can you suggest a fix for base?

comment:16 in reply to:  15 Changed 6 years ago by kencu (Ken)

Replying to ryandesign:

Can you suggest a fix for base?

I still like this fix idea, possibly with a few more macports-clang-3.x versions added to the end.

comment:17 Changed 5 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.