[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] csharpcomp: cscc writes to srcdir?

From: Bruno Haible
Subject: Re: [bug-gnulib] csharpcomp: cscc writes to srcdir?
Date: Fri, 9 Jun 2006 14:50:14 +0200
User-agent: KMail/1.9.1

Simon Josefsson wrote:
> I'm not sure why I've been starting to see this now, it has worked
> fine since the module was added, perhaps the C# compiler changed
> during some upgrade.  Anyway, with 'make distcheck' I get:
> checking for preferred C# implementation... any
> ...
> checking for C# compiler... cscc
> Making all in csharp
> make[3]: Entering directory 
> /bin/sh ../csharpcomp.sh  -o Libidn.dll \
>                 `for src in AssemblyInfo.cs IDNA.cs RFC3454.cs 
CombiningClass.cs IDNAException.cs Stringprep.cs Composition.cs NFKC.cs 
StringprepException.cs DecompositionKeys.cs Punycode.cs 
DecompositionMappings.cs PunycodeException.cs; do echo ../../csharp/$src; 
> ../../csharp/AssemblyInfo.objtmp: Permission denied
> make[3]: *** [Libidn.dll] Error 1
> make[3]: Leaving directory 
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/jas/self/src/libidn/libidn-0.6.4/_build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/jas/self/src/libidn/libidn-0.6.4/_build'
> make: *** [distcheck] Error 2
> address@hidden:~/src/libidn$
> Since csharpcomp.sh just invoke cscc, maybe it is a problem with it?
> It shouldn't write to srcdir, IMHO.
> The script reduces to invoking cscc -shared -o Libidn.dll
> ../../csharp/AssemblyInfo.cs ..., as in:
> address@hidden:~/src/libidn/libidn-0.6.4/_build/csharp$ cscc -shared -o 
Libidn.ddl .. /../csharp/AssemblyInfo.cs
> ../../csharp/AssemblyInfo.objtmp: Permission denied
> address@hidden:~/src/libidn/libidn-0.6.4/_build/csharp$
> Should csharpcomp copy the *.cs file before compilation, perhaps?

I fully agree with your analysis and opinion. A compiler should not write
temporary files in the source nor in the target directory. That's what
$TMPDIR (or /tmp if unset) is made for. IMO it's worth filing a bug report.

> Should csharpcomp copy the *.cs file before compilation, perhaps?

IMO the compiler itself (cscc) should not do such things in the first place.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]