Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] cxx/nocxx error building gcc-4.5.3-r1
Date: Thu, 08 Dec 2011 08:17:43
Message-Id: 20111208081537.GA7358@waltdnes.org
1 I'm doing a fresh 32-bit install on an older Dell with an AMD K8, for
2 experimentation. I'm getting a build failure on gcc as listed below. I
3 start off my USE variable with "-*" and then add on stuff as necessary.
4 A Google search turned up
5 http://www.gossamer-threads.com/lists/gentoo/dev/242446 where vapier
6 says...
7
8 > this way when i do cut over from USE=nocxx to USE=cxx, we don't end
9 > up with users missing C++ compilers simply because they have old
10 > make.conf settings that started out with:
11 > USE="-* ..."
12
13 That appears to be relavant to me. But I'm not a developer, and I
14 don't claim to totally understand what he's talking about. I do have
15 some ebuilds that use C++. Should I add "cxx" to my USE variable? The
16 build error message follows...
17
18 * Fixing misc issues in configure files
19 * Applying gcc-configure-texinfo.patch ...
20 * Touching generated files
21 * Touching gcc/cstamp-h.in
22 * Touching gcc/config.in
23 * Touching libjava/aclocal.m4
24 * Touching libjava/Makefile.in
25 * Touching libjava/configure
26 * Applying gcc-spec-env.patch ...
27 >>> Source unpacked in /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work
28 >>> Compiling source in /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3 ...
29 * CFLAGS="-O2 -march=native -pipe"
30 * CXXFLAGS="-O2 -march=native -pipe"
31 * Configuring gcc ...
32 * We are migrating USE=nocxx to USE=cxx, but your USE settings do not make
33 * sense. Please make sure these two flags line up logically in your setup.
34 * ERROR: sys-devel/gcc-4.5.3-r1 failed (compile phase):
35 * USE='cxx nocxx' and USE='-cxx -nocxx' make no sense
36 *
37 * Call stack:
38 * ebuild.sh, line 56: Called src_compile
39 * environment, line 4463: Called toolchain_src_compile
40 * environment, line 5158: Called gcc_do_configure
41 * environment, line 2417: Called die
42 * The specific snippet of code:
43 * die "USE='cxx nocxx' and USE='-cxx -nocxx' make no sense";
44 *
45
46 --
47 Walter Dnes <waltdnes@××××××××.org>

Replies

Subject Author
Re: [gentoo-user] cxx/nocxx error building gcc-4.5.3-r1 Hinnerk van Bruinehsen <h.v.bruinehsen@×××××××××.de>