This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc-4.2-20060805: make bootstrap fails


Hello people,

I tried to build and install gcc-4.2-20060805 snapshot.

First, I needed to add some initializers.
gcc seem to use -Werror at some stage and
"might be used uninitialized" warnings were terminating the build.
The patch is attached.

Then "make bootstrap" failed in a different way:

The source is in /.1/usr/src/gcc-4.2-20060805.org,
build directory is /.1/usr/src/gcc-4.2-20060805.org.obj.

The file which is "not found" does exist in
gcc-4.2-20060805.org/libstdc++-v3/include/ext/pb_ds/detail/trie_policy/prefix_search_node_update_imp.hpp,
bit most -isystem and -I directives are pointing into
gcc-4.2-20060805.org/i386-pc-linux-gnu/something.
                     ^^^^^^^^^^^^^^^^^ I don't have this in source tree
one -I points into gcc-4.2-20060805.org/libstdc++-v3/libsupc++.

Tail of the "make bootstrap" is below:

/.1/usr/src/gcc-4.2-20060805.org.obj/./gcc/xgcc -shared-libgcc -B/.1/usr/src/gcc-4.2-20060805.org.obj/./gcc -nostdinc++ -L/.1/usr/src/gcc
-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/src -L/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/src/.libs
-B/usr/app/gcc-4.2-20060805.org/i386-pc-linux-gnu/bin/ -B/usr/app/gcc-4.2-20060805.org/i386-pc-linux-gnu/lib/ -isystem /usr/app/gcc-4.2-2
0060805.org/i386-pc-linux-gnu/include -isystem /usr/app/gcc-4.2-20060805.org/i386-pc-linux-gnu/sys-include -Winvalid-pch -Wno-deprecated
-x c++-header -Os -falign-functions=1 -falign-labels=1 -falign-loops=1 -falign-jumps=1 -mtune=i386 -march=i386  -D_GNU_SOURCE -I/.1/usr/s
rc/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/i386-pc-linux-gnu -I/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux
-gnu/libstdc++-v3/include -I/.1/usr/src/gcc-4.2-20060805.org/libstdc++-v3/libsupc++ -O2 -g /.1/usr/src/gcc-4.2-20060805.org/libstdc++-v3/
include/precompiled/extc++.h -o i386-pc-linux-gnu/bits/extc++.h.gch/O2g.gch
In file included from /.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/standard_policies.hpp:
55,
                 from /.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/assoc_container.hpp:52,
                 from /.1/usr/src/gcc-4.2-20060805.org/libstdc++-v3/include/precompiled/extc++.h:55:
/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/trie_policy.hpp:242:74: error: ext/pb_ds/detail/tri
e_policy/prefix_search_node_update_imp.hpp: No such file or directory
In file included from /.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/container_base_dispatc
h.hpp:101,
                 from /.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/assoc_container.hpp:53,
                 from /.1/usr/src/gcc-4.2-20060805.org/libstdc++-v3/include/precompiled/extc++.h:55:
/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:625:74: error: ext/p
b_ds/detail/pat_trie_/constructors_destructor_fn_imps.hpp: No such file or directory
make[4]: *** [i386-pc-linux-gnu/bits/extc++.h.gch/O2g.gch] Error 1
make[4]: Leaving directory `/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/.1/usr/src/gcc-4.2-20060805.org.obj/i386-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/.1/usr/src/gcc-4.2-20060805.org.obj'
make: *** [bootstrap] Error 2

gcc 4.1.1 was built and installed using exactly the same
configure and make options.
--
vda
diff -urpN gcc-4.2-20060805/gcc/sched-rgn.c gcc-4.2-20060805.org/gcc/sched-rgn.c
--- gcc-4.2-20060805/gcc/sched-rgn.c	2006-04-08 19:01:17.000000000 +0200
+++ gcc-4.2-20060805.org/gcc/sched-rgn.c	2006-08-09 00:11:57.000000000 +0200
@@ -1363,6 +1363,9 @@ compute_trg_info (int trg)
   edge_iterator ei;
   edge e;
 
+el.first_member = NULL; /* //vda */
+el.nr_members = 0;
+
   /* Define some of the fields for the target bb as well.  */
   sp = candidate_table + trg;
   sp->is_valid = 1;
diff -urpN gcc-4.2-20060805/gcc/tree-if-conv.c gcc-4.2-20060805.org/gcc/tree-if-conv.c
--- gcc-4.2-20060805/gcc/tree-if-conv.c	2006-05-23 16:07:21.000000000 +0200
+++ gcc-4.2-20060805.org/gcc/tree-if-conv.c	2006-08-09 00:00:31.000000000 +0200
@@ -831,6 +831,8 @@ process_phi_nodes (struct loop *loop)
       basic_block true_bb = NULL;
       bb = ifc_bbs[i];
 
+cond = NULL_TREE; /* //vda: make compiler happy */
+
       if (bb == loop->header)
 	continue;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]