Opened 5 years ago

Closed 5 years ago

#58747 closed defect (fixed)

Error: clang-4.0 has been replaced by clang-8.0; please install that instead.

Reported by: dmitriz (Dmitri Zaitsev) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: larryv (Lawrence Velázquez)
Port: clang-8.0

Description

Trying to install clang-8.0, which prompts to install clang-4.0 but fails claiming it is obsolete:

~ sudo port install clang-8.0
--->  Computing dependencies for clang-8.0
The following dependencies will be installed: 
 clang-4.0
 clang-5.0
 ld64
 ld64-latest
 libmacho-headers
 libomp
 llvm-5.0
 llvm-8.0
 perl5
 xar
Continue? [Y/n]: 
--->  Configuring clang-4.0
Error: clang-4.0 has been replaced by clang-8.0; please install that instead.
Error: Failed to configure clang-4.0: obsolete port
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-4.0/clang-4.0/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port clang-8.0 failed

Change History (5)

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

Cc: larryv added
Keywords: clang removed
Owner: set to jeremyhu
Status: newassigned

MacPorts base 2.5.4 still has clang 4.0 in its list of compilers, even though the port has been made obsolete:

https://github.com/macports/macports-base/blob/v2.5.4/src/port1.0/portconfigure.tcl#L604

That might be a reason to revert the obsolescence of those older clangs until such a time as we can release a new version of MacPorts base that no longer tries to use them.

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

See also #58741.

comment:3 Changed 5 years ago by dmitriz (Dmitri Zaitsev)

Hi Ryan,

Many thanks for your explanation! Are you aware of any way I can fix this problem?

I am new to MacPorts and was very happy with it to install many packages but now it breaks almost every install attempt with the same error. :(

Also I already have clang-8.0 installed! Is it possible to have port use it instead of the obsolete dependency? (which seems pointless)

Will appreciate any help!

Thanks, Dmitri.

comment:4 Changed 5 years ago by dmitriz (Dmitri Zaitsev)

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

Priority: HighNormal
Resolution: fixed
Status: assignedclosed

clang-4.0 was reinstated until such time as it is removed from base.

Note: See TracTickets for help on using tickets.