Gentoo Archives: gentoo-dev

From: Lars Pechan <lars.pechan@××××××××××××.nz>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] GCC-3.1/KDE 3.0.1
Date: Mon, 27 May 2002 17:45:35
Message-Id: 200205280115.03369.lars.pechan@paradise.net.nz
In Reply to: Re: [gentoo-dev] GCC-3.1/KDE 3.0.1 by Matthew Kennedy
1 Hello,
2 I now have only one gcc (as built by gcc-3.1r4) and no outstanding patches. I
3 did an emerge unmerge on gcc-3.1r1 since that was reported as installed by
4 qpkg. Didn't make any major changes however...
5
6 Interesting about portage and 2.95.3/3.0.4 as I've built a decent chunk of my
7 new system using 3.1 only and haven't had any sandbox-related problems
8 (yet??).
9
10 The htdig ebuild is indeed crapping out because of gcc-3.1 complaining about
11 using a deprecated header (iostream.h, fstream.h etc instead of iostream,
12 fstream). The following is a workaround that will build it with gcc-3.1:
13
14 CPPFLAGS=-Wno-deprecated emerge htdig
15
16 There's still lots of noise during compilation about the same issue. Adding
17 the same flag to CFLAGS and CXXFLAGS will get rid of it.
18
19 On the fam-oss problem I've sent a mail to the maintainer at SGI. For anyone
20 interested this is the error message:
21
22 c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include
23 -DCONFIG_ETC_CONFIG_PATH=\"/etc/fam.conf\" -Wno-deprecated -c
24 Scheduler.c++
25 Scheduler.c++:37: uninitialized const member `Scheduler::IOTypeInfo::iotype'
26 Scheduler.c++:38: uninitialized const member `Scheduler::IOTypeInfo::iotype'
27 make[2]: *** [Scheduler.o] Error 1
28 make[2]: Leaving directory `/var/tmp/portage/fam-oss-2.6.7/work/fam-2.6.7/fam'
29
30 I shall kick off the next stage now and see what nastities we may have bumped
31 into in the morning...
32
33 /Lasse
34
35 On Mon, 27 May 2002 19:57, Matthew Kennedy wrote:
36 > Howdy,
37 >
38 > On Sun, 2002-05-26 at 18:39, Lars Pechan wrote:
39 > > 1) The fam-oss library doesn't build. This is the File Alteration Monitor
40 > > from SGI used by both KDE and Gnome I believe. The problem relates to a
41 > > const member of a class not getting initialized (IIRC Scheduler.c++ lines
42 > > 37 and 37).
43 >
44 > Please submit a bug report on that one... it might also be related to
45 >
46 > the following though:
47 > > 2) HTDig (required by kdevelop) doesn't build. It craps out during
48 > > configure complaining about
49 > > missing libstdc++. I had a quick look and it looks for <fstream.h> to
50 > > trigger whether there's a c++ library in place or not. That file does
51 > > exist but possibly in a directory that isn't on the default search path.
52 > > C++ standards call for the header to be called <fstream> and there is
53 > > indeed an <fstream> in the /usr/include/g++-3.1/libstdc++ or thereabouts
54 > > ;-).
55 >
56 > Check that you don't have more than one gcc version installed. This
57 > seems to come up a lot, and the reason usually turns out to be that more
58 > than one gcc is installed. If it still craps out, please report in
59 > bugzilla.
60 >
61 > > I'm a bit surprised I haven't seen anyone else mentioning this? There
62 > > seems to be lots of people building gcc-3.1-systems...
63 >
64 > Please check out package.mask, there are several gcc3.1 patches in there
65 > which need to be tested before being unmasked.
66 >
67 > Also, use a portage compiled with gcc 3.0.4 or 2.95.3... that works
68 > around a known problem with sandbox/gcc3.1.
69 >
70 > Also, if you get unresolved symbol issues with fam-oss, try a "make
71 > mrproper" on your /sur/src/linux after backing up your .config. Then run
72 > "make dep clean" after restoring your .config.
73 >
74 > Keep the gcc3.1 issues coming :)
75 >
76 > Matt