[Bug libstdc++/35954] New: cannot build from read-only source tree

jbeulich at novell dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 16 07:01:00 GMT 2008


This change

2007-08-21  Benjamin Kosnik  <bkoz@montsouris.artheist.org>

        * include/Makefile.am (install-data-local): Remove pch-install rules.
        (host_headers): Add stdc++.h, stdtr1c++.h, extc++.h.
        * include/Makefile.in: Regenerate.
        * config.h.in: Same.

        * scripts/check_compile: Remove space between outputs.  
        * include/ext/throw_allocator.h: Correct doxygen markup.        
        * include/bits/char_traits.h: Correct spacing.
        * include/bits/stl_function.h: Same, for 80 column.
        * include/std/valarray: Same.
        * testsuite/util/testsuite_iterators.h: Same.   
        * testsuite/25_algorithms/headers/algorithm/synopsis.cc: Format.

breaks the build when the source tree is not modifiable:

Making all in include
touch: cannot touch `./i686-pc-linux-gnu/bits/stdc++.h': Permission denied
make[4]: *** [i686-pc-linux-gnu/bits/stdc++.h.gch/O2g.gch] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-libstdc++-v3] Error 2
make: *** [all] Error 2

It is obviously wrong to touch a symlink to a file in the source tree - if the
file (other than in 4.2.x) really needs to have full contents, then it needs to
be copied (with ownership and permissions changed) rather than symlinked.


-- 
           Summary: cannot build from read-only source tree
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbeulich at novell dot com
 GCC build triplet: *-*-*
  GCC host triplet: *-*-*
GCC target triplet: *-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35954



More information about the Gcc-bugs mailing list