permission denied errors during building with clang on Mavericks

MK-MacPorts at techno.ms MK-MacPorts at techno.ms
Sun Jan 12 12:11:30 PST 2014


Hi devs,

I am trying to build some software using standard clang on Mavericks and I see errors due to denied permissions like this:
—
:info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -DBUILDING_AQDATABASE -DLOCALEDIR=\"/opt/local/share/locale\" -DAQDATABASE_PLUGINS=\"/opt/local/lib/aqdatabase/plugins/0\" -DAQDATABASE_DATA_DIR=\"/opt/local/share/aqdatabase\" -DCOMPILE_DATETIME=\"20140112203526\" -I. -I../.. -I../.. -I/opt/local/include/gwenhywfar4 -I/opt/local/include -L/opt/local/lib -pipe -Os -L/opt/local/lib -arch x86_64 -g -Wall -c aqdb_db.c
:info:build clang: error: couldn't create cache file '/var/folders/wy/5396pzbj3gq7s1hwf2shczvm0000gq/T/xcrun_db-CfooCvW7' (errno=Permission denied)
:info:build clang: warning: argument unused during compilation: '-L/opt/local/lib'
:info:build clang: warning: argument unused during compilation: '-L/opt/local/lib’
:info:build In file included from aqdb_db.c:14:
:info:build In file included from ./aqdb_db_p.h:14:
:info:build ./aqdb_db_be.h:14:10: fatal error: 'aqdatabase/aqdb_db.h' file not found
:info:build #include <aqdatabase/aqdb_db.h>
:info:build          ^
:info:build 1 error generated.
:info:build make[3]: *** [aqdb_db.lo] Error 1
—

I figure that these missing cache files don’t stop clang from working correctly, but I wonder why this permission error occurs. Is my portfile wrongly set up for clang for some reason?

Greets,
Marko


More information about the macports-dev mailing list