MantisBT - VTK
View Issue Details
0007813VTK(No Category)public2008-10-15 01:332016-08-12 09:55
Shekhar 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0007813: Write to the in-source tree. (tif_fax3sm.c)
Build under ubuntu 8.04 x86 with VTK-5.2 and CMake 2.6.2

[ 4%] Generating tif_fax3sm.c
../../bin/vtkmkg3states: /home/shakes/package/VTK/Utilities/vtktiff/tif_fax3sm.c: Cannot create output file.
make[2]: *** [Utilities/vtktiff/tif_fax3sm.c] Error 254
make[1]: *** [Utilities/vtktiff/CMakeFiles/vtktiff.dir/all] Error 2
make: *** [all] Error 2
Solved by using super user mode (i.e., "sudo make").

Discussion on vtkusers:
-----------------------------------------------
mathieu.malaterre@gmail.com wrote:

No that a bug IMHO. For out-of-source build, you should never write to
the in-source tree. Please log that as a bug in VTK:

http://vtk.org/Bug [^]

thx

On Tue, Oct 14, 2008 at 2:06 AM, Shakes
<Shekhar.Chandra@sci.monash.edu.au> wrote:
> > Hi Hang,
> >
> > I think I had a similar error recently. Ran the build as root and it went
> > fine (Ubuntu 8.04)... not sure why. If that doesn't help, check your disc
> > space.
> >
> > Cheers
> > Shakes
> >
> > hang chang wrote:
>> >>
>> >> Hi All,
>> >>
>> >> I got a problem when compiling VTK-5.2.0, please find following the error
>> >> information. How could I solve it ? Thanks.
>> >>
>> >> Hang
>> >>
>> >> ==============================
>> >> ==========================
>> >> [ 4%] Generating tif_fax3sm.c
>> >> ../../bin/vtkmkg3states:
>> >> /home/hang/package/VTK/Utilities/vtktiff/tif_fax3sm.c: Cannot create output
>> >> file.
>> >> make[2]: *** [Utilities/vtktiff/tif_fax3sm.c] Error 254
>> >> make[1]: *** [Utilities/vtktiff/CMakeFiles/vtktiff.dir/all] Error 2
>> >> make: *** [all] Error 2
>> >> ========================================================
>> >> ------------------------------------------------------------------------
No tags attached.
Issue History
2008-10-15 01:33ShekharNew Issue
2008-10-15 16:52Heath DavisNote Added: 0013888
2010-08-02 10:24lesmanaNote Added: 0021594
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037028
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0013888)
Heath Davis   
2008-10-15 16:52   
The file is delivered in the tarball as 400. Issue fixed on my system by:

chmod 600 Utilities/vtktiff/tif_fax3sm.c

I did not invoke `sudo make` as in the previous message.

Fedora release 9 (Sulphur) #Yum update current as of 15/Oct/2008
Linux version 2.6.26.5-45.fc9.i686
g++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
cmake version 2.6-patch 1
vtk-5.2.0.tar.gz
(0021594)
lesmana   
2010-08-02 10:24   
this is still a problem in vtk-5.6.0.tar.gz

the file tif_fax3sm.c is in the archive with permission -r--r--r--

that means the file cannot be overwritten. but during compilation the file needs to be overwritten.

workarounds are changing the file permissions so it can be overwritten, or deleting that file by hand, or deleting the file by doing a make clean.

as far as i can tell you can fix this bug by omitting the file tif_fax3sm.c from the archive.
(0037028)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.