Opened 4 years ago

Closed 4 years ago

#62261 closed defect (duplicate)

clang-8.0 does not build on Big Sur

Reported by: erlisR (erlis ruli) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: clang-8.0

Description

Hello everyone, after upgrading to Big Sur I'm not able to re-install many ports used previously. One of them is clang-8.0. (see the error below). I already installed Xcode 12.4 and its CLT following the steps for the migration procedure. I also tried installing the CLT manually but the result is the same. Yet when I try to install clang-8.0 I get this

user@statpc90 ~ % ls -l /Library/Developer/CommandLineTools/SDKs
total 0
lrwxr-xr-x  1 root  wheel   14 Feb 11 11:27 MacOSX.sdk -> MacOSX11.1.sdk
drwxr-xr-x  8 root  wheel  256 Jul  9  2020 MacOSX10.15.sdk
drwxr-xr-x  7 root  wheel  224 Nov 30 13:33 MacOSX11.1.sdk
user@statpc90 ~ % sudo port install clang-8.0
Password:
Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Computing dependencies for clang-8.0
--->  Fetching archive for clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from http://fco.it.packages.macports.org/clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from https://lil.fr.packages.macports.org/clang-8.0
--->  Attempting to fetch clang-8.0-8.0.1_1+analyzer+libstdcxx.darwin_20.x86_64.tbz2 from https://packages.macports.org/clang-8.0
--->  Fetching distfiles for clang-8.0
--->  Verifying checksums for clang-8.0
--->  Extracting clang-8.0
--->  Applying patches to clang-8.0
Warning: reinplace s|/usr/bin/env python|/usr/bin/python2.7|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-8.0/clang-8.0/work/llvm-8.0.1.src/tools/clang/tools/scan-build/bin/set-xcode-analyzer
--->  Configuring clang-8.0
--->  Building clang-8.0
Error: Failed to build clang-8.0: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-8.0/clang-8.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 (6)

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

clang-8.0 is not building on BigSur <https://ports.macports.org/port/clang-8.0/summary> at present.

I'm not sure if I'll invest the time to fix it, as newer clangs e.g. clang-11, work nicely and are better.

Can I induce you to upgrade to clang-10 or clang-11?

comment:2 Changed 4 years ago by erlisR (erlis ruli)

Thank you Ken, I appreciate your "induction" :-). Indeed, clang-11 installs smoothly. The problem is that R doesn't seem to work yet with versions of clang >8.0. I tried using clang-11 to compile RcppArmadillo form source and I got this.

user@user-MacBook-Air % R CMD INSTALL RcppArmadillo_0.10.2.1.0.tar.gz
* installing to library ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library’
* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation
checking whether the C++ compiler works... no
configure: error: in `/private/var/folders/jv/tw8gd0wj4pxf729n5gmgc_pr0000gn/T/RtmpMcON9I/R.INSTALL419be64b4f8/RcppArmadillo':

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

I see. clang-9.0 did install on BigSur Intel I notice.

perhaps that might do the deed for you?

Otherwise clang-8.0 might be fixable if there is a great need for it on BigSur, but other things are taking priority at the moment.

comment:4 Changed 4 years ago by erlisR (erlis ruli)

Yes, clang-9.0 did install (both on my MacBook Pro and my iMac both running BigSur)... thought R complains. I understand this may not be your top priority, but I guess other people will start having the same issue soon or later unless R developers will move to newer clang versions. Thanks for your time anyway.

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

Keywords: bigsur added; big sur removed
Port: clang-8.0 added
Summary: Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.clang-8.0 does not build on Big Sur

Ignore the CLT error for now. See #62226.

comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #61972.

Note: See TracTickets for help on using tickets.