Gentoo Archives: gentoo-user

From: Andrey Vul <andrey.vul@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] graphviz-2.12 fails to compile
Date: Wed, 28 Nov 2007 18:21:29
Message-Id: e38d12ff0711281015u6dc2b187o92be93758364b59d@mail.gmail.com
In Reply to: Re: [gentoo-user] graphviz-2.12 fails to compile by Albert Hopkins
1 How do I enable custom CFLAGS for graphviz (or at least cancel out the
2 inlining flag in the ebuilld)?
3 Also, could this be a gcc-4.2 bug?
4 If it is, I'll send a bug report to the gcc mailing list.
5
6 On 11/28/07, Albert Hopkins <marduk@×××××××××××.org> wrote:
7 >
8 > On Wed, 2007-11-28 at 00:31 -0500, Andrey Vul wrote:
9 > > last few lines of build log:
10 > > [libtool]
11 > > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
12 > > -I../../lib/common -I../../lib/graph -I../../lib/cdt
13 > > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
14 > > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
15 > > -mtune=athlon64 -finline-functions -MT gv_perl.lo -MD -MP -MF
16 > > .deps/gv_perl.Tpo -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o
17 > > [libtool]
18 > > x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/gvc
19 > > -I../../lib/common -I../../lib/graph -I../../lib/cdt
20 > > -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE
21 > > -I/usr/include/python2.5 -O2 -pipe -march=athlon64 -msse3
22 > > -mtune=athlon64 -finline-functions -MT gv_python.lo -MD -MP -MF
23 > > .deps/gv_python.Tpo -c gv_python.cpp -fPIC -DPIC -o .libs/gv_python.o
24 > > gv_perl.cpp:1761: error: invalid use of 'static' in linkage specification
25 > > make[3]: *** [gv_perl.lo] Error 1
26 > > [make stack]
27 > >
28 > > known bug or is something wtf?
29 >
30 > >From the looks of it, your -finline-functions flag allowed a static
31 > function to be compiled inline and caused some kind of linkage problem.
32 >
33 > --
34 > Albert W. Hopkins
35 >
36 > --
37 > gentoo-user@g.o mailing list
38 >
39 >
40
41
42 --
43 Andrey Vul
44 int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
45 o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
46 hail ioccc
47 --
48 gentoo-user@g.o mailing list