Gentoo Archives: gentoo-science

From: "François Bissey" <f.r.bissey@×××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] sci-mathematics/maxima fails to build
Date: Wed, 06 Oct 2010 11:43:25
Message-Id: 201010070043.10016.f.r.bissey@massey.ac.nz
In Reply to: Re: [gentoo-science] sci-mathematics/maxima fails to build by Steven Trogdon
1 > On 10/06/2010 03:01:35 AM, François Bissey wrote:
2 > >> On 10/05/2010 10:59:20 PM, François Bissey wrote:
3 > >>
4 > >> Interesting. Invoking
5 > >>
6 > >> LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps
7 > >> maxima
8 > >>
9 > >> I get,
10 > >>
11 > >> 32bit chroot:
12 > >>
13 > >> ;;; Note:
14 > >> ;;; Invoking external command:
15 > >> ;;; i686-pc-linux-gnu-gcc -o
16 > >> "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/sr
17 > >> c/b inary-ecl/maxima"
18 > >>
19 > >> ... a very long line ...
20 > >>
21 > >> "-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc
22 > >> -ldl -lm
23 > >> usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld
24 > >> : unrecognized option '-01 -Wl'
25 > >>
26 > >> ----------------------
27 > >> amd64:
28 > >> ;;; Note:
29 > >> ;;; Invoking external command:
30 > >> ;;; x86_64-pc-linux-gnu-gcc -o
31 > >> "/var/tmp/portage/sci-mathematics/maxima-5.20.1-r3/work/maxima-5.20.1/sr
32 > >> c/b inary-ecl/maxima"
33 > >>
34 > >> ... a very long line ...
35 > >>
36 > >> "-Wl,-01 -Wl,--sort-common -Wl,--as-needed" -Wl,-O1 -lecl -lgmp -lgc
37 > >> -lpthread -ldl -lm
38 > >> ;;;
39 > >> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/b
40 > >> in/ ld: unrecognized option '-01 -Wl'
41 > >>
42 > >> So in both cases -Wl,-O1 is appended to the LDFLAGS passed to emerge.
43 > >
44 > > Actually, what does:
45 > > ecl-config --libs
46 > > ecl-config --ldflags
47 > > show? For you and Jean-Francis?
48 > > I suspect that the bad argument comes from there.
49 > >
50 > > Francois
51 >
52 > François,
53 >
54 > I have for
55 > ecl-config --ldflags && ecl-config --libs
56 >
57 > on 32bit
58 >
59 > -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm
60 > -L/usr/lib/ -lecl -Wl,-O1 -ldl -lm
61 >
62 > and on amd64
63 >
64 > -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm
65 > -L/usr/lib64/ -lecl -Wl,-O1 -lpthread -ldl -lm
66 >
67 I suppose you installed ecls before -Wl,--as-needed became standard.
68 Now why on my machine neither CFLAGS or LDFLAGS are picked by ecls
69 and the ecl portion of maxima?
70
71 Francois

Replies

Subject Author
Re: [gentoo-science] sci-mathematics/maxima fails to build Jean-Francis Roy <jeanfrancisroy@×××××.com>
Re: [gentoo-science] sci-mathematics/maxima fails to build Steven Trogdon <strogdon@×××××.edu>
Re: [gentoo-science] sci-mathematics/maxima fails to build Steven Trogdon <strogdon@×××××.edu>