Opened 8 years ago

Closed 8 years ago

#50891 closed defect (fixed)

sdcc: uses ccache even if configureccache is no

Reported by: gleidson@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: sdcc

Description

I am trying build on OS X El Capitan, but its failed with error "sdcc returned: command execution failed"

Attached build log.

Attachments (1)

sdcc.log (309.1 KB) - added by gleidson@… 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by gleidson@…

Attachment: sdcc.log added

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

Owner: changed from macports-tickets@… to snc@…
Port: sdcc added
Summary: Error building sdccsdcc: ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Operation not permitted

The log says:

:info:build ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Operation not permitted

Are you using ccache deliberately (by setting configureccache yes in macports.conf) or has sdcc decided to use it on its own?

Are the permissions and ownership of /opt/local/var/macports/build/.ccache set correctly? I use ccache deliberately, and on my system, /opt/local/var/macports/build/.ccache has permissions 0755 and owner macports:wheel.

comment:2 Changed 8 years ago by gleidson@…

The configurecache is set to no in macports.conf, but i have ccache installed on my system.

The folder doesn't /opt/local/var/macports/build/.ccache exists and the folder /opt/local/var/macports/build/ has permission 755 and owner root:admin. Would that be the problem ? The only folder in /opt/local/var/macports/ with the owner macports is /opt/local/var/macports/incoming.

PS: I run port with root account.

comment:3 Changed 8 years ago by gleidson@…

folders inside /opt/local/var/macports/

rwxr-xr-x@  12 root      admin    408 13 Mar 21:48 .
drwxr-xr-x    8 root      admin    272 11 Mar 00:12 ..
drwxr-xr-x    3 root      admin    102 13 Mar 23:43 build
drwxr-xr-x  267 root      admin   9078 13 Mar 21:23 distfiles
drwxr-xr-x    3 root      admin    102 25 Dez  2013 home
drwxr-xr-x    3 macports  admin    102 13 Mar 23:40 incoming
drwxr-xr-x    9 root      admin    306 14 Mar 00:21 logs
-rw-r--r--    1 root      admin      0 14 Mar 21:45 pingtimes
-r--r--r--    1 root      admin  11264  1 Out 16:42 port-help.tcl
drwxr-xr-x    7 root      admin    238 14 Mar 00:21 registry
drwxr-xr-x  294 root      admin   9996 13 Mar 22:03 software
drwxr-xr-x    3 root      admin    102 25 Dez  2013 sources

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

For MacPorts to use ccache, /opt/local/var/macports/build/.ccache probably needs to exist; try creating it.

We should fix the bug that sdcc tries to use ccache when not told to do so.

comment:5 in reply to:  4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Summary: sdcc: ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Operation not permittedsdcc: uses ccache even if configureccache is no

Replying to ryandesign@…:

We should fix the bug that sdcc tries to use ccache when not told to do so.

r146736.

Note: See TracTickets for help on using tickets.