Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61538 closed defect (invalid)

llvm-9.0 @9.0.1 seems to install faulty symbolic links

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia), larryv (Lawrence Velázquez), kencu@…, cjones051073 (Chris Jones)
Port: clang-3.8

Description

port -v installed | egrep 'gcc|clang|llvm'
  llvm-9.0 @9.0.1_1 (active) platform='darwin 20' archs='x86_64' date='2020-11-15T18:17:15+0100'
  llvm_select @2_0 (active) platform='darwin 20' archs='noarch' date='2020-11-15T17:59:37+0100'
l -L /opt/local/bin/{clang,clang-rename,clang-format,clang-check,c-index-test,clang-query,scan-build,clang-cl,clang-tidy,clang++,clang-apply-replacements,scan-view}
gls: Zugriff auf '/opt/local/bin/clang' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-rename' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-format' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-check' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/c-index-test' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-query' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/scan-build' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-cl' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-tidy' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang++' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/clang-apply-replacements' nicht möglich: No such file or directory
gls: Zugriff auf '/opt/local/bin/scan-view' nicht möglich: No such file or directory
Exit 2
/opt/local/bin/clang is not provided by a MacPorts port.
/opt/local/bin/clang-rename is not provided by a MacPorts port.
/opt/local/bin/clang-format is not provided by a MacPorts port.
/opt/local/bin/clang-check is not provided by a MacPorts port.
/opt/local/bin/c-index-test is not provided by a MacPorts port.
/opt/local/bin/clang-query is not provided by a MacPorts port.
/opt/local/bin/scan-build is not provided by a MacPorts port.
/opt/local/bin/clang-cl is not provided by a MacPorts port.
/opt/local/bin/clang-tidy is not provided by a MacPorts port.
/opt/local/bin/clang++ is not provided by a MacPorts port.
/opt/local/bin/clang-apply-replacements is not provided by a MacPorts port.
/opt/local/bin/scan-view is not provided by a MacPorts port.
pete 419 /\ gfind /opt/local/bin -type l -ls | egrep 'clang|c-index-test|scan-view'
 42595066      0 lrwxr-xr-x   1 root     wheel          10 Nov  7 10:36 /opt/local/bin/clang-reserved20 -> /opt/local
 42595056      0 lrwxr-xr-x   1 root     wheel          27 Nov  7 10:36 /opt/local/bin/clang -> /opt/local/bin/clang-mp-9.0
 42595064      0 lrwxr-xr-x   1 root     wheel          34 Nov  7 10:36 /opt/local/bin/clang-rename -> /opt/local/bin/clang-rename-mp-9.0
 42595057      0 lrwxr-xr-x   1 root     wheel          34 Nov  7 10:36 /opt/local/bin/clang-format -> /opt/local/bin/clang-format-mp-9.0
 42595061      0 lrwxr-xr-x   1 root     wheel          33 Nov  7 10:36 /opt/local/bin/clang-check -> /opt/local/bin/clang-check-mp-9.0
 42595054      0 lrwxr-xr-x   1 root     wheel          34 Nov  7 10:36 /opt/local/bin/c-index-test -> /opt/local/bin/c-index-test-mp-9.0
 42595063      0 lrwxr-xr-x   1 root     wheel          33 Nov  7 10:36 /opt/local/bin/clang-query -> /opt/local/bin/clang-query-mp-9.0
 42595062      0 lrwxr-xr-x   1 root     wheel          30 Nov  7 10:36 /opt/local/bin/clang-cl -> /opt/local/bin/clang-cl-mp-9.0
 42595065      0 lrwxr-xr-x   1 root     wheel          32 Nov  7 10:36 /opt/local/bin/clang-tidy -> /opt/local/bin/clang-tidy-mp-9.0
 42595055      0 lrwxr-xr-x   1 root     wheel          29 Nov  7 10:36 /opt/local/bin/clang++ -> /opt/local/bin/clang++-mp-9.0
 42595060      0 lrwxr-xr-x   1 root     wheel          46 Nov  7 10:36 /opt/local/bin/clang-apply-replacements -> /opt/local/bin/clang-apply-replacements-mp-9.0
 42595059      0 lrwxr-xr-x   1 root     wheel          31 Nov  7 10:36 /opt/local/bin/scan-view -> /opt/local/bin/scan-view-mp-9.0

Obviously these sym-links were installed in the last days of Catalina and when I uninstalled all ports to upgrade Mac Ports to Big Sur they were not removed…

Change History (7)

comment:1 Changed 4 years ago by cjones051073 (Chris Jones)

Those sym links are not part of llvm 9.0.

You must have run port select on clang at some port, and forgot to undo that before upgrading.

comment:2 Changed 4 years ago by cjones051073 (Chris Jones)

Also note you need to install clang-9.0, as well as llvm-9.0 in order to have what they point at. The llvm port does not provide the clang executables.

Last edited 4 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:3 Changed 4 years ago by cjones051073 (Chris Jones)

Resolution: invalid
Status: newclosed

comment:4 Changed 4 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:5 Changed 4 years ago by mf2k (Frank Schima)

Keywords: bigsur removed

comment:6 Changed 4 years ago by ballapete (Peter "Pete" Dyballa)

And what about the fact that they were not removed when I had to uninstall everything in order to upgrade from Catalina to Big Sur? From their date you can see that they are "old" – I installed Big Sur on Sunday.

comment:7 Changed 4 years ago by kencu (Ken)

well you have a point there. Perhaps someone might be able to code up some logic that deletes all the selected symlinks if the port is deactivated...not real simple, because it would somehow have to properly handle upgrades, and not delete your symlinks when upgrading...

For the time being, and perhaps forever, this remains a manual step...

Note: See TracTickets for help on using tickets.