
Hi I'm trying to install Yhc on venice, Matt originally installed it, I did darcs pull scons. I have permissions to do stuff to the yhc directory, but not permission to do a chmod, as the setup script seems to do: Warning: The module PreludeBuiltin is called Prelude in its interface file (/grp/haskell/yhc/src/packages/yhc-base-1.0/PreludeBuiltin.hi) Copy("src/packages/yhc-base-1.0", "bootstrap/packages/yhc-base/1.0/Prelude.hi") scons: *** [src/packages/yhc-base-1.0/Prelude.hbc] Exception Traceback (most recent call last): File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Taskmaster.py", line 101, in execute self.targets[0].build() File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Node/__init__.py", line 201, in build apply(executor, (self, errfunc), kw) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Executor.py", line 115, in __call__ apply(action, (self.targets, self.sources, env, errfunc), kw) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line 243, in __call__ stat = self.execute(target, source, env) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line 512, in execute return self.execfunction(target=target, source=rsources, env=env) File "src/packages/yhc-base-1.0/SConscript", line 61, in YHC_build env.Execute(Copy("src/packages/yhc-base-1.0", "bootstrap/packages/yhc-base/1.0/Prelude.hi")) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Environment.py", line 1052, in Execute return action([], [], self) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line 243, in __call__ stat = self.execute(target, source, env) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line 512, in execute return self.execfunction(target=target, source=rsources, env=env) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Action.py", line 622, in __call__ return apply(self.parent.actfunc, args, kw) File "/usr/local/pkg/scons-0.96.1/lib/scons/SCons/Defaults.py", line 177, in copy_func return shutil.copy(src, dest) File "/usr/lib/python2.4/shutil.py", line 82, in copy copymode(src, dst) File "/usr/lib/python2.4/shutil.py", line 61, in copymode os.chmod(dst, mode) OSError: [Errno 1] Operation not permitted: 'src/packages/yhc-base-1.0/Prelude.hi' scons: building terminated because of errors. So the question is: 1) Does the setup really need to do a chmod 2) If the chmod fails, what can't we do? Could we perhaps limp along to the end anyway. Thanks Neil

On 3/23/07, Neil Mitchell
1) Does the setup really need to do a chmod
I don't think so. The chmod is coming from Scons internally. 2) If the chmod fails, what can't we do? Could we perhaps limp along
to the end anyway.
It looks like more of a problem with Scons that with our build system. It might be possible to work around it, but it would be messy. I think the bigger problem is why the chmod is failing. You should have permission to do it, depending on the permissions on the file and the directory it's in. I would interested to know what they are. The Venice buildbot is at /tmp/aw/buildbot/slackx86/build/ if you want to use that. It builds fine... Andrew

Hi
It looks like more of a problem with Scons that with our build system. It might be possible to work around it, but it would be messy.
Hmm, shame - its not worth messing up our build system for.
I think the bigger problem is why the chmod is failing. You should have permission to do it, depending on the permissions on the file and the directory it's in. I would interested to know what they are.
I don't own the directory, but I do have full permissions on it. Apparently this means chmod won't work, but pretty much everything else will.
The Venice buildbot is at /tmp/aw/buildbot/slackx86/build/ if you want to use that. It builds fine...
Matt installed a copy for his research, so I'll just use that one - I think we need the freedom to not update Yhc if we accidentally break it for a while. Thanks Neil
participants (2)
-
Andrew Wilkinson
-
Neil Mitchell