Opened 6 years ago
Last modified 5 years ago
#61565 assigned defect
openocd @0.10.0.1 +cmsis configure fails on BigSur 11.0.1 if ccache is installed
| Reported by: | ugr | Owned by: | nerdling (Jeremy Lavergne) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.6.4 |
| Keywords: | Cc: | ||
| Port: | openocd |
Description
If ccache is not installed, everything works fine. Seems a problem with rights for creating directories and temp. files. It also fails with a similar error message if i create the directories /opt/local/var/macports/build/.ccache and /opt/local/var/macports/build/.ccache/tmp manually, and also if i set the access rights to 777 (chmod -R 777 /opt/local/var/macports/build/.ccache), or if i change the owner group to "staff".
Details from jimtcl that caused the configure failure from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_openocd/openocd/work/openocd-0.10.0/jimtcl/config.log:
Invoked as: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_openocd/openocd/work/openocd-0.10.0/jimtcl/configure --disable-insta$
Failed: ccache /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -c -g0 conftest__.c -o conftest__.o
ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Operation not permitted
child process exited abnormally
============
The failed code was:
int main(void) {
return 0;
}
============
Failed: ccache /usr/bin/clang -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -arch x86_64 -c conftest__.c -o conftest__.o
ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Operation not permitted
child process exited abnormally
============
The failed code was:
#include <stdlib.h>
int main(void) {
return 0;
}
============
Change History (5)
comment:1 Changed 6 years ago by mf2k (Frank Schima)
comment:2 Changed 6 years ago by mf2k (Frank Schima)
| Owner: | set to nerdling |
|---|---|
| Status: | new → assigned |
comment:4 follow-up: 5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Do you have configureccache yes in macports.conf?
comment:5 Changed 5 years ago by ugr
I didn't change the macports.conf, so there is the (commented) default value:
#configureccache no

In the future, please add the port maintainer(s) to Cc (
port info --maintainers openocd), if any.