Opened 7 weeks ago
Last modified 7 weeks ago
#70989 reopened defect
libvpx @1.13.1 conflicts with installed gtest
Reported by: | MaintenanceCosts | Owned by: | kencu (Ken) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | libvpx |
Description (last modified by MaintenanceCosts)
libvpx fails consistently, after cleaning, with "Undefined symbols for architecture arm64" error. Error is the same whether variant is default or +universal. Log attached.
Attachments (1)
Change History (10)
Changed 7 weeks ago by MaintenanceCosts
comment:1 Changed 7 weeks ago by MaintenanceCosts
Description: | modified (diff) |
---|---|
Summary: | libvpx-1.13.1 won't build on Sequoia/Apple Silicon → libvpx @1.13.1 won't build on Sequoia/Apple Silicon |
comment:2 Changed 7 weeks ago by kencu (Ken)
and yet, I built it without any trouble:
% port -v installed libvpx The following ports are currently installed: libvpx @1.13.1_0 requested_variants='' platform='darwin 24' archs='arm64' date='2024-09-25T14:47:24-0700'
comment:3 follow-up: 5 Changed 7 weeks ago by kencu (Ken)
I can reproduce your error if I install the "gtest" port and then try to rebuild libvpx.
So deactivate gtest
sudo port deactivate gtest
and then clean and install libvpx, and you should be good. You can reactivate gtest after libvpx is installed if you want.
We have a "conflicts_build" mechanism in MacPorts, so we'll have to declare this in the libvpx Portfile.
On a broader note, gtest is a port that often collides like this. It should probably be installed in a sequestered folder, not in the main "lib" folder, to avoid accidentally linking it in when you don't really want it.
comment:4 Changed 7 weeks ago by kencu (Ken)
Summary: | libvpx @1.13.1 won't build on Sequoia/Apple Silicon → libvpx @1.13.1 conflicts with gtest |
---|
comment:5 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)
Replying to kencu:
It should probably be installed in a sequestered folder, not in the main "lib" folder, to avoid accidentally linking it in when you don't really want it.
…creating additional work everytime you actually want to use it.
comment:6 Changed 7 weeks ago by kencu (Ken)
but avoiding 100,000 errors by including it by accident.
comment:7 Changed 7 weeks ago by kencu (Ken)
Owner: | set to kencu |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:8 Changed 7 weeks ago by jmroot (Joshua Root)
Is there not any way to avoid this? Declaring a build-time conflict still results in really poor UX.
comment:9 Changed 7 weeks ago by kencu (Ken)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Summary: | libvpx @1.13.1 conflicts with gtest → libvpx @1.13.1 conflicts with installed gtest |
there may be some method that could be discovered, certainly.
I’ll reopen this and we can see if anyone can do that.
Logfile